<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

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

Published on
17,928 Points
7,128 Views
8 Endorsements
Last Modified:
Awarded
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
Comment
Author:ronnypot
3 Comments
LVL 74

Expert Comment

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

It has my vote.

Thanks
demazter
0
LVL 1

Expert Comment

by:netcomp
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
0
LVL 26

Author Comment

by:ronnypot
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.
0

Featured Post

10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Join & Write a Comment

Did you know PowerShell can save you time with SaaS platforms? Simply leverage RESTfulAPIs to build your own PowerShell modules. These will kill repetitive tickets and tabs, using the command Invoke-RestMethod. Tune into this webinar to learn how…
Basic Overview of office 365 user portal

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month