« 4HB + P90X = 24" Pythons (or at least improved fitness) | Main | Download all of the TechEd videos via PowerShell - and even play them on iOS! »

Virtualization FAQs, Tips, and Tricks - Virtualizing USB dongles

If you've been visiting my site lately, you'll notice that I've been regularly posting a series of Virtualization FAQs, Tips, and Tricks as a follow-up to the TechEd 2011 VIR471-INT session.

Today's installment deals with how you can virtualize a workload which requires access to a USB key, such as a software licensing dongle.

Thanks go to Aaron Sudduth for discovering this one. Aaron is the sysadmin on my team that discovered this solution, and he's the one that did our initial installation and troubleshooting.

As discussed in the session, using software that requires a specialized USB license dongle isn't actually a blocker for a workload that you'd like to virtualize. We've spent the last couple years virtualizing such workloads without issue.

The trick to making this work is to use USB over IP with a network-attached USB hub like the ones found here. The specific model we've been using is the LTB AnywhereUSB/5 Gen 1. It appears that this product is being discontinued and replaced with a much more expensive model for about twice the price (though it doesn't appear to do anything differently that I can see), so we're considering buying a couple to stock up before they totally disappear.

There are a lot of other models out there, but since we haven't tested them, I can only say that I know this one works for anything we've tested.

How it works

The process is actually pretty straightforward. You hook this box up to your network and assign it an IP, and then you plug in your USB key. At that point, you just have to install a piece of software inside your VM, and it will connect to this box over the network and bring the USB key into Device Manager just like it was running locally. So long as you have network connectivity, you'll continue to have access to the dongle.

Some gotchas to be aware of

First, it's important to note that not all devices will work this way, but we've not found that didn't. It's probably worth testing if you're not sure.

Second, this device comes up a little later in the stack, once network connectivity has been established. It's possible that you have a service starting up which requires this dongle that may try to start before this device comes online. In that case, you need to setup your service to have a delayed start in order for this to all fall into place.

Third, Windows VMs don't have the necessary drivers to use this out of the box (since VMs don't have USB controllers) unless the VM was originally P2V'd, so you actually have to add those drivers before this will work.

Here are the notes from a Digi guide on how to make it work

The following workaround is required for installing an AnywhereUSB in a Virtual Machine:

