vCloud Director

Configuration

Add vCD Cloud From Infrastructure -> Clouds

  1. Navigate to Infrastructure -> Clouds

  2. Select + ADD

  3. Select VCLOUD DIRECTOR from the Clouds list

  4. Select NEXT

  5. Populate the following:

    Name

    Name of the Cloud in Morpheus

    Location

    Description field for adding notes on the cloud, such as location.

    Visibility

    For setting cloud permissions in a multi-tenant environment. Not applicable in single tenant environments.

    API URL
    vCloud Director API Url

    Example: https://org.vcd.company.com

    USERNAME

    vCD Organization Administrator User

    NOTE:: User must have an Organizational Administrator Role in the selected Origination for successful provisioning

    PASSWORD

    vCD Organization Administrator User password

    ORGANIZATION

    Select Organization. Dropdown populates upon successful authorization.

    VDC

    Select VDC. Dropdown populates upon successful authorization.

    Inventory Existing Instances

    If enabled, existing Virtual Machines will be inventoried and appear as unmanaged Virtual Machines in Morpheus .

    NOTE: Multiple Organizations/VDC’s can be added by creating additional Clouds in Morpheus.

    DOMAIN

    Specify a default domain for instances provisioned to this Cloud.

    SCALE PRIORITY

    Specifies the priority with which an instance will scale into the cloud. A lower priority number means this cloud integration will take scale precedence over other cloud integrations in the group.

    APPLIANCE URL

    Alternate Appliance url for scenarios when the default Appliance URL (configured in admin -> settings) is not reachable or resolvable for Instances provisioned in this cloud. The Appliance URL is used for Agent install and reporting.

    TIME ZONE

    Configures the time zone on provisioned VM’s if necessary.

    DATACENTER ID

    Used for differentiating pricing among multiple datacenters. Leave blank unless prices are properly configured.

    NETWORK MODE

    Unmanaged or Managed

    SECURITY MODE

    Defines if Morpheus will control local firewall of provisioned servers and hosts.

    Important

    When local firewall management is enabled, Morpheus will automatically set an IP table rule to allow incoming connections on tcp port 22 from the Morpheus Appliance.

    STORAGE MODE

    Single Disk, LVM or Clustered

    GUIDANCE

    Enable Guidance recommendations on cloud resources.

    DNS INTEGRATION

    Records for instances provisioned in this cloud will be added to selected DNS integration.

    SERVICE REGISTRY

    Services for instances provisioned in this cloud will be added to selected Service Registry integration.

    CONFIG MANAGEMENT

    Select a Chef, Salt, Ansible or Puppet integration to be used with this Cloud.

    CMDB

    Select CMDB Integraiton to automatically update selected CMDB.

    AGENT INSTALL MODE
    • SSH / WINRM: Morpheus will use SSH or WINRM for Agent install.
    • Cloud-Init (when available): Morpheus will utilize Cloud-Init or Cloudbase-Init for agent install when provisioning images with Cloud-Init/Cloudbase-Init installed. Morpheus will fall back on SSH or WINRM if cloud-init is not installed on the provisioned image.
    API PROXY

    Required when a Proxy Server blocks communication between the Morpheus Appliance and the Cloud. Proxies can be added in the Infrastructure -> Networks -> Proxies tab.

    PROXY

    Required when a Proxy Server blocks communication between an Instance and the Morpheus Appliance. Proxies can be added in the Infrastructure -> Networks -> Proxies tab.

    Bypass Proxy for Appliance URL

    Enable to bypass proxy settings (if added) for Instance Agent communication to the Appliance URL.

    USER DATA (LINUX)

    Add cloud-init user data or scripts. Assumes bash syntax.

  6. Select NEXT

  7. Select an existing or create a new Group to add the Cloud to. The Cloud can be added to additional Groups in a Groups Clouds tab.

  8. Select NEXT

  9. Review and then Select COMPLETE

