Applies to: Windows Server 2008, Windows Server 2008 R2
There is a small but crucial difference in the way you configure a highly available virtual machine in a Windows Server 2008 Failover Cluster and Windows Server 2008 R2 (which includes Live Migration and Clustered Shared Volumes). On Server 2008, the disk is not added to the Cluster. On R2, you must add the disk to the Cluster.
Information in this article is sourced from two Ask the Core Team blog posts:
For this step-by-step, we'll show how to add a Pass-through disk to a highly available virtual machine by attaching it to a SCSI Controller in Windows Server 2008.
NOTE: SCSI controllers require the installation of Integration Components in the Guest. You can also use an IDE controller.
In Windows Server 2008 Hyper-V, using Pass-through disks allows you to bypass the Hyper-V server file system and gain faster, direct access to the disk from inside a virtual machine. However, configuration requires that the disk is Offline from the operating system perspective. The tradeoffs include; you must locate the virtual machine configuration file somewhere else, you lose the ability to take snapshots, and you cannot use dynamic disks or configure differencing disks.
For more information on the storage options for Hyper-V review Jose Barreto's blog. If you add a pass-through disk to a VM in Windows Server 2008 R2 SP1, and the disk status is be displayed as read-only in the VM, see KB 2501763.
Open the settings for a VM running the Windows Server 2008 operating system. The VM is using a VHD for its boot disk attached to an IDE controller (because Hyper-V virtual machines can only boot from storage attached to IDE controllers).
In the Disk Management snap-in, locate the disk used to support the boot disk for the VM, and the LUN to be added as the Pass-through disk. Ensure this disk shows as Offline. If it is a new disk, you must bring it Online and Initialize it before it can be used. You must reset it to Offline before adding it to the VM.
NOTE: This disk is attached to a SCSI controller.
In the Failover Cluster Management snap-in, right-click on the Virtual Machine resource and choose Shut Down.
NOTE: You must leave the Virtual Machine Configuration resource Online or you will not be able to acces the machine settings in the Hyper-V Management snap-in.
Now add the Pass-through disk to the VM. In the Hyper-V Management Snap-in, start the Add Hardware wizard and choose SCSI Controller.
Next, add a Hard Drive to the SCSI Controller.
Next, select the Pass-through disk under Physical hard disk.
Complete the configuration and Start the Virtual Machine in the Failover Cluster Management interface.
Verify the virtual machine is started, then open the Disk Management snap-in and verify the new disk was added.
In Failover Cluster Manager, click the Refresh virtual machine configuration action in the Actions pane.
NOTE: The virtual machine is Saved as part of the refresh process.
Once the refresh is completed, review the report that is generated to verify it was successful.
Examine the details of the report to see what changes were made.
Verify the new disk has been added to the group and it is Online.
In the Failover Cluster Management snap-in, Restart the virtual machine to complete the configuration of the new storage in the virtual machine.
After the partitioning and formatting of the volume is complete, refresh the display in the Failover Cluster Management snap-in.
In the Disk Management snap-in, verify the disk now shows a Reserved status. This means it is under the control of the cluster (just like the boot disk).
Test failover to other nodes in the cluster to ensure the new configuration comes Online successfully.
Windows Server 2008 R2 includes support for Live Migration of highly available virtual machines between nodes in a Failover Cluster. Clustered Shared Volumes (CSV) is also supported. You can use both CSV with Live Migration, and still take advantage of pass-through disks in a virtual machine configuration.
NOTE: The cluster uses the disk signature as one attribute for uniquely identifying storage that it controls. You can verify that cluster has control of the disk when disk status shows as Reserved.
NOTE: Pass-through disks cannot be added to a CSV namespace because the drive must be Offline in preparation for being configured in a VM. If the disk is Offline, the partition information cannot be read and CSV has a requirement for an NTFS partition.
NOTE: You cannot hot-add a hard disk to a VM using an IDE Controller if the virtual machine is running. You must first Shut Down the virtual machine.
Richard Mueller edited Revision 34. Comment: Removed (en-US) from title
Ed Price - MSFT edited Revision 20. Comment: Formatting
Ed Price - MSFT edited Revision 22. Comment: Cleaning up the formatting. Making the Step subtitles consistent and bold, with white space above and below, indenting images, etc.
Ed Price - MSFT edited Revision 29. Comment: TOC
tonysoper_MSFT edited Revision 31. Comment: +kb