Attaching Physical Hard Disks to Hyper-V VMs

Attaching Physical Hard Disks to Hyper-V VMs

  • Comments 19

Hyper-V brings us the ability to attach a physical hard disk directly to a virtual machine.  In order to do this the hard disk in question needs to not be identified as "removable" by Windows.  It also needs to be in an offline state.  This can be configured by using the Disk Management node of the Windows Server 2008 Server Manager, right clicking on the disk in question, and selecting Offline:

passthrough2

Once you have done this you can open the settings for the virtual machine in question, adding a new hard disk, and selecting to use a physical hard disk.

passthrough

Note that once you have a physical hard disk attached to a virtual machine, it is not possible to take snapshots of the virtual machine.

Cheers,
Ben

Leave a Comment
  • Please add 7 and 2 and type the answer here:
  • Post
  • IS there a limit to the physical disk size that Hyper-V can use in this way?  We need a virtual drive larger than 2TB for use in an existing VM guest machine.  I can get a 4+TB physical drive showing on the Hyper-V host but I am not sure if it will be seen at 4+TB when I attach it to the VM guest.

  • As I follow all the articles instructing same, still it is not been clean that if my external drive become fixed then how should is turn back it as removabe. Which is "must" requirement to follow the steps. Other wise i suspect the physical drive option will be disabled.

  • Hi,

    I'm using hyper-v on windows 8.1 to boot up my old windows 7 install as there are several apps I need that don't play well with Windows 8.1.

    It starts OK but BSOD, probably due to the different hardware provided by hyper-v, I can boot up the windows 7 partition and it runs OK so is there a way to pre-install the hyper-v drivers to prevent the BSOD?

    Thanks.

  • Hi Ben,

    Thanks for this writeup...

    I have a question? If we add physical disk to a guest VM. Can i enable live migration?

    Many thanks in advance?

    Regards

    Natesh

Page 2 of 2 (19 items) 12