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

Published on
17,726 Points
8 Endorsements
Last Modified:
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.
LVL 74

Expert Comment

by:Glen Knight
Hi ronnypot,
This is a nice, clear and concise article well written.

It has my vote.


Expert Comment

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
LVL 26

Author Comment

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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Learn how to collaborate with office 365 Office Online

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month