Use > Virtualization management > Virtual machine and VM template tasks > Deploy a VM from a VM template - SCVMM

Deploy a VM from a VM template - SCVMM

This section describes how to create a VM from a VM template. You can also create and provision a VM using Create and provision a VM - SCVMM.

Use an agent-managed template.

  1. In the SA Client, select the Virtualization tab to display your virtualization inventory.
  2. Navigate to the VM template.
  3. Select the VM template and right-click or select the Actions menu and select Deploy VM to display the Deploy VM from VM Template window.
  4. Virtual Machine Definition: Enter the following information, then select Next.
    • The VM name.
    • A description of the VM.
    • Assign a customer to the VM. You can select the customer; the default option is the customer assigned to the template.
  5. Host: Select the server that you want to host the VM. Verify the host ratings, then select Next.
  6. Storage Location: Select from the default paths configured on the host or enter a valid path that exists on the host.
  7. Network Configuration: Select the network and optionally configure the VLAN ID for each NIC.

  8. Guest Customization: Guest customization is strongly recommended so that your new VM does not have any network conflicts with the source VM and to ensure SA agent connectivity. Guest customization is available on agent-managed VMs and templates.

    Guest customization is supported on the following platforms:

    - CentOS 5.8 and above
    - Microsoft Windows Server 2008 (32-bit)
    - Microsoft Windows Server 2008 (64-bit)
    - Microsoft Windows Server 2008 R2 (64-bit)
    - Microsoft Windows Server 2012 (64-bit)
    - Microsoft Windows Server 2012 R2 (64-bit)
    - Microsoft Windows 7 (64-bit)
    - Microsoft Windows 8.1 (64-bit)
    - Oracle Enterprise Linux 5.8 and above
    - Red Hat Enterprise Linux 5 and above
    - SuSE Linux Enterprise Server 11
    - Ubuntu Linux Server 12.04
    - Ubuntu Linux Server 12.04 x86_64

    For Microsoft Windows Server 2008 (64-bit), Microsoft Windows Server 2008 R2 (64-bit), and Microsoft Windows 7 (64-bit), use only source VMs with IPv4 DHCP or autoconfiguration IPv6 when cloning to a target that will have an IPv6 autoconfiguration address (DHCPv6).

    Do the following to guest-customize the new VM:

    On Windows:

    • From the drop-down list, select the IP version to be used to configure the VM. Depending on the OS you select, you can use IPv4 only; IPv4 and IPv4/IPv6 dual-stack; or IPv4, IPv6, and IPv4/IPv6 dual-stack.
      • For IPv4, you can select DHCP to configure your network using your SA DHCP-enabled environment, or choose Static to configure your network settings manually. For more information about an SA DHCP-enabled environment, see the "Provisioning" section in the SA 10.60 Administer section.
        • You can specify a Static IP as the final network configuration for PXE boot, although DHCP must be enabled for you to PXE boot.
        • For static IP, you are required to enter the IP address, subnet mask, default gateway, and DNS server.
      • For IPv6:
        • With Autoconfig - You can optionally specify one or more IPv6 address, the default gateway, the DNS server, the host name and the domain.
        • Without Autoconfig - You are required to enter a IPv6 address and the host name. Optionally, you can specify the default gateway, the DNS server, and the domain.
          • When an IPv6 address is specified, the default prefix (64) is added at the end of the address, provided that no other valid prefix (an integer between 1 and 128) has been given.
      • For IPv4/IPv6 dual-stack configuration - Configure both IPv4 and IPv6 addresses as described.
    • Enter the Computer Name for the new VM.
    • Use the source volume license key, or optionally enter the product key as XXXXX–XXXXX–XXXXX–XXXXX–XXXXX, in which each X represents a letter or number.
    • Set the Administrator Password.
    • Select Network Membership for the new VM.
      • If you select Workgroup, enter the Workgroup name for the new VM.
      • If you select Windows Server Domain, enter the domain. You must then enter your User Name and Password for that domain.
    • To add optional Custom Attributes, press the Configure button.

    Determine which drive the system partition is using. If the Source Windows VM has more than one partition (for example, a “Reserved Partition,” which default Windows installations have), you must set a custom attribute called “SystemPartition” on the source to specify the partition in which the system files reside. For example, if you have two partitions (Reserved and OS), set the “SystemPartition” drive custom attribute to D.

    On Linux:

    • Select the IP version to be used to configure the VM.
      • For IPv4, you can select DHCP to configure your network using your SA DHCP-enabled environment, or choose Static to configure your network settings manually. For more information about an SA DHCP-enabled environment, see the "Provisioning" section in the SA 10.60 Administer section.
        • You can specify a Static IP as the final network configuration for PXE boot, although DHCP must be enabled for you to PXE boot.
        • For static IP, you are required to enter the IP address, subnet mask, default gateway, and DNS server.
      • For IPv6:
        • With Autoconfig - Optionally specify one or more IPv6 address, the default gateway, the DNS server, the host name and the domain.
        • Without Autoconfig - You are required to enter a IPv6 address and the host name. Optionally, you can specify the default gateway, the DNS server, and the domain.
          • When an IPv6 address is specified, the default prefix (64) is added at the end of the address, provided that no other valid prefix (an integer between 1 and 128) has been given.
      • For IPv4/IPv6 dual-stack configuration - Configure both IPv4 and IPv6 addresses as described.
    • Enter the Host Name and Domain for the new VM.
    • Optionally set custom attributes for the new VM.

    Windows or Linux: When configuring the network interfaces, if there are multiple NICs, only one can be configured with a Static IP.

  9. Preview: Verify the information about the VM to be deployed. Use the Back button or select a previous step to make changes, then select Next.
  10. Scheduling: Select when you want the deploy VM job to run, then select Next.
  11. Notifications: Optionally enter a notifier, then select Next.
  12. Job Status: Select the Start Job or Schedule Job button. This runs the job or schedules it to be run in the future and displays the Job ID number in the window banner. You can use the Job ID number to look up the job under the Jobs and Sessions tab.

    When the job runs, it deploys the VM and displays the results. Once the VM is deployed, you will see it in the virtualization inventory of the VS in the SA Client and All Managed Servers.

Third-party certificate mode

Even if the SA Core is set to third-party certificate mode, the VM will use Agent certificates signed by an SA Certificate Authority. To replace these self-signed certificates with third-party ones, follow the steps in Phase 2: Update your SA Agent certificate to use third-party certificate mode.