Mounting a physical disk or external disk to a VM in Hyper-V

I think that mounting a physical disk or external disk to a VM in Hyper-V is really interesting, especially if you’re looking to attach a USB stick or an external HDD to a virtual machine.
The operation is very simple but I suggest you not to abuse it: mounting a disk through a USB port will result in getting a pretty slow data transfer, but at the same time it’ll result in instant data-portability.

So, in order to do that we just need to mark the disk as inactive. Open a command prompt and type the following.

Now note the disk number you want to attach to the virtual machine, let’s say it’s number 3.
Run this.

You may now exist disk part and go in Hyper-V and attach a new disk to the virtual machine. In the screenshot below I attached it as an iSCSI controller.

attachexternaldisktohyper-vVM

(more…)

Read More