Main menu

SmartFeed by FeedBurner Subscribe to the site feed.


If you find the information here useful, then please consider a small donation, or 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.

6

Comment from Ryan
Time: Wednesday 18 February 2009, 1:06

[quote] 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? [/quote]

I 100% agree with this.
I have successfully virtualised license servers for CAD and 3d from Autodesk and Chaos Group (VRAY) that require a USB dongle.
The suggestion above to create an RDP session to access a USB dongle locally is not good enough.
I insist on having “servers” serve their “services” automatically, with no admin intervetion and set up after every reboot!

The fact that Microsoft could already overlook this important feature and think it is just required for deskstop virtualisation indicates they don’t know the market well enough.
If your competitor already has a given feature, then you better be damn sure why you don’t need to include it in your product.
You’ve dropped the ball on this one.

But congrats on recent developments to improve Hyper-V with Live Migration. Can’t wait to try it.

7

Comment from Mark Wilson
Time: Wednesday 18 February 2009, 8:16

Ryan - you said “you’ve” dropped the ball on this one… I don’t work for Microsoft :-)

I (and many others) have provided feedback to Microsoft on why this is an important feature though… only time will tell if they are actually listening.

Cheers, Mark

8

Comment from Paul Pavlinovich
Time: Wednesday 8 July 2009, 8:22

Those saying they will go to VMWARE because it supports USB are a little misguided. VMWare ESX - the equivalent of Hyper-V does NOT support USB usage within the guests.

The workstation versions of VMWARE (VMWare Player, Workstation, and “Server”) do support it, but so does Microsoft Virtual PC and Virtual Server that are the equivalent Microsoft products.

Community users are crying out for USB support in both platforms - there are ways to do it such as Lantronix UBOX2100 / 4100 but at about $300 each and a plug pack sucking juice and yet another network connection it sort of defeats the virtualisation purpose to some extent.

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>