Attaching Physical Hard Disks to Hyper-V VMs

Attaching Physical Hard Disks to Hyper-V VMs

  • Comments 23

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 4 and 1 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

  • RE: "the hard disk in question needs to not be identified as 'removable' by Windows"

    I completely agree with Norman, this requirement is pretty ridiculous. -- I'm getting really tired of windows's restrictions to do with "removable" disks -- They're in an enclosure for crying out loud!

    I guess VirtualBox wins again. :-(

  • RE: "Note that most flash / usb devices can be configured to not be removable from Windows point of view."

    Can you tell us more about that? -- I've searched far and wide for information on this -- aside from installing unsigned hacked drivers (which don't work for all USB controllers) I've not come across another solution.  [And the hacked drivers thing doesn't work for any hardware that I've tried it on.] -- I'm using physical hard drives with a USB adapter enclosure.

  • So can that attached drive become the boot drive for the VM?

  • Mike -

    Yes, this can be the boot drive.

    Cheers,

    Ben

Page 2 of 2 (23 items) 12