How to create a virtual machine from a template
To simplify the process of creating a virtual machine (VM), you can use a pre-built VM template from a catalog.
Creating a VM from a template
In the VMware Cloud Director Virtual Data Center dashboard, select the VDC that contains the vApp in which you want to create the VM.
In the left navigation panel, under Compute, select vApps to view a list of vApps within the VDC.
To create a standalone VM, in the left navigation panel, select Virtual Machines, then click New VM.
In the card for the vApp in which you want to create the VM, select Actions then Add VM.
To create a new vApp, see How to create a vApp.
In the Add VMs dialog box, click Add Virtual Machine.
In the New VM dialog box, enter a Name, Computer Name and Description for your VM.
Name is a name to identify the VM, Computer Name is the host name of the VM.
The Computer Name is copied from the Name field but can contain only alphanumeric characters and hyphens so you may need to edit it if your VM Name contains spaces or special characters.
From the Type radio buttons, select From Template.
In the Templates section, select the template that you want to use for your VM, depending on your required operating system and VM size.
Creating vApp catalogs is covered in How to create a vApp catalog
When you're done, click OK.
Back in the Add VMs dialog box, you can create more VMs or click Add when you're done.
You can monitor progress in the Add VMs dialog box, or click Cancel to return to the list of vApps while the VM is created in the background.
In the left navigation panel, under Compute, select Virtual Machines to view a list of VMs within the VDC.
In the card for your new VM, select Details.
On the General page, click Edit.
In the Edit VM dialog box, from the Storage Policy list, select a storage policy to assign the VM to, then click Save.
Under Hardware, select Hard Disks, then click Edit to configure storage or Add more disks.
Select Compute, then click Edit to configure CPU and Memory.
Select NICs, then click Edit to configure network settings You can set the IP Mode to determine how IP addresses are assigned:
DHCP VMware Cloud Director interacts with the OS via VMware Tools to use DHCP rather than static IPs. You'll need to define a DHCP server on your edge gateway. Check with UKCloud or your organisation administrator that this is set up before you use it.
Static - IP Pool is the usual method, which injects an IP address into the VM via VMware Tools from a list of available IP addresses. The address may vary with each boot, but there is a check box to keep IP address assignments elsewhere within the UI once the VMs are created.
Static - Manual is similar to IP Pool, but you need to enter a valid IP Address from the pool, which the VM will then keep.
If the MAC address for a newly added NIC is blank, click Save to generate one.
We recommend using the VMXNET3 network adapter where possible. The VMXNET virtual network adapter has no physical counterpart and is optimised for performance in a VM. Because operating system vendors don't provide built-in drivers for this card you must install VMware Tools to have a driver for the VMXNET network adapter available.
If you want a more comprehensive guide on network adapter types, see the VMware documentation for Network Adapter Basics.
If you find a problem with this article, click Improve this Doc to make the change yourself or raise an issue in GitHub. If you have an idea for how we could improve any of our services, send an email to email@example.com.