Rapid Provisioning of Virtual Machines Using SAN Copy Overview
Updated: January 15, 2013
Applies To: System Center 2012 - Virtual Machine Manager, System Center 2012 SP1 - Virtual Machine Manager
Rapid provisioning provides a method for deploying new virtual machines to storage arrays without the need for copying virtual machines over the network. System Center 2012 – Virtual Machine Manager (VMM) allows you to take advantage of your Storage Area Network (SAN) infrastructure for cloning virtual machines, combined with a VMM template for customizing the guest operating system. You can use rapid provisioning to deploy stand-alone virtual machines, and virtual machines that are deployed as part of a service.
Rapid provisioning through SAN copy enables you to quickly create virtual machines from a SAN copy-capable template. You can create a SAN copy-capable template from a virtual hard disk that resides on a storage logical unit that supports SAN copy through cloning or snapshots. When you create a new virtual machine by using the SAN copy-capable template, VMM quickly creates a read-write copy of the logical unit that contains the virtual hard disk, and places the virtual machine files on the new logical unit.
When VMM deploys a virtual machine by using rapid provisioning through SAN copy, VMM uses a SAN transfer instead of a network transfer. During a SAN transfer, a SAN copy of the logical unit that contains the virtual machine is created and assigned to the destination host or host cluster. Because the files for a virtual machine are not actually moved over the network when you transfer a virtual machine over a SAN, it is much faster than a transfer over a standard network.
Rapid Provisioning by Using SAN Copy Methods
You can use either of the following methods to create a SAN copy-capable template.
Note |
|---|
| The outlined methods provide a high-level overview of the workflow, and assume the prerequisites are met. Links to more detailed procedures for each method are provided. The prerequisites are described in the “Rapid Provisioning by Using SAN Copy Prerequisites” section of this topic. |
Method 1: Create a SAN copy-capable template from a new virtual machine
-
From a storage pool that is managed by VMM and allocated to the host group where the target host resides, create and assign a storage logical unit to the host.
Note You can also use your storage array vendor’s management tools to create and assign the logical unit. -
Create a virtual machine with a blank virtual hard disk file on the logical unit.
-
Install and customize the guest operating system and the desired applications. Generalize the image by using Sysprep.exe.
-
Use the New VM Template Wizard to create a SAN-copy capable template from the virtual machine.
When you create the template, VMM transfers the logical unit that includes the virtual hard disk file from the host to the library through a SAN transfer. The library indexes the virtual hard disk file during the next refresh.
You can then create and deploy new virtual machines by using the SAN copy-capable template. When you deploy a new virtual machine, VMM creates a clone or snapshot of the logical unit that contains the virtual hard disk file, using disk that is allocated from the managed storage pool. VMM automatically unmasks the new logical unit to the host.
For detailed steps, see How to Create a SAN-Copy Capable Template from a New Virtual Machine.
Method 2: Create a SAN copy-capable template from an existing virtual machine
-
Create a logical unit from a storage pool that is managed by VMM and allocated to the host group where the library server resides. Assign the logical unit to the library server.
Note If you want to perform this procedure entirely within VMM, you must add the library server as a managed Hyper-V host. This enables you to assign the logical unit to the library server. If you do not want to make the library server a managed Hyper-V host, you can use your array vendor’s management tools to register the logical unit to the library server. -
On the library server, mount the logical unit to a folder path in the library share.
Note If the storage is managed by VMM, you can mount the logical unit to a folder path in the library share at the same time that you assign the logical unit to the library server. -
Copy the existing virtual hard disk file (that has been generalized by using Sysprep) to the folder path where you mounted the logical unit.
-
Create a SAN-copy capable template by using the virtual hard disk file.
You can then create and deploy new virtual machines by using the SAN copy-capable template. When you do, VMM creates a clone or snapshot of the logical unit, automatically creating a new logical unit from the storage pool. VMM automatically unmasks the new logical unit to the host.
For detailed steps, see How to Create a SAN Copy-Capable Template from an Existing Virtual Machine.
Rapid Provisioning by Using SAN Copy Prerequisites
Before you begin, make sure that the following prerequisites are met:
-
The storage array must support the new storage management features in VMM.
-
The storage array must support cloning or snapshots, and have the feature enabled.
Note Realize that this may require additional licensing from your storage vendor. -
The storage pool that you want to use for rapid provisioning must be under VMM management. This involves adding the SMI-S provider for the array, discovering storage pools, classifying the storage, and setting the preferred allocation method for the storage array to either snapshot or cloning.
-
The storage pool that you want to use for rapid provisioning must be allocated to the host group where you want to rapid provision virtual machines.
-
The Hyper-V hosts that you want to use as placement destinations must be members of the host group. Additionally:
-
If you want to create a SAN-copy capable template from a new virtual machine, the host where you create the virtual machine must also be a member of this host group.
-
If you want to create a SAN-copy capable template from an existing virtual machine, and want to create and assign the logical unit from the library server, the library server must be a member of this host group. Therefore, the library server must be a Hyper-V host. (If you do not want to add the library server as a host, you can assign the logical unit out-of-band by using your storage array vendor’s management tools.)
-
If you want to create a SAN-copy capable template from a new virtual machine, the host where you create the virtual machine must also be a member of this host group.
-
All Hyper-V hosts that you want to use for rapid provisioning and the library server must have access to the storage array. Also, they must use the same type of SAN connectivity. For SAN migrations to succeed, you cannot have some hosts that connect to the array through Fibre Channel and others that connect through iSCSI. Configuration will vary depending on your storage hardware. Configuration typically includes the following:
Note For specific configuration information, see your storage array vendor’s documentation. -
The Multipath I/O (MPIO) feature must be added on each host that will access the Fibre Channel or iSCSI storage array. You can add the MPIO feature through Server Manager. If the MPIO feature is already enabled before you add a host to VMM management, VMM will automatically enable MPIO for supported storage arrays by using the Microsoft provided Device Specific Module (DSM). If you already installed vendor-specific DSMs for supported storage arrays, and then add the host to VMM management, the vendor-specific MPIO settings will be used to communicate with those arrays.
If you add a host to VMM management before you add the MPIO feature, you must manually configure MPIO to add the discovered device hardware IDs. Or, you can install vendor-specific DSMs.
Note For more information, including information about how to install MPIO, see Support for Multipath I/O (MPIO). -
If you are using a Fibre Channel storage area network (SAN), each host that will access the storage array must have a host bus adapter (HBA) installed. Additionally, make sure that the hosts are zoned accordingly so that they can access the storage array.
-
If you are using an iSCSI SAN, make sure that iSCSI portals have been added and that the iSCSI initiator is logged into the array. Additionally, make sure that the Microsoft iSCSI Initiator Service on each host is started and set to Automatic. For information about how to create an iSCSI session on a host through VMM, see How to Configure Storage on a Hyper-V Host.
-
The Multipath I/O (MPIO) feature must be added on each host that will access the Fibre Channel or iSCSI storage array. You can add the MPIO feature through Server Manager. If the MPIO feature is already enabled before you add a host to VMM management, VMM will automatically enable MPIO for supported storage arrays by using the Microsoft provided Device Specific Module (DSM). If you already installed vendor-specific DSMs for supported storage arrays, and then add the host to VMM management, the vendor-specific MPIO settings will be used to communicate with those arrays.
For information about supported storage arrays, how to bring storage under VMM management, how to configure the preferred capacity allocation method for a managed storage array, and how to allocate storage to a host group, see Configuring Storage Overview.
In This Section
Follow these steps to deploy a virtual machine by using rapid provisioning.
| Task | Description |
|---|---|
|
Step 1: Do either of the following: |
Describes how to create a SAN copy-capable template from either a new or existing virtual machine. Includes scenario-specific prerequisites. |
|
Step 2: How to Deploy a New Virtual Machine from the SAN Copy-Capable Template |
Describes how to create and deploy the new virtual machine by using the SAN copy-capable template. |
-----
For additional resources, see Information and Support for System Center 2012.
Tip: Use this query to find online documentation in the TechNet Library for System Center 2012. For instructions and examples, see Search the System Center 2012 Documentation Library.
-----