Add vCD Cloud From Infrastructure -> Groups

  1. Navigate to Infrastructure -> Groups

  2. Select a Group

  3. Select the CLOUDS tab

  4. Scroll down to VCLOUD DIRECTOR and select + ADD

  5. Populate the following:

    Name

    Name of the Cloud in Morpheus

    Location

    Description field for adding notes on the cloud, such as location.

    Visibility

    For setting cloud permissions in a multi-tenant environment. Not applicable in single tenant environments.

    API URL
    vCloud Director API Url

    Example: https://org.vcd.company.com

    USERNAME

    vCD Organization Administrator User

    NOTE:: User must have an Organizational Administrator Role in the selected Origination for successful provisioning

    PASSWORD

    vCD Organization Administrator User password

    ORGANIZATION

    Select Organization. Dropdown populates upon successful authorization.

    VDC

    Select VDC. Dropdown populates upon successful authorization.

    Inventory Existing Instances

    If enabled, existing Virtual Machines will be inventoried and appear as unmanaged Virtual Machines in Morpheus .

    NOTE: Multiple Organizations/VDC’s can be added by creating additional Clouds in Morpheus.

    DOMAIN

    Specify a default domain for instances provisioned to this Cloud.

    SCALE PRIORITY

    Specifies the priority with which an instance will scale into the cloud. A lower priority number means this cloud integration will take scale precedence over other cloud integrations in the group.

    APPLIANCE URL

    Alternate Appliance url for scenarios when the default Appliance URL (configured in admin -> settings) is not reachable or resolvable for Instances provisioned in this cloud. The Appliance URL is used for Agent install and reporting.

    TIME ZONE

    Configures the time zone on provisioned VM’s if necessary.

    DATACENTER ID

    Used for differentiating pricing among multiple datacenters. Leave blank unless prices are properly configured.

    NETWORK MODE

    Unmanaged or Managed

    SECURITY MODE

    Defines if Morpheus will control local firewall of provisioned servers and hosts.

    Important

    When local firewall management is enabled, Morpheus will automatically set an IP table rule to allow incoming connections on tcp port 22 from the Morpheus Appliance.

    STORAGE MODE

    Single Disk, LVM or Clustered

    GUIDANCE

    Enable Guidance recommendations on cloud resources.

    DNS INTEGRATION

    Records for instances provisioned in this cloud will be added to selected DNS integration.

    SERVICE REGISTRY

    Services for instances provisioned in this cloud will be added to selected Service Registry integration.

    CONFIG MANAGEMENT

    Select a Chef, Salt, Ansible or Puppet integration to be used with this Cloud.

    CMDB

    Select CMDB Integraiton to automatically update selected CMDB.

    AGENT INSTALL MODE
    • SSH / WINRM: Morpheus will use SSH or WINRM for Agent install.
    • Cloud-Init (when available): Morpheus will utilize Cloud-Init or Cloudbase-Init for agent install when provisioning images with Cloud-Init/Cloudbase-Init installed. Morpheus will fall back on SSH or WINRM if cloud-init is not installed on the provisioned image.
    API PROXY

    Required when a Proxy Server blocks communication between the Morpheus Appliance and the Cloud. Proxies can be added in the Infrastructure -> Networks -> Proxies tab.

    PROXY

    Required when a Proxy Server blocks communication between an Instance and the Morpheus Appliance. Proxies can be added in the Infrastructure -> Networks -> Proxies tab.

    Bypass Proxy for Appliance URL

    Enable to bypass proxy settings (if added) for Instance Agent communication to the Appliance URL.

    USER DATA (LINUX)

    Add cloud-init user data or scripts. Assumes bash syntax.

  6. Select NEXT

  7. Review and then Select COMPLETE

How to create vCloud Director templates for Morpheus

Create a new machine in VMware vCenter and install a base version of your preferred Windows build.

  1. Apply any service packs / updates to the operating system.
  2. Set the Network location to Private the below PowerShell will set the location.
Get-NetConnectionProfile | Set-NetconnectionProfile -NetworkCategory private
  1. Configure WinRM to allow remote management and open the firewall.

    • To do this, under local computer Administrator, open a command prompt and run winrm quickconfig
  2. Install VMware tools

  3. Install .Net at least 4.5

  4. Enable remote PowerShell this can be done in PowerShell.

    Enable-PSremoting
    
  5. Shutdown the virtual machine and convert to a template.

Note

Do not run sysprep

Create a new machine in VMware vCenter and install a base version of your preferred Linux distro build. If you are using cloud init as part of your image you will need to ensure your virtual machine has a cdrom.

  1. Before installing the operating system setup a single ext or xfs partition without a swap disk (This is so that growpart can extend the disk. growpart currently does not support lvm)
  2. Install the distro and apply any updates to the operating system and security updates
  3. Install cloud-init using command yum install cloud-init
  4. Install cloud-utils-growpart using command yum install cloud-init-utils-growpart
  5. Install vmware tools
  6. Install git by running yum install git
  7. epel-release
  8. selinux set to permissive (enforced can cause problems with cloud-init)

Create a new machine in VMware vCenter and install a base version of your preferred Linux distro build. If you are using cloud init as part of your image you will need to ensure your virtual machine has a cdrom.

  1. Before installing the operating system setup a single ext partition without a swap disk (This is so that growpart can extend the disk. growpart currently does not support lvm)
  2. Install the distro and apply any updates to the operating system and security updates
  3. Ensure you have set a root password
  4. Install cloud-init by running sudo apt install cloud-init
  5. Install cloud-utils-growpart sudo apt install cloud-utils
  6. Install desired hypervisor drivers (Virto, Open-VM Tools)
  7. Install git by running sudo apt install git
  8. As Debian 9 includes network manager ensure this is disabled. Change the below file
/etc/NetworkManager/NetworkManager.conf

to the following:

managed=false

We also recommend disabling network manager and setting the network adapter to eth0 rather than the automatically assigned name. https://support.morpheusdata.com/hc/en-us/articles/115002881228-Creating-a-CentOS-7-Morpheus-VMware-Image

To import your template into vCloud director you will need to login as either an administrator or organisation administrator.

Once logged into vCloud director you will then need select Manage Organizations and then select your organization.

From within the organisation click on Catalogues > select an existing catalogue or create a new catalogue.

Note

Please note once you connect Morpheus to your vCD environment, it will create a catalogue called Auto Morpheus. This is a working catalogue and is ignored by Morpheus when searching for images, so any images in the catalogue will not be synced into Morpheus

Open the catalogue and select the import template from vCenter and then browse the data stores for your templates. Select your template and the type in a new name and description then check the copy template into vCloud director.

Once you click ok the import process will begin. When the import has completed the template will appear in Morpheus within Provisioning > Virtual Images

If the image does not appear within the virtual images you may need to use the filters to filter the virtual images by the vmware ( vmdk / ovf / ova) type.

You may also need to refresh the cloud. To do this go to Infrastructure > Clouds > select the vCloud Director cloud > select Refresh.