Main menu

Originally created as a place for me to store some notes, this blog comments on my daily encounters with technology and aims to share some of this knowledge with fellow systems administrators and technical architects across the 'net. Amazingly, it's become quite popular!

SmartFeed by FeedBurner Subscribe to the site feed.

If you find the information here useful, then please consider linking to this site.

Recent Contributions

Calendar

April 2008
M T W T F S S
« Mar   May »
 123456
78910111213
14151617181920
21222324252627
282930  

Archive

Accessing USB devices from within Microsoft virtual machines

In my Hyper-V presentation on Wednesday, I said that USB support was one of the things that is missing from Hyper-V. That is correct - i.e. there is no ability to add USB devices as virtual hardware - but, in a conversation yesterday, Clive Watson pointed out that if you connect to a virtual machine using RDP, there is the ability to access local resources - including hard drives and smart card readers.

The way to do this is to use the Local Resources tab in the Remote Desktop Connection client options, where local devices and resources may be specified for connection:

Accessing local resources in the RDP client

If you click more, there is the option to select smart cards, serial ports, drives and supported plug and play devices (i.e. those that support redirection). In this case, I selected the USB hard drive that was currently plugged into my computer:

Accessing local resources in the RDP client

And when I connect to the virtual machine using RDP, it is listed the drive as driveletter on localmachine:

Accessing local resources via RDP - as seen on the remote machine

This is really a Terminal Services (presentation virtualisation) feature - rather than something in Hyper-V - and so it is true to say that there is no USB device support in Hyper-V for other access methods (e.g. from a virtual machine console) and that the RDP connection method is a workaround for occasional access. Microsoft see USB support as a desktop virtualisation feature and the only way that will change is if they see enough customer feedback to tell them that it’s something we need on servers too.

Comments

1

Comment from paul s.
Time: Tuesday 5 August 2008, 15:56

there are software packages that require USB dongles for licensing their appplications….w/o that support, I guess we will have to revert to VMWARE?

2

Comment from Mark Wilson
Time: Tuesday 5 August 2008, 16:14

It depends on whether those applications need constant access to the dongle or whether it is sufficient to be able to use an RDP connection to license the product and then leave it. The main problem is smartcard support (e.g. for authentication), in which case the RDP workaround is fine.

To be honest, there are not many mainstream server applications that use the USB dongle licensing model. Perhaps you’ll see USB support in subsequent releases of Hyper-V but it’s not directly supported in the current release.

3

Comment from Anonymous
Time: Tuesday 16 September 2008, 23:07

Very nice.

4

Comment from Geoff
Time: Tuesday 21 October 2008, 17:30

Nearly every accessory on my computer is accessed through the USB features of my new Vista :-( Machine. I need functions outside of jump drives (which VM already explains that it supports anyway). I am currently thinking of going to vmware for a vm that supports usb. Not allowing vm to use USB is like giving someone a car without wheels on it these days…

5

Comment from Mark Wilson
Time: Tuesday 21 October 2008, 18:06

Geoff - if you’re virtualising on Vista, then VirtualPC is the recommended virtualisation (Microsoft) platform for you. If you’re virtualising multiple desktops, then RDP allows USB access (so no problem). If you’re running Hyper-V on your daily PC and accessing VMs directly (like I am) then you’re not in the target market for the product (I think the term “enthusiast” is reserved for us). I still don’t get why they don’t give us USB support in Hyper-V but it’s not exactly a show-stopper.

Write a comment

Please note the rules for comments and the privacy policy and data protection notice. I'm sorry but, because not everyone sticks to the rules, I've had to implement some spam prevention measures - if you're experiencing difficulties leaving a comment, please let me know.





The following XHTML tags may be used: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>