1. Make sure Windows is configured to show file extensions. In My Computer, click "Tools / Folder Options" then click the "View" tab. Scroll down and uncheck "Hide extensions for known file types" (unless it's already unchecked) then click OK.

2. Search the Windows CD (that matches the OS of the Host PC) for a file called "usbd.sy_" (it should be in the i386 folder). For example, if the Host PC is running Windows 2003, then use a Windows 2003 CD.

3. Copy "usbd.sys_" and paste it in "c:\windows\system32\drivers" (or c:\winnt\system32\drivers for Windows 2000), then rename the file to "usbd.sys". Be sure to paste it in the "drivers" folder, not just "system32".

4. Open the AnywhereUSB Configuration Utility, click "View / Driver Information / Uninstall" and reboot the Virtual Machine when prompted.

5. After Windows loads, re-install the AnywhereUSB software and follow the normal installation procedure - you should go through a total of 5 found new hardware wizards, and the 5 port LEDs should be solid green once the AnywhereUSB is installed and connected to the Host PC. 

Some additional support documentation from Digi can be found here

In summary, if you come across a workload that you'd like to virtualize, but don't think you can because of a software dongle, check out this solution as a way to get that workload off of metal and into a VM!

If you have any questions, feel free to contact me via the links to the right.

Good luck, and happy virtualizing!

PrintView Printer Friendly Version

EmailEmail Article to Friend

References (9)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: comprar ebook
    Janssen Jones - Blog - Virtualization FAQs, Tips, and Tricks - Virtualizing USB dongles
  • Response
    venner Thanksgiving ,canada goose jakkeparajumpers Juliet 6 men denne nye park og kunstig transplantasjon forlot ham og måtte forlate sitt hjemland i landet Afar fullført sitt lange liv som kanskje dette kurset. Hans vissent løvverk synes å springe
  • Response
    Response: uggs sko norge
    "Feng light dust up gas, plus yesterday evening was really tired, very not easy to sleep, sleep is just weeks to wake up, the mad degree, one can imagine. "Elder sister......" If it is normal, Zhou Xing will hesitate, but today is chicken light dust
  • Response
    Response: Parajumpers oslo
    "Jade master cried. The Haitian also shouted: "masters, don't you think this green British snakes seem increasingly strong?" Before the four of them attack the green British snake, also can barely hold the upper hand. But then the holy master injured
  • Response
    "Hum......" Red fox leave Xia Chen, a cold laugh, his clean up, put on sky jersey her red Specialized Jersey dress, and then stood up and walked away, one eye also did not look to be his dry Xia Chen, perhaps she has been accustomed to. Because Xia Chen or warrior, ...
  • Response
    Response: michael kors selma
    ""! Adult. Barr hurriedly turned away, the spot left the Haitian and Dong Qing. Few of them being at a loss what to do in the Haitian looked at each other, apparently did not expect to find such a thing. The original phase right once said, the Phil Y
  • Response
    には陆辰符罰の造詣、ということで、自然は一番簡単だったけど、最多で1分の時間さえあれば、陆辰がこれを離れて一面の虚空.時間分1秒の cykeltrøjer 過去.虚空にはあれらの無秩序の乱流と虚空の刃は、穏やかに、何の話題.その灼熱獣もずっとが出ないように、消えたのは徹底的にここに.陆辰みたいに少し不安で再見 Cycle Jersey UK た、確認には何の問題が作り出した後、この最後の一歩.これ1歩完成、陆辰はこれを離れて一面の虚空に,cykeltrøjer.このとき、静かに虚空に急に激しい始め.いくら知らない虚空の刃が突然現れ、四方八方から朝着陸辰 fotball sko salg バ
  • Response
    My heart is aft Team Sky Jersey er all a mess, though Saxo Bank Cycling Jersey always smiling face and talk to his father, the younger daughter some noisy, could not help but scold, often begin to spanking. At that time, my father came and took Cykeltøj the child,Team Sky Jersey, ...
  • Response
    Tutto questo e 'di istituire in questo Mondo La Forza PIU' potente d Team SKY Jersey i Bike Clothing AU fiducia."Il processo...In realta 'E' Molto semplice! "Per il suo attacco può causare Cosi 'potente Vaillant, la Terra non abbandonare la faccia 古井无波 iniziale, come il Fred BMC Jersey do

Reader Comments (5)

Quick notes: 1) LTB isn't part of the product name in the item we've been buying (I think LTB stands for "last time buy" or something similar)
2) Digi offers a utility (ftp://ftp1.digi.com/support/utilities/awusbcheck.exe) to check to see if your USB device will work. Havent used it lately, but had used it before I purchased the device and seems to work well. Note, I couldn't find this on their support site but its still on their FTP site.
3) a couple times I've had issues, but updating the driver of the actual USB item I was using (an Aladin HASP key, I believe) fixed it.

June 6, 2011 | Unregistered CommenterAaron Sudduth

A lot of those devices quite often dont support USB modems if looking to virtualise something like a BACS system.

June 6, 2011 | Unregistered Commenterian0x0r

the official statement from Digi is:
"Compatible with bulk or interrupt type USB devices; Isochronous devices not supported"

June 6, 2011 | Unregistered CommenterAaron Sudduth

works well with most CAD licensing dongles - only thing I dislike is one host connected to one hub, no sharing ports, so unless the server can run multiple licensing services without issue go with the two port model

September 13, 2011 | Unregistered CommenterJB

This is what I have been searching in many websites and I finally found it here. Amazing article. I am so impressed. Could never think of such a thing is possible with it...I think you have a great knowledge especially while dealings with such subjects.

December 17, 2011 | Unregistered CommenterHome Security Houston

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>