• Improve this Doc

    Show / Hide Table of Contents

    How to create a VM from scratch

    Overview

    As well as deploying pre-built VMs from a catalog, you can build your own VMs from scratch, as you would do on a physical machine, using an ISO image in place of a physical CD or DVD.

    For information about creating a VM from a template, see How to create a VM from a template.

    Creating an empty VM

    1. In the VMware Cloud Director Virtual Data Center dashboard, select the VDC that contains the vApp in which you want to create the VM.

    2. In the left navigation panel, under Compute, select vApps to view a list of vApps within the VDC.

      vApps menu option in VMware Cloud Director

      Tip

      To create a standalone VM, in the left navigation panel, select Virtual Machines, then click New VM.

    3. In the card for the vApp in which you want to create the VM, select Actions then Add VM.

      Add VM menu option

      Tip

      To create a new vApp, see How to create a vApp.

    4. In the Add VMs dialog box, click Add Virtual Machine.

      Add Virtual Machine button

    5. In the New VM dialog box, enter a Name, Computer Name and Description for your VM.

      Note

      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.

    6. As you're creating the VM from scratch (not from a template), from the Type radio buttons, select New.

    7. Select the OS Family to use for your VM, then from the Operating System list, select the specific OS that you want to use.

      New VM dialog box - Type

    8. From the Select a Size radio buttons, select a sizing option for your VM.

      You can select from Pre-defined Sizing Options or select Custom Sizing Options to enter specific compute, memory and storage settings.

      Tip
      • Although you can build a VM to your own specification in terms of the number of vCPUs and amount of memory and disk space, you'll be billed based on the closest (next highest) match to a UKCloud pre-defined VM size.

      • Given the flexibility of VMs, and the ability to change the number of vCPUs and amount of memory and disk space on the fly, it's often better to start small as you're not tied by the constraints of a physical server. Remember too, that more vCPUs or RAM won't necessarily make a server faster, and could cost a lot more. You need to understand how well your application can make use of multi-threading.

      • For Windows, select at least two vCPUs if you think you'll need two or more in the future, as the multi-processor HAL will be loaded as part of the OS build.

    9. If you want to run virtualisation servers as a VM, you can edit the properties of the VM after it has been deployed and, in the Hardware section, select the Expose hardware-assisted CPU virtualization to guest OS check box.

      For example, you can run a Windows 2008 or 2012 server with Hyper‑V, or a VMware ESX host.

    10. In the Storage section, set the Storage Policy and Size of storage for the VM. You can also add more disks.

      Tip

      When setting the storage size, be sure to select the appropriate units (MB, GB or TB).

    11. In the Networking section, click Customize to configure network settings, if necessary. 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.

      • 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.

      • Manual IP is similar to IP Pool, but you need to enter a valid IP Address from the pool, which the VM will then keep.

      Create VM dialog box

      Tip

      You can connect the VM to multiple networks, by clicking Add.

    12. When you're done, click OK.

    13. Back in the Add VMs dialog box, you can add more VMs or click Add when you're done.

      The VM will be deployed without any operating system.

    Installing an operating system into the VM

    When you create a VM from scratch, it's initially deployed without any operating system. So, after you've created it, you need to install the appropriate operating system.

    1. On the card for the vApp that contains the VM, click Actions then select Power On.

      This starts the vApp and all the VMs within it.

    2. In the card for the vApp that contains the new VM, click Details.

      VM Details menu option

    3. Select Virtual Machines.

    4. Click the VM Console option for the VM.

      Tip

      For a standalone VM, in the left navigation panel, under Compute, select Virtual Machines to view a list of all VMs within the VDC. Then, in the card for your new VM, click VM Console.

    5. As with a physical server, no virtual CD or DVD is available at first boot, so the server will attempt to PXE boot.

      VM console

    6. In the main VMware Cloud Director interface (not the console), in the row for your VM, select the actions menu (three dots) then Insert Media.

      Insert Media menu option

    7. In the Insert CD dialog box, select the ISO image you want to mount from a catalog, then click Insert.

    8. In the row for the VM, select the actions menu (three dots) then Reset to reset the VM so that it picks up the virtual CD/DVD.

      Reset VM menu option

      After a short while the VM will start the boot process and pick up the CD/DVD. Resize the VM console if necessary or go to full screen.

      Installing CentOS Linux 7

    9. Carry out the operating system install as normal.

      When you've finished, remember to install VMware Tools (for more information, see VMware Tools installation).

    Feedback

    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 feedback@ukcloud.com.

    ☀
    ☾
    Generated by DocFX
    Back to top
    © UKCloud Ltd, 2022. All Rights Reserved.
    Privacy Policy. Terms of Use. Contribute.

    The UKCloud Knowledge Centre uses cookies to ensure that we give you the best experience on our website. If you continue we assume that you consent to receive all cookies on this website.