Team blog of MCS @ Middle East and Africa

This blog is created by Microsoft MEA HQ near shoring team, and it aims to share knowledge with the IT community.With its infrastructure and development sides,It brings to you the proven best practices and real world experiences from Subject Matter Experts
Follow Us On Twitter! Subscribe To Our Blog! Contact Us

Windows Server 2012 R2 Preview Hyper-V Shared Virtual Hard Disk and Storage QoS

Windows Server 2012 R2 Preview Hyper-V Shared Virtual Hard Disk and Storage QoS

  • Comments 6
  • Likes

A couple of the very nice and long waited features are Hyper-V shared Virtual Hard Disks and Storage Quality of Service are being released as part of the Windows Server 2012 Preview features

In this blog post we will walk through the configuration requirements and how to configure, for both of these features and before that here’s a quick brief about each feature:

Shared Virtual Hard disk: gives you shared storage to be mapped to multiple virtual machines that are configured as a guest failover cluster. Which can be used as witness disk and clustered application disks too.

Storage QoS: enables you to manage storage throughput for virtual hard disks that are accessed by your virtual machines and it gives you the ability to specify the maximum and minimum I/O loads in terms of I/O operations per second (IOPS) for each virtual disk in your virtual machines. Storage QoS ensures that the storage throughput of one virtual hard disk does not impact the performance of another virtual hard disk on the same host.

Step by step deployment of a Guest Cluster Using a Shared Virtual Hard Disk

First of all we need to have at least two nodes Windows Server 2012 R2 two nodes cluster deployed as per http://technet.microsoft.com/en-us/library/jj863389.aspx

1. Start creating Virtual Machines to be form the Guest cluster

2. In Failover Cluster Manager, select or specify the cluster Name. Ensure that the console tree under the cluster is expanded.

R2HV02-2013-10-03-02-46-09

3. Click Roles, In the Actions pane, click Virtual Machines, and then click New Virtual Machine. The New Virtual Machine Wizard appears. Click Next.

R2HV02-2013-10-03-02-57-35

4. Select Target node for virtual machine to be initially parked on.

5. On the Specify Name and Location page, specify a name for the virtual machine, such as VM01 and VM02. Click Store the virtual machine in a different location, and then type the full path or click Browse and navigate to the shared storage.

R2HV02-2013-10-03-03-00-53

 

6. On the Assign Memory page, specify the amount of memory required for the operating system that will run on this virtual machine. For example, specify 1024 MB to run Windows Server 2012.

7. On the Configure Networking page, connect the network adapter to the virtual switch that is associated with the physical network adapter.

8. On the Connect Virtual Hard Disk page, click Create a virtual hard disk. If you want to change the name, type a new a name for the virtual hard disk. Click Next.

9. On the Installation Options page, click Install an operating system from a boot CD/DVD-ROM. Under Media, specify the location of the media, and then click Finish.

10. Repeat the above steps from 2-9 to create VM02

11.In Failover Cluster Manager, expand the cluster name, and then click Roles.

12. In the Roles pane, right-click the VM01 on which you want to add a shared virtual hard disk, and then click Settings.

R2HV02-2013-10-03-03-06-59

 13. In the virtual machine settings, under Hardware, click SCSI Controller, click Hard Drive, and then click Add.

R2HV02-2013-10-03-03-07-31

 14. In the Hard Drive details pane, under Virtual hard disk, click New.

R2HV02-2013-10-03-03-07-41

 15. On the Before You Begin page, click Next.

R2HV02-2013-10-03-03-07-45

 16. On the Choose Disk Format page, accept the default format of VHDX, and then click Next.

R2HV02-2013-10-03-03-07-48

 17. On the Choose Disk Type page, select Fixed size, and then click Next.

Note: A differencing disk is not supported for a shared virtual hard disk.

 R2HV02-2013-10-03-03-13-18

 18. On the Specify Name and Location page, specify the location for the disk on one of CSV volumes.

R2HV02-2013-10-03-03-08-34

 19. On the Configure Disk page, accept the default option of Create a new blank virtual hard disk, specify the desired size, and then click Next.

R2HV02-2013-10-03-03-08-41

20. On the Completing the New Virtual Hard Disk Wizard page, review the configuration, and then click Finish.

21. In the virtual machine settings, under SCSI Controller, expand the hard drive that you created in the previous procedure.

R2HV02-2013-10-03-03-08-57

 22. Click Advanced Features, select the Enable virtual hard disk sharing check box.

R2HV02-2013-10-03-03-09-06

23. Click Apply, and then click OK.

24. Add the virtual hard disk to VM02 that will use the shared .vhdx file too. When you do, repeat this procedure to enable virtual hard disk sharing for each virtual machine that will use the disk.

Step by step deployment of Storage Quality of Service

1. In Failover Cluster Manager, expand the cluster name, and then click Roles.

2. In the Roles pane, right-click the VM01 on which you want to add a shared virtual hard disk, and then click Settings.

R2HV02-2013-10-03-03-06-59

3. In the virtual machine settings, under IDE or SCSI Controller, expand the hard drive, click Advanced Features and Set the desire Maximum and Minimum IOPS.

R2HV02-2013-10-03-03-24-23

4. Click Apply, and then click OK.

Comments
  • Great Post!

  • One addition to the above information: You must use Windows Server 2012 or Windows Server 2012 R2 Preview for the guest operating system. If you use Windows Server 2012, you must upgrade the Hyper-V integration services to the Windows Server 2012 R2 Preview version.

    Yo install integration services use below method:

    Open Hyper-V Manager. From the Server Manager Tools menu, click Hyper-V Manager.

    Select the name of the virtual machine. In the Action pane, click Connect.

    The Virtual Machine Connection tool opens. From the Action menu of Virtual Machine Connection, click Insert Integration Services Setup Disk. This action loads the setup disk in the virtual DVD drive.

    Open dvd drive, go x86 folder, install setup.

    Done

  • Great post.

    One doubt here, as Guest Cluster OS can we use Windows 2008 R2 and then use CSV as cluster disks?

  • We found that this is possible after installing the Windows 2012 R2 integration services on Virtual servers

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment