Creating a Virtual Machine from a Template

For this example scenario, you create an Oracle Linux virtual machine from the template created in Creating a Template.

Creating an Oracle Linux Virtual Machine from a Template

To create an Oracle Linux virtual machine from a template:

  1. Go to Compute and then click Templates.

    The Templates pane opens with the list of templates that have been created.

  2. On the far right corner of the Templates pane, click New VM.

    The New Virtual Machine dialog box opens for the template.

  3. On the Cluster drop-down list, select the data center and host cluster for the new host.

    By default, the Default option is selected in the drop-down list.

    For this step, leave Default selected from the drop-down list because the default data center and cluster are used in this example scenario.

    For the procedures to create new data centers or a new clusters, refer to Data Centers or Clusters tasks in the Oracle Linux Virtualization Manager: Administration Guide.

  4. For the Template drop-down list, select the desired template from the drop-down list.

    For this example scenario, select the template created in Creating an Oracle Linux Template.

  5. For the Operating System drop-down list, select the operating system from the drop-down list.

  6. For the Name field, enter a name for the virtual machine.

    The following screenshot shows the New Virtual Machine dialog box for the new Oracle Linux virtual machine that is being created based on the template that was created in Creating an Oracle Linux Template. In the dialog box, the following key fields are completed:

    • From the Cluster drop-down list, the Default option is selected.

    • From the Template drop-down list, the template named ol7-vm-template is selected.

    • For the Operating System drop-down list, Oracle Linux 7.x x64 is selected.

    • For the Name field, ol7-vm2 is entered.

    • From the nic1 drop-down list, the logical network named vm_pub is selected.

    Figure 14 New Virtual Machine Dialog Box for a Template - General Tab


  7. Click the Boot Options tab and ensure that the First Device is set to Hard Disk.

    The following screenshot shows the New Virtual Machines dialog box with the Boot Options tab options selected for the new Oracle Linux virtual machine named ol7-vm4 that is being created from the template named ol7-vm-template in this example. The First Device is set to Hard Disk.

    Figure 15 New Virtual Machine Dialog Box for a Template - Boot Options Tab


  8. Click OK to create the virtual machine from the template.

    The new virtual machine appears on the Virtual Machines pane.

  9. Highlight the virtual machine that you created from the template and then click Run to boot the virtual machine.

    The red down arrow icon to the left of the virtual machine turns green and the Status column displays Up when the virtual machine is up and running on the network.