Loading...

Creating a Virtual Lab Policy for Hyper-V

To set up Virtual Machine (VM) Lifecycle Management for Virtual Labs, you must create a Standard Virtual Lab Policy, so that users can create their own virtual labs. A virtual lab is a collection of virtual machines.

Before You Begin

  • Install Web Server and Web Console. For instructions see Installing the Command Center.
  • Create a Hyper-V Client.
  • Supported operating systems:
    • Windows Server 2008, 2008 R2, 2012, 2012 R2, 2016
    • Windows 7, 8, 8.1, 10
    • Linux  RHEL 5, 6, and 7, CentOS, Oracle, and Ubuntu
  • Save virtual machines on shared storage, either within the cluster or on an SMB share that is visible to all hosts.
  • If you want to create a gateway computer that allows communication with computers outside of the virtual lab, you must download the gateway template from the Commvault Store and import it into the Hyper-V cluster.

    For download instructions, see Downloading Items from Commvault Store.

    You must name all virtual machine templates using this format: CV_VLAB_GATEWAY_*. Only templates that begin with this prefix are displayed.

  • Optional: To use Microsoft Hyper-V for Windows or Linux virtual machines, install a customization service on the virtual machines. For instructions, see Configuring VM Lifecycle Policies for Hyper-V.

Procedure

  1. In the CommCell Browser, expand Policies, right-click Virtual Machine Policies and then click Create New Policy.
  2. In the Virtual Machine Policy Options dialog box, select the vendor and policy options:
    1. From the Virtualization Vendor list, select Hyper-V.
    2. From the Policy Type list, select Clone from Template.
    3. Select Enable Virtual Lab.
    4. Click Next.

    The Virtual Lab Policy dialog box appears.

  3. On the Enter the Policy Name and Description page, name the policy and configure advanced settings:
    1. In the Policy Name box, enter a name for the policy

      Note: Make a note of the Policy name. This is needed later for users to create virtual machines.

    2. To configure the period of time before a VM is decommissioned and then deleted, select Enable Decommission, in the Decommission VM after list, select or type a number of days, and in the Deletion grace period list, select or type a number of days.

      All the decommissioned machines are automatically turned off, and when you perform a backup for these machines, they are archived.

      Make a note of the number of days, and then schedule a backup for virtual machines.

    3. In the Description box, enter a description for the policy.
    4. Click Next.
  4. On the Select the Virtualization Client page, select either the single host or clusters that you want to make available to VM lab users:
    1. From the Virtualization Client list, select the name of a client.
    2. Optional: Click Refresh Hyper-V Hosts.

      We recommend that you perform this step at the instance level when you create the Hyper-V client, before you create the VM Lifecycle Policy, so that the Cluster list contains all of the clusters you want to use.

    3. Optional: Click Advanced Policy Features and configure any of the options in the Advanced Policy Features dialog box:
      • To specify the client group that can use this policy, select Associated Client Group, and then select a client group name from the list.
      • To create a differencing disk from the template machine when you create Virtual Labs with this policy, select Use Linked Clone.
      • To configure email addresses for the people who will be notified about VM operations, in the E-mail addresses to notify box, enter email addresses separated by commas.
      • To configure the email sender's address, in the Sender's email address box, type an email address.
      • If you don't want to notify users about VM operations that succeeded, select Disable e-mail notifications for successful VM operations.
      • To configure Hyper-V Server threshold limits, select Enable Hyper-V Threshold Limits, and then in Memory Freespace Required and Volume Freespace Required, select the applicable percentages.

        Virtual Machine Provision will be skipped if its hosting server memory or volume has less than the required freespace.

      Click OK to close the Advanced Policy Features dialog box.

    4. Click Next.
  5. On the Select Nodes page, select the cluster nodes that you want to make available to VM lab users:
    1. From the Available list, select one or more cluster nodes, and then click Add to add them to the Selected list.
    2. Click Next.
  6. On the Select Volumes page, select the volumes that you want to make available to VM lab users:
    1.  From the Available list, select one or more volumes, and then click Add to add them to the Selected list.
    2. Click Next.
  7. On the Select Templates page, select the virtual machine templates that you want to make available to VM lab users:
    1. From the Available list, select one or more virtual machines, and then click Add to add them to the Selected list.
    2. To specify a list of available templates, click Define Templates.
      • From the Available list, select one or more virtual machines, and then click Add to add them to the Selected list.
      • Click OK to close the Define Templates dialog box.
    3. To configure a gateway computer that allows communication with computers outside of the virtual lab, in the Gateway Template list, select a virtual machine name.
    4. Click Next.
  8. On the Enter Resources page, enter the minimum and maximum values allowed for each virtual machine, and then specify the network names that can be used:
    1. Next to # of CPUs, set the minimum and maximum number of CPUs for each virtual machine, and the cost per core.
    2. Next to Memory (GB), set the minimum and maximum amount of memory for each virtual machine, and the cost per GB.
    3. Next to # of NICs, set the minimum and maximum number of NICs for each virtual machine.
    4. Next to Network Names, from the Available list, select one or more networks, and then click Add.
    5. Click Next.
  9. On the Enter Storage Information page, specify the settings for disk type, number, and space:
    1. Next to Disk Type, select the type of disk that you want to make available
    2. Next to Number of Disks, set the maximum number of allowed disks.
    3. Next to Disk Space, enter the minimum and maximum amount of disk space allowed for each disk, and the cost per GB.

      Note: The minimum disk size that is available to users is determined by the hard disk size that is configured in the template. Therefore, when you set the minimum disk size on this page, it might be different than the minimum disk size that is available to users when they create virtual machines.

    4. Next to Number of Snapshots, enter the maximum number of allowed snapshots.
    5. To configure additional mount paths, under ISO Mount Paths, click Add, in the Storage dialog box, select the mount paths, and then click OK.
    6. Click Next.
  10. On the Select User Membership page, select the user groups that will have access to VM Provisioning:
    1. From the Available list, select one or more user groups, and then click Add to add them to the Selected list.
    2. Click Next.
  11. On the Summary page, click Finish.

To begin creating virtual labs, see Creating a Virtual Lab for Hyper-V VM Lifecycle Management.

 

Last modified: 6/24/2019 12:16:41 PM