# Getting started with HPE Morpheus Enterprise and VMware

## Introduction

This guide is designed to help you get started and quickly get the most out of HPE Morpheus Enterprise with VMWare. By the end, you will integrate your first cloud, configure networking, prepare and consume images, provision instances, and get started with automation. We will briefly discuss installation and account setup but will provide links to additional resources for those very first steps. For the most part, this guide assumes you are able to get HPE Morpheus Enterprise installed and are ready to move forward from that point. There is a lot more to see and do in HPE Morpheus Enterprise that is beyond the scope of this guide. For more, consult the complete HPE Morpheus Enterprise documentation or take part in our user community forum.

## Installation & Setup

In the simplest configuration, HPE Morpheus Enterprise needs one appliance server which will contain all the components necessary to orchestrate virtual machines and containers. Full requirements, including storage and networking considerations, can be found in HPE Morpheus Enterprise documentation [here](https://docs.morpheusdata.com/en/4.1.0/getting_started/requirements/requirements.html#requirements). In order to provision any new instances, hosts, or applications, (or convert any discovered resources to managed resources) you will need a valid license. If you don’t have one, you can request a lab license for free at [Morpheus Hub](https://app.morpheushub.com). Once obtained, the license can be applied in Administration > Settings > License.

## Groups

Groups in HPE Morpheus Enterprise define which resources a user has access to. Clouds are added to groups and a user can only access clouds that are in the groups to which their roles give them access. More information on HPE Morpheus Enterprise groups is [here](https://docs.morpheusdata.com/en/4.1.1/infrastructure/groups/groups.html#groups). A deep dive into groups goes beyond the scope of this guide but it’s often useful to create a group that contains all clouds for testing purposes. We will create that group now so that we can add our first cloud into this group in the next section.

Navigate to Infrastructure  >  Groups. Here we will see a list of all configured groups but, of course, this will be empty immediately after installation. Click “+CREATE”. Give your group a name, such as “All Clouds”. The “CODE” field is used when calling HPE Morpheus Enterprise through HPE Morpheus Enterprise API or HPE Morpheus Enterprise CLI. It’s useful in most cases to have an “All Clouds” group for testing purposes so this will likely help you down the road.

![The new group dialog box showing a name for the group filled in](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-74C68A7E-D6DD-4E56-A374-AF1DCA8F68DA-high.png)

Click “SAVE CHANGES”. Your group is now ready to accept clouds.

## Integrating Your First Cloud

Clouds in HPE Morpheus Enterprise consist of any consumable endpoint whether that be On-Prem, Public clouds, or even bare metal. In this guide, we will focus on integrating and working with VMWare vCenter.

To get started, we will navigate to Infrastructure  >  Clouds. This is the cloud detail page which lists all configured clouds. It will be empty if you’ve just completed installation and setup of HPE Morpheus Enterprise but soon we will see our integrated vCenter cloud here.

Click the “+ADD” button to pop the “CREATE CLOUD” wizard. Select “VMWARE VCENTER” and click the “NEXT” button.

![The list of clouds available to integrate with, vCenter is selected](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-37B199A3-DCEC-41E4-AE0B-8BE8A37EA55B-high.png)

On the “CONFIGURE” tab, we’re asked to set the initial connection strings into vSphere. The **API URL** should be in the following format: <https:/>/<URL>/sdk. The **USERNAME** should be in [user@domain](mailto:user%40domain) format.

![The create cloud dialog box with relevant fields filled](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-670B6AE2-46C2-4917-A452-B8D72082823E-high.png)

HPE Morpheus Enterprise allows vCenter clouds to be scoped to the **VDC** and **CLUSTER** or even the specific **RESOURCE POOL** if you choose. Once you’ve entered your URL and credentials, these dropdown menus will become populated.

The **RPC MODE** setting determines how HPE Morpheus Enterprise will connect to VMs and make configuration and scripting calls if [Morpheus Agent](https://docs.morpheusdata.com/en/4.1.1/getting_started/agent/morpheus_agent.html#morpheus-agent) is not installed. In a VMware environment, it is recommended to select **Vmware Tools** but WinRM/SSH are able to be used to configure the guest directly. If using WinRM, ensure it is configured on the virtual image, discusssed below.

Additionally, we can opt to **INVENTORY EXISTING INSTANCES** to begin polling VMs for statistics and rightsizing recommendations as well as **ENABLE HYPERVISOR CONSOLE** to use native vSphere console with port 443 connectivity between HPE Morpheus Enterprise and ESXi hosts.

To move on, expand the “Advanced Options” section.

Within the “Advanced Options” drawer are additional configurations to consider for your first cloud. Some of these won’t usable until they reference additional configured integrations. Common settings to consider are **DOMAIN**, **STORAGE TYPE**, **APPLIANCE URL** (overrides the HPE Morpheus Enterprise URL for external systems), **GUIDANCE** (setting “Manual” will make recommendations for rightsizing), and **AGENT INSTALL MODE**.

![The advanced options section of the create cloud dialog box](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-5564447E-D7BC-4DE8-832D-D63909A3B49E-high.png)

Once you’re satisfied with your selections, click “NEXT”

We have now arrived at the “GROUP” tab. In this case, we will mark the radio button to “USE EXISTING” groups if you wish to use the group we configured earlier.

![The group tab of the create cloud dialog box](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-21078778-ABE2-4EC9-A236-0F982B727DDB-high.png)

Once you’ve selected the group, click “NEXT”

On the final tab of the “CREATE CLOUD” wizard, you’ll confirm your selections and click “COMPLETE”. The new cloud is now listed on the cloud detail page. After a short time, HPE Morpheus Enterprise will provide summary information and statistics on existing virtual machines, networks, and other resources available in the cloud.

## Viewing Cloud Inventory

Now that we’ve integrated our first VMware cloud, we can stop for a moment to review what HPE Morpheus Enterprise gives us from the cloud detail page. We can see that HPE Morpheus Enterprise gives us estimated costs and cost histories, metrics on used resources, and also lists out resource counts in various categories including container hosts, hypervisors, and virtual machines. We can drill into these categories to see lists of resources in the various categories individual resources within them by clicking on the category tabs. We can link to the detail page for any specific resource by clicking on it from its resource category list.

## Configuring Resource Pools

With our VMware cloud configured, HPE Morpheus Enterprise will automatically sync in available resource pools and data stores.

For resource pools, once HPE Morpheus Enterprise has had time to ingest them, then will be visible from the cloud detail page. Navigate to Infrastructure  >  Clouds  >  (your VMware cloud)  >  RESOURCES tab. In here, we are able to see and control access to the various resource pools that have been configured in vCenter. For example, we can restrict access to a specific resource pool within HPE Morpheus Enterprise completely by clicking on the “ACTIONS” button, then clicking “Edit”. If we unmark the “ACTIVE” button and then click “SAVE CHANGES” we will see that the resource pool is now grayed out in the list. The resources contained in that pool will not be accessible for provisioning within HPE Morpheus Enterprise.

![The list of synced resource pools in |morpheus|](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-5E044CF2-DC63-48CA-BFE5-FB99E8B3CA6B-high.png)

Often our clients will want to make specific blocks of resources available to their own customers. This can be easily and conveniently controlled through the same “EDIT RESOURCE POOL” dialog box we were just working in. If we expand the “Group Access” drawer, we are able to give or remove access to each pool to any group we’d like. We can also choose to make some or all of our resource pools available to every group. Specific resource pools can also be defined as the default for each group if needed.

![The edit resource pools dialog box](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-12509E33-3DEA-47DD-8838-3D4B76599043-high.png)

Additionally, we may choose to allow only certain service plans to be provisioned into a specific pool of resources. For example, perhaps a specific cluster is my SQL cluster and only specific services plans should be consumable within it. We can control that through this same dialog box.

## Configuring Data Stores

To take a look at data stores, we’ll move from the “RESOURCES” tab to the “DATA STORES” tab on our cloud detail page.

HPE Morpheus Enterprise gives the user similar control with data stores to what we saw with our resources pools earlier. Just like with resource pools, we can disable access within HPE Morpheus Enterprise completely by clicking on “ACTIONS” and then “Edit”. If we unmark the “ACTIVE” checkbox and click “SAVE CHANGES”, you will see that specific data store has been grayed out.

![The list of synced data stored in |morpheus|](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-9D16EAEE-4391-4B7B-B0FA-D46DB90A3E59-high.png)

Just like with resource pools, we are also able to scope data stores to specific groups. This ensures that the members of each group are only able to consume the data stores they should have access to.

![The edit data stores dialog box](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-14F14768-224B-4188-A052-48C37F755907-high.png)

## Configuring Folders

Still within the “RESOURCES” tab, within the “FOLDERS” subtab we see the folders discovered from the vCenter Cloud. Edit folder configurations by selecting “ACTIONS” from the end of the row, then clicking “Edit”. Consider the following configurations for specific folders:

- **DEFAULT:** If selected, this folder will be pre-selected when provisioning new Instances to this Cloud (See the Folder option on the CONFIGURE tab of the Instance provisioning wizard)
- **IMAGE TARGET:** HPE Morpheus Enterprise will look in the image target folder(s) to onboard VMware images

After saving the changes, you’ll see any folders set as default or image target indicated in the folders list.

## Configuring Network for Provisioning

When configuring networking, we can set global defaults by going to Infrastructure  >  Network  >  NETWORKS tab. Here we can add or configure networks from all clouds integrated into HPE Morpheus Enterprise. Depending on the number of clouds HPE Morpheus Enterprise has ingested, this list may be quite large and may also be paginated across a large number of pages. In such a case, it may be easier to view or configure networks from the specific cloud detail page so that networks from other clouds are not shown.

![The list of configured neworks](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-2168C77C-8C1C-4580-B2A2-785BFF097D39-high.png)

Still in Infrastructure  >  Network, make note of the “INTEGRATIONS” tab. It’s here that we can set up any integrations that may be relevant, such as IPAM integrations. Generally speaking, when adding IPAM integrations, we simply need to name our new integration, give the API URL, and provide credentials. There’s more information in the [IPAM integration](https://docs.morpheusdata.com/en/4.1.1/integration_guides/integration_guides.html#networking) section of HPE Morpheus Enterprise Docs.

![The add IPAM integration dialog box](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-66A48C34-D132-42F8-BABB-C12A096F8910-high.png)

In Infrastructure  >  Networking we can also set up IP address pools from the IP Pools tab. These pools can be manually defined, known as a HPE Morpheus Enterprise-type IP pool, or they can come from any IPAM integrations you’ve configured. As instances are provisioned, HPE Morpheus Enterprise will assign IP addresses from the pool chosen during provisioning. When the instance is later dissolved, HPE Morpheus Enterprise will automatically release the IP address to be used by another instance when needed. When adding or editing a network, we can opt to scope the network to one of these configured IP address pools. Edit an existing network by clicking the pencil icon on the Networks List Page (Infrastructure > Networks > NetworksTab) and fill in the “Network Pool” field to associate the IP Pool with the network.

![Creating a |morpheus|-type IP pool](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-3EEAE850-7B84-4E9C-8699-3319344FCFA6-high.png)

Since this guide is focused on working within a VMware cloud that we integrated at the start, we will take a look at our network configurations on the cloud detail page as well. Navigate to Infrastructure  >  Clouds  >  (your VMware cloud)  >  NETWORKS tab. Just as with resource pools and data stores, we have the ability to make certain networks inactive in HPE Morpheus Enterprise, or scope them to be usable only for certain groups or tenants.

![Viewing networks on the cloud detail page](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-D8873C52-F566-49ED-AE8C-825EA4B169B1-high.png)

## Prepping an Image

As we’ll discuss and try out in the next section, HPE Morpheus Enterprise comes out of the box with a default set of blueprints that are relevant to many modern deployment scenarios. For the most part, these are base operating system images with a few additional adjustments. However, in many on-premise deployments, there are often custom image and networking requirements. We will work with images included in HPE Morpheus Enterprise by default in this guide but it’s important to discuss how to prep custom images as well.

### Creating a Windows Image

The following versions of Windows Server are supported:

- 2008 R2
- 2012
- 2012 R2
- 2016
- 2019
- 2022

To start, create a new Windows VM in vCenter using a base version of your selected Windows build.

NOTE

It’s recommended to make the VMDK drive as small as possible for your purposes as this generally speeds cloning and deploy times. Morpheus provisioning and post-deploy scripts allow to to expand the drive to any size that you need.

Once the VM is created, ensure VMware Tools is installed on the operating system. This will ensure the virtual machine can communicate correctly with vCenter but also if the cloud was configured to use `RPC MODE` of `Vmware Tools`, and the HPE Morpheus Enterprise agent is not installed, HPE Morpheus Enterprise can communicate with the virtual machine directly for tasks and other processes.

NOTE

If the cloud was configured to use `RPC MODE` of `SSH/WinRM`, it will be necessary to configure WinRM on the virtual machine. Ensure WinRM is allowed from your Morpheus appliance through the local Windows firewall. Also, run the following command to enable WinRM in the guest: `winrm quickconfig`

Next, install .NET 4.5.2 or higher as a [requirement](https://docs.morpheusdata.com/en/latest/getting_started/functionality/agent/agentInstallation.html#agent-install-requirements) for the Morpheus agent.

Finally, choose a method that will be used to customize the operating system:

- Guest Customization
- Sysprep
- Cloudbase-Init

#### Using Guest Customization (Recommended)

HPE Morpheus Enterprise can utilize the vCenter guest customizations feature, creating its own customization specification and applying it at deployment. There are no other changes needed in the guest operating system when using this method. Turn off the virtual machine and convert it to a template Refresh your cloud (Infrastructure > Clouds > Click Cloud > Refresh > Short). Once the Virtual Image has been synced into Library > Virtual Images, edit it and ensure **VMware Guest Customization?** is checked.

#### Using Windows Sysprep

HPE Morpheus Enterprise can inject an unattend file via CD-ROM to override the default sysprep process when preparing a virtual machine. Run the following command from the guest operating system to sysprep the operating system: `C:\Windows\System32\sysprep /oobe /generalize /shutdown` The unattend file created on the virtual machine can be ignored, no changes will be needed. Once the virtual machine has completed shutting down, convert it to a template. Refresh your cloud (Infrastructure > Clouds > Click Cloud > Refresh > Short). Once the Virtual Image has been synced into Library > Virtual Images, edit it and ensure **Sysprepped/Generalized Image?** is checked.

NOTE

If **VMware Guest Customization?** is enabled on the virtual image or if using static IP addresses or IP pools when provisioning, ensure a Sysprep has not been performed in the guest. In such cases, a guest customization will always be performed.

#### Using Cloudbase-init

IMPORTANT

Some admins may struggle with using Cloudbase-Init, especially if they are not familiar with cloud-init (used in Linux). It is recommended to use either **Guest Customization** or **Windows Sysprep** if the admins are more famililar with those tools.

HPE Morpheus Enterprise can inject a cloud-init file via CD-ROM to override the default sysprep process when preparing a virtual machine, if the Cloudbase-Init service is installed. Download Cloudbase-Init from <https://cloudbase.it> for your appropriate architecture. Run the installer and keep the default settings. Below is an example of the final settings page: ![Cloudbase-Init settings](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-ABBCBC9E-8CE1-4EE2-B15D-EC25F255D11A-high.png) At the end of the installer, options will be available to sysprep and shutdown the virtual machine. Checkmark both boxes and click **Finish**: ![Cloudbase-Init sysprep](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-14880EC6-E2C4-486D-AEA8-D66AE8573877-high.png) Once started, the sysprep process should continue until the virtual machine shutsdown. ![Cloudbase-Init progress](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-A52DA0FA-2608-4AE6-B741-DC4B98D23778-high.png) Once the virtual machine has completed shutting down, convert it to a template. Refresh your cloud (Infrastructure > Clouds > Click Cloud > Refresh > Short). Once the Virtual Image has been synced into Library > Virtual Images, edit it and ensure **Is Cloud Init Enabled?** is checked.

### Creating a CentOS/RHEL Image

Create a new machine in vCenter and install a base version of your preferred Linux distro.

NOTE

If you are using cloud-init as part of your image, you will need to ensure your virtual machine has a cdrom.

Before installing the operating system, set up a single ext or xfs partition without a swap disk. Next, install the distro applying any updates to the operating system or security updates. Once the operating system is running and updated, install the following:

```
```
yum install cloud-init  
yum install cloud-utils-growpart  
yum install open-vm-tools  
yum install git  
yum install epel-release
```
```

Set selinux to permissive as the enforced setting can cause problems with cloud-init:

```
```
sudo vi /etc/selinux/config
```
```

#### Cloud-Init

We’ll get started by installing cloud-init using the following command:

```
```
yum -y install epel-release  
yum -y install git wget ntp curl cloud-init dracut-modules-growroot  
rpm -qa kernel | sed 's/^kernel-//'  | xargs -I {} dracut -f /boot/initramfs-{}.img {}
```
```

NOTE

The above command will install some core dependencies for cloud-init and automation later as you work with your provisioned instances. For example, we install Git here as it is used for Ansible automation. If you had no plans to use Ansible, this installation could be skipped. The dracut-modules-growroot is responsible for resizing the root partition upon initial boot which was potentially adjusted during provisioning.

One key benefit of using cloud-init is that we don’t have to lock credentials into the blueprint. We recommend configuring a default cloud-init user that will get created automatically when the VM is booted by cloud-init. We can define that default user in Administration > Settings > Provisioning > Cloud-Init

#### Network Interfaces

As of CentOS 7, network interface naming conventions have changed. You can check this by running ifconfig and noting that the primary network interface has some value similar to “ens2344”. The naming is dynamic and typically set based on hardware ID. We don’t want this to fluctuate when provisioning this blueprint in our VMware environments. To accomplish this end, we will rename the interface back to “eth0” using the steps below.

First, adjust the bootloader to disable interface naming:

```
```
sed -i -e 's/quiet/quiet net.ifnames=0 biosdevname=0/' /etc/default/grub  
grub2-mkconfig -o /boot/grub2/grub.cfg
```
```

The next step is to adjust network scripts in CentOS. Start by confiming the presence of a file called /etc/sysconfig/network-scripts/ifcfg-eth0. Once confirmed, run the following script:

```
```
export iface_file=$(basename "$(find /etc/sysconfig/network-scripts/ -name 'ifcfg*' -not -name 'ifcfg-lo' | head -n 1)")  
export iface_name=${iface_file:6}  
echo $iface_file  
echo $iface_name  
sudo mv /etc/sysconfig/network-scripts/$iface_file /etc/sysconfig/network-scripts/ifcfg-eth0  
sudo sed -i -e "s/$iface_name/eth0/" /etc/sysconfig/network-scripts/ifcfg-eth0  
sudo bash -c 'echo NM_CONTROLLED=\"no\" >> /etc/sysconfig/network-scripts/ifcfg-eth0'
```
```

This script tries to confirm there is a new ifcfg-eth0 config created to replace the old config file. Confirm this config exists after running and if not you will have to build your own:

```
```
TYPE=Ethernet  
DEVICE=eth0  
NAME=eth0  
ONBOOT=yes  
NM_CONTROLLED="no"  
BOOTPROTO="dhcp"  
DEFROUTE=yes
```
```

For more on CentOS/RHEL image prep, including additional configurations for specific scenarios, take a look at the [VMware image prep](https://docs.morpheusdata.com/en/4.1.1/integration_guides/Clouds/vmware/vmware_templates.html#gotchas) page in HPE Morpheus Enterprise Docs.

#### Creating an Ubuntu 20.04 Image

Download the Ubuntu 20.04 ISO from Canonical, and upload the base image to vCetner. Then, create a new virtual machine in vCenter.

NOTE

Since we’ll include cloud-init with our image, we will need to ensure the virtual machine has a cdrom. Select the Ubuntu 20.04 ISO we just downloaded from the CD/DVD drive dropdown menu when creating the new virtual machine.

Before installing the operating system, set up a single ext partition without a swap disk. Then, continue on installing Ubuntu making the following selections during the setup process:

- Update to the latest installer if a later version is available
- Use the entire disk and deselect the option to set up the disk as an LVM group
- Configure an account and set a password
- Opt to install OpenSSH Server
- Other optional packages aren’t needed for this basic Ubuntu image

Complete the installation process and reboot the machine. Update the package list and apply any upgrades:

```
```
apt-get update  
apt-get upgrade
```
```

Disable assignment of new styled names for network interfaces (instead of `ens###` they will be `eth#`):

```
```
sudo sed -i -e 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"/' /etc/default/grub
```
```

Update GRUB:

```
```
update-grub
```
```

Update the `70-persistent-net.rules` file:

```
```
cat << EOF > /etc/udev/rules.d/70-persistent-net.rules  
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="eth0"  
EOF
```
```

Remove `subiquity-disable-cloudinit-networking.cfg` as cloud-init will skip network configuration if it’s present:

```
```
rm -f /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg
```
```

Update `99-pve.cfg`:

```
```
cat << EOF > /etc/cloud/cloud.cfg.d/99-pve.cfg  
datasource_list: [ConfigDrive, NoCloud]  
EOF
```
```

Remove Netplan files, they will not be regenerated if they exist:

```
```
rm -f /etc/netplan/00-installer-config.yaml  
rm -f /etc/netplan/50-cloud-init.yaml
```
```

Run cloud-init clean:

```
```
cloud-init clean
```
```

Next, reboot the system and confirm the network interface is labeled `eth0` once the machine comes back up. Then, clear BASH history for root. The history entry has a copy in the memory and it will flush back to the file when you log out. You can avoid this with the following command:

```
```
cat /dev/null > ~/.bash_history && history -c && exit
```
```

Shutdown the system:

```
```
shutdown -h now
```
```

Convert the VM to a template in vCenter before moving back to HPE Morpheus Enterprise to onboard the image and use it to begin building your provisioning library.

## Provisioning Your First Instance

At this point, we are ready to provision our first image. As a first instance, we’ll provision an Apache web server to our vCenter cloud.

Navigate to Provisioning > Instances. If any instances are currently provisioned, we will see them listed here. To start a new instance we click the “+ADD” button to pop the “CREATE INSTANCE” wizard. We’ll scroll down to and select the Apache instance type and click “NEXT”.

![Selecting an instance type to provision](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-F2E15736-7064-4FD4-8159-E1C54CD3743E-high.png)

First, we’ll specify the group to provision into which determines the clouds available. If you’ve followed this guide to this point, you should at least have a group that houses all of your clouds which you can select here. This will allow us to select the vCenter cloud from the “CLOUD” dropdown menu. Provide a unique name to this instance and then click “NEXT”

From the “CONFIGURE” tab, we’re presented with a number of options. The options are cloud and layout-specific, more generalized information on creating instances and available options is [here](https://docs.morpheusdata.com/en/4.1.1/getting_started/agent/morpheus_agent.html#morpheus-agent). For our purposes, we’ll select the following options:

- **LAYOUT**: Includes options such as the base OS, custom layouts will also be here when available
- **PLAN**: Select the resource plan for your instance. Some plans have minimum resource limits, HPE Morpheus Enterprise will only show plans at or above these limits. User-defined plans can also be created in Administration > Plans & Pricing.
- **VOLUMES and DATASTORES**: The minimum disk space is set by the plan, this value may be locked if you’ve selected a custom plan that defines the volume size
- **NETWORKS**: Select a network, note that IP pools must be linked with the networks defined in VMware in order to assign static IP addresses

Under the “User Config” drawer, mark the box to “CREATE YOUR USER”. Click “NEXT”.

![The configure tab of the create instance dialog box](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-B494FF9C-4564-4F58-B523-3D6661254037-high.png)

NOTE

“CREATE YOUR USER” will seed a user account into the VM with credentials set in your Morpheus user account settings. If you’ve not yet defined these credentials, you can do so by clicking on your username in the upper-right corner of the application window and selecting “USER SETTINGS”.

For now, we’ll simply click “NEXT” to move through the “AUTOMATION” tab but feel free to stop and take a look at the available selections here. There is more information later in this guide on automation and even more beyond that in the rest of HPE Morpheus Enterprise docs.

Review the settings for your first instance and click “COMPLETE”.

![Confirming the instance to be provisioned](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-BD9754FE-0F3F-45CD-BE37-86185EF667BF-high.png)

We are now dropped back onto the instances list page. We can see a new entry in the list at this point with a status indicator that the new machine is being launched (rocket icon in the status field). We can double click on the instance in the list to move to the instance detail page. For now we will see a progress bar indicating that the instance is being created and is starting up. The exact amount of time this process will take depends on your environment and selections made when provisioning the instance. Initially, HPE Morpheus Enterprise will guess as to how long this will take and the progress bar may not be accurate. Over time, HPE Morpheus Enterprise will learn how long these processes take and progress bar accuracy will improve. For more detailed information on the status of various provisiioning processes, we can scroll down and select the “HISTORY” tab. The “STATUS” icon will change from the blue rocket to a green play button when the instance is fully ready. Furthermore, we can click on the hyperlinked IP address in the “VMS” section of this page to view a default page in a web browser to confirm success.

![Monitoring privisioning progress on the instance detail page](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-6CD6B5F1-88DE-44D1-9E25-29FB61D81345-high.png)

## Creating Your First Library Item

In the prior section, we manually provisioned our first instance. However, HPE Morpheus Enterprise allows you to build a catalog of custom provisionable items to simplify and speed provisioning in the future. In this section, we’ll build a catalog item and show how that can translate into quick instance provisioning after configuration.

NOTE

Before starting this process, it’s important to decide which virtual image you plan to use. If you’re not using a Morpheus-provided image, you’ll want to ensure it’s uploaded. You will not be able to complete this section without selecting an available image. In this example we will use Morpheus Redis 3.0 on Ubuntu 14.04.3 v2.

Navigate to Library > Blueprints > Node Types and click “+ADD”.

![Adding a new node type](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-5563E0E9-B224-4125-AE22-DE55AB2EC41C-high.png)

In this example, I am going to set the following options in the “NEW NODE TYPE” wizard:

- **NAME**
- **SHORT NAME**
- **VERSION**: 1 (In this particular case, the version is not important)
- **TECHNOLOGY**: VMware
- **VM IMAGE**: HPE Morpheus Enterprise Redis 3.0 on Ubuntu 14.04.3 v2

NOTE

Within the “VMware VM Options” section you should add anything that will always be used for this node, regardless of the specific deployment details. This can include LDAP Authentication, bash scripts that should run on installation, among other things.

![Configuring options for the new node](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-0C9573F1-448E-41A1-B2CD-B8F3D6111B7B-high.png)

With the new node created, we’ll now add a new instance type which will be accessable from the provisioning wizard once created. Move from the “NODE TYPES” tab to the “INSTANCE TYPES” tab and click “+ADD”.

![Adding a new instance type](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-4E4E2CEE-81C1-44B4-9155-A7363D1DC596-high.png)

In the “NEW INSTANCE TYPE” wizard, I’ll simply enter a **NAME** and **CODE** value. Click “SAVE CHANGES”.

![Configuring the new instance type](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-C286C622-86B7-4107-9028-9DA0D8E4B3E7-high.png)

Now that we’ve created a new instance type, access it by clicking on the name in the list of custom instances you’ve created. In my case, I’ve given the name “NewInstanceType”.

![Opening our newly created instance type](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-D0E0A6CF-A7B3-43C9-A83F-0628B90D2CFA-high.png)

Once we’ve opened the new instance type, by default, we should be on the “LAYOUTS” tab. Click “+ADD LAYOUT”.

I’ve set the following fields on my example layout:

- **NAME**
- **VERSION**: This is the version number of the layout itself, which is labeled 1.0 in the example
- **TECHNOLOGY**: VMware
- **Nodes**: Select the node we created earlier, if desired you can specify multiple nodes

Click “SAVE CHANGES”.

![Configuring the new layout](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-70C1E76A-8246-418B-956B-D8542254955E-high.png)

At this point we’ve completed the setup work and can now provision the instance we’ve created to our specifications. Navigate to Provisioning > Instances and click “+ADD”. From the search bar we can search for the new instance type we’ve created. In the example case, we called it “newinstancetype”. Click “NEXT”.

![Searching for our custom instance type](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-905B43B4-EABB-4271-A555-97203C7A87E5-high.png)

As before, we can select a group and cloud to provision this new instance. Click “NEXT”. On the “CONFIGURE” tab, make note that the layout and plan are already selected because they were configured as part of creating the new instance type. Select a network and click “NEXT”. Once again we will also click “NEXT” through the “AUTOMATION” tab. Finally, click “COMPLETE”.

![Configuring the newlt created instance](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-8D733786-5795-4A40-A81F-F832B79E3B71-high.png)

As before when we manually provisioned an instance, HPE Morpheus Enterprise will now begin to spin up the new VM. How long this will take depends on your environment but HPE Morpheus Enterprise will predict how long this process will take and represent that on a progress bar. Over time, HPE Morpheus Enterprise begins to learn how long these processes take and becomes more accurate in predicting spin-up time.

Once the privisioning process has completed, open the instance detail page in HPE Morpheus Enterprise and click on the “CONSOLE” tab. You’ll be logged in with your user account and are then able to confirm the machine is ready and available.

![Confirming creation of the new instance](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-C9C8D9D2-E462-48F1-B679-A96B28ABAED3-high.png)

## Automation and Configuration Management

HPE Morpheus Enterprise automation is composed of Tasks and Workflows. A task could be a script added directly, scripts or blueprints pulled from the HPE Morpheus Enterprise Library, playbooks, recipes, or a number of other things. The complete list of task types can be found in the [Automation section](https://docs.morpheusdata.com/en/4.1.1/provisioning/automation/automation.html#automation) of HPE Morpheus Enterprise docs. Tasks can be executed individually but they are often combined into workflows. We can opt to run a workflow at provision time or they can be executed on existing instances through the Actions menu.

In this guide we will set up an Ansible integration, create a task, add the task to a workflow, and run the workflow against a new and existing instance. If you’ve worked through this guide to this point, you should already have an Apache instance running. If you don’t yet have that, provision one before continuing with this guide and ensure it’s reachable on port 80.

![Adding a new automation integration](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-61F3E05A-5E94-4F8B-98D4-007FE5904D98-high.png)

We’ll first set up the Ansible integration, you can integrate with the sample repository referenced here or integrate with your own. Go to ‘Administration > Integrations’. Click “+NEW INTEGRATION” and select Ansible from the dropdown menu. Fill in the following details:

- **NAME**
- **ANSIBLE GIT URL**: <https://github.com/ncelebic/morpheus-ansible-example>, or enter the URL for your own Ansible git repository
- **PLAYBOOKS PATH**
- **ROLES PATH**
- Mark the box to “USE MORPHEUS AGENT COMMAND BUS”

NOTE

If your git repository requires authentication, you should create a keypair and use the following URL format: [git@github.com](mailto:git%40github.com): ncelebic/morpheus-ansible-example.git.

![Configuring the new Ansible integration](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-4933CF3E-3D5C-4B27-9234-2655E56B605A-high.png)

Click “SAVE CHANGES”. You’ll now see our new Ansible integration listed among any other configured inetegrations. If we click on this new integration to view detail, a green checkmark icon indicates the git repository has been fully synced.

With the Ansible integration set up, we can now create a task that includes our playbook. Go to Library > Automation, click “+ADD”. We’ll first set our “TYPE” value to Ansible Playbook so that the correct set of fields appear in the “NEW TASK” wizard. Set the following options:

- **NAME**
- **ANSIBLE REPO**: Here we will choose the Ansible integration that we just created
- **PLAYBOOK**: In our example case, enter ‘playbook.yml’

![Configuring the new task](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-12619017-B1FF-4E72-993B-ACA2AC62AAA5-high.png)

Click “SAVE CHANGES” to save our new task. We can test the new task on our Apache VM now by going to Provisioning > Instances and clicking into our VM. From the “ACTIONS” menu select “Run Task”. From the “TASK” dropdown menu, select the task we just added and click “EXECUTE”.

![Executing the new task](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-03265833-F302-4A3E-AA48-30CDEE45722F-high.png)

To see the progress of the task, click on the “HISTORY” tab and click on the (i) button to the right of each entry in the list. In this case, we can also see the results of the task by clicking on the link in the “LOCATION” column of the “VMS” section.

Now that our task is created, we can put it into a workflow. Back in Library > Automationwe will click on the “WORKFLOWS” tab. Click “+ADD” and select Provisioning Workflow. We’ll give the new workflow a name and expand the Post Provision section. As we begin to type in the name of the task we’ve created, it should appear as a selection. Click “SAVE CHANGES”.

![Creating a workflow for our task](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-87FADF2B-1826-45B2-BCD1-BD11A31CB587-high.png)

Now that we have a workflow, return to Provisioning > Instances and begin to provision another Apache instance. More detailed instructions on provisioning a new Apache instance are included earlier in this guide if needed. Now, when you reach the “AUTOMATION” section of the “CREATE INSTANCE” wizard, we have a workflow to select. From the “WORKFLOW” dropdown menu, select the workflow we just created and complete provisioning of the new instance.

![Running the new workflow on provisioning](https://support.hpe.com/hpesc/public/api/document/sd00008014en_us/GUID-DEF38048-CF8C-45CE-9EA7-432F6E4DCD55-high.png)

As the instance is provisioning, we can go to the “HISTORY” tab and see HPE Morpheus Enterprise executing the tasks that were contained in our workflow.

This is just one example of using HPE Morpheus Enterprise to automate the process of configuring and instance to your needs. There are a number of other automation types that can be built into your workflows as well. For further information, take a look at the [automation integrations](https://docs.morpheusdata.com/en/4.1.1/integration_guides/integration_guides.html#automation) guide in HPE Morpheus Enterprise docs.

## Conclusion

At this point you should be up and running in HPE Morpheus Enterprise, ready to consume VMware. This guide only scratches the surface, there is a lot more to see and do in HPE Morpheus Enterprise. Take a look at the rest of [Morpheus Docs](https://docs.morpheusdata.com/en/4.1.1/index.html) for more information on supported integrations and other things possible.
