Community Pick: Many members of our community have endorsed this article.
Editor's Choice: This article has been selected by our editors as an exceptional contribution.

How to: attach a usb disk to a Hyper-V virtual machine

ronnypot
CERTIFIED EXPERT
Published:
As the most of you know, Hyper-V does not support usb redirection. But with some relative easy steps we can redirect our usb disk to a Hyper-V virtual machine.

First on your Hyper-V Server host open Server Manager and select Disk Management

Attach USB disk to a Hyper-V 1
Then select your usb disk and right mouse click and choose Offline.

When done we close Server Management and open Hyper-V Manager. Select the settings of the virtual machine you would like to attach the usb drive to.

Attach USB disk to a Hyper-V 2
Select IDE Controller or SCSI Controller. Before you choose let me explain why I would choose the SCSI controller instead of the IDE controller for an usb redirected drive. A Hyper-V virtual machine can only boot from an IDE hard drive, you can only add a dvd drive on an IDE controller, you can only add 4 IDE devices. Another thing I would prefer to add an usb disk to the SCSI controller is I can add or remove disks to the virtual machine when it is running, to add an IDE controller disk I need to stop the virtual machine then add the disk and then start the virtual machine.

Now to add your usb disk to you virtual machine we choose Add

Attach USB disk to a Hyper-V 3
Now we choose for Physical hard disk: and choose the disk we would to add. If you have more disks available you can choose from a simple pull down list. You will only see here the disks that are set to offline so that was the first step we had to do. If you would like to add an internal hard disk you have to put it offline before you can add it.

Note: before you set another disk offline be sure there are no operating, system or application files on it because otherwise these or your whole server will crash.

When finished choose OK on the bottom of the screen and the disk is added to your virtual machine.

When we are going to look at your virtual machine and open Disk Management.

Attach USB disk to a Hyper-V 4
You will see the disk directly attached and you can use it within your virtual machine.

If you would remove the drive from the virtual machine, go back to your Hyper-V Manage
r virtual machine settings on your host server.

Attach USB disk to a Hyper-V 5
Select the drive and choose remove and choose Apply or OK at the bottom of the screen.

After you have removed the disk from the virtual machine go back to Disk Management

Attach USB disk to a Hyper-V 6
Right click the drive and choose Online. Now the drive is available on your host server.

You can use this if you need to copy some files directly from the usb disk to the virtual machine or vice versa. Another thing you could use this is for is Windows / SBS backup this needs a local attached disk if you even have chosen for the SCSI controller you can change the backup disk when your virtual machine is running.
8
8,984 Views
ronnypot
CERTIFIED EXPERT

Comments (3)

Glen KnightLead Techical Consultant
CERTIFIED EXPERT
Author of the Year 2010
Top Expert 2010

Commented:
Hi ronnypot,
This is a nice, clear and concise article well written.

It has my vote.

Thanks
demazter

Commented:
Anyway I can make a USB modem work. I have an application that faxes out invoices and need to use a fax modem and need to somehow figure this out. Thanks
CERTIFIED EXPERT
Top Expert 2011

Author

Commented:
Hi, as described there is no usb redirection in Hyper-V this is only a workarround to map usb disks not for other usb devices.

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.