How to Use the Hot Add of Virtual Hard Disk in Hyper-V 2008 R2

How to Use the Hot Add of Virtual Hard Disk in Hyper-V 2008 R2

Note: This article is based on Hyper-V 2.0,  this might not apply to Hyper-V 3.0 (Server 2012)

Introduction


Is very common in virtual environments the needs to add VHDs (HD file extension used by virtual Machines) in virtual servers, the same process called Hot Swap in physical environments. Now on Hyper-V in Windows Server 2008 R2 is possible do this operation without a specific hardware. This sometimes is not a problem, but until then it was necessary to shut down the virtual machine (VM) to do that. You will see how the Hyper-V R2 helps to put more HDs with VMs in production, without impacting your environment, as well as is done in the physical environment.

Procedure

Open the Hyper-v Manager by clicking start > Administrative Tools > Hyper-V Manager. Click OK in the user account control message to elevate your credentials as an administrator.

Select the virtual machine that you want to add the virtual disk and click Settings on the right side of the screen, as Figure 1.


Figure 1 – Virtual machine settings


Then click SCSI controller, hard drive, and then click Add.


  
Figure 2 – Adding a SCSI Storage


Note that you cannot add a Storage IDE, only SCSI and pass-through Disks.

Choose the vhd file path or the physical disk that you want to add. Physical Hard Drive, called pass-through disk, must be offline
in physical machine. In the example below was used a dynamic vhd with 20 GB.



  
Figure 3 – Vhd path


After you have clicked Ok, open disk management of your virtual machine and you can view the new disk available.

  
Figure 4 – Virtual machine disk



The Hard Drive already appears as online and now you can create new partitions and volumes. In the case of physical disks you can even create RAIDs fault tolerance. To remove it just open virtual machine settings, click Settings and removes SCSI. 


Leandro Carvalho
MCSA+S+M | MCSE+S | MCTS | MCITP | MCBMSS | MCT | MVP Virtual Machine
MSVirtualization | Wordpress | Winsec.org | ITCentral | LinhadeCodigo
Twitter: LeandroEduardo

Leave a Comment
  • Please add 7 and 7 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Danny van Dam edited Revision 7. Comment: added note about that this might not apply to Hyper-V 3.0

  • Carsten Siemens edited Revision 6. Comment: Added tags: has comment, has image

  • dc9999 edited Revision 3. Comment: With W2K SP4 the new SCSI .vhd was not available immediately.  I believe this requires W2K3 R2 and higher.  Only because the server in the article is W2K3 R2 did I not say W2K3 though it may work as well.

  • Leandro E. Carvalho edited Revision 2. Comment: New Format

Page 1 of 1 (4 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Leandro E. Carvalho edited Revision 2. Comment: New Format

  • dc9999 edited Revision 3. Comment: With W2K SP4 the new SCSI .vhd was not available immediately.  I believe this requires W2K3 R2 and higher.  Only because the server in the article is W2K3 R2 did I not say W2K3 though it may work as well.

  • Thanks it's really helpful!

  • Carsten Siemens edited Revision 6. Comment: Added tags: has comment, has image

  • it's work!. Thanks.

  • Danny van Dam edited Revision 7. Comment: added note about that this might not apply to Hyper-V 3.0

Page 1 of 1 (6 items)