JB's Blog

/au/SysAdmin

HowTo add a USB device permanently with VirtualBox 3.0+

with 13 comments

So I was having a little trouble adding a USB device permanently to a Virtual Machine guest with VirtualBox. The trick is to use the VBoxManage command to add a USB filter into the Machine’s configuration which will automagically attach whenever the VM is run.

First, find a list of all usb devices on the host, remembering to run these commands as the user your VirtualBox machine is under. In this example we’ll be using a Canon MX7600 printer as a test USB device.

$ VBoxManage list usbhost

UUID:               6bac41f4-cc44-40e4-a726-4d9655a49f63
VendorId:           0x04a9 (04A9)
ProductId:          0x171c (171C)
Revision:           1.3 (0103)
Manufacturer:       Canon
Product:            MX7600 series
SerialNumber:       102787
Address:            /proc/bus/usb/007/004
Current State:      Captured

Now we use the details of the USB device to filter adding into our VirtualBox machine. In this case our VirtualMachine name is winxp.

The usbfilter command requires four options at a minimum.

VBoxManage usbfilter        add
--target ||global
--name
--action ignore|hold (global filters only)
[--active yes|no] (yes)
[--vendorid ] (null)
[--productid ] (null)
[--revision ] (null)
[--manufacturer ] (null)
[--product ] (null)
[--remote yes|no] (null, VM filters only)
[--serialnumber ] (null)
[--maskedinterfaces ]

So armed with this info let’s add our device.

VBoxManage usbfilter add 0 –target winxp –name canonmx7600 –action hold –active yes –vendorid 04A9 –productid 171C –revision 0103 –manufacturer Canon –product “MX7600 series” –serialnumber 102787

Written by Blade

January 27th, 2010 at 11:39 am

  • http://gpalabs.com/ Essay

    good article, thank You or sharing

  • Asd
  • Asd

    We offer new-style christian louboutin,Fashion and discount Christian Louboutin Shoes platform with best quality and no tax shipping.Our mission is to provide the highest quality with lowest price.Goods and merchandise sold both in person or online are subject to the same quality assurance agreement.We are committed to assuring customer satisfaction.Clients will be expected to accept any fees.We thank you our valued customer for your current and future business We sell christianlouboutinboots,discount christian louboutin Sale,Giuseppe Zanotti Shoes sandals at All the
    louboutin shoes are brand new and beautiful. We have taken many photoes of christian louboutin shoes in details Herve Leger Herve Leger
    Herve Leger Buy quality Moncler Jacket Vest with best after sale service at Stylemoncler.com. You can purchase Moncler Vest which are selected strictly by our high level quality control team. We only sell genuine Moncler Jackets Vest for Men's, Women's and Kids with competitive price. We provide free shipping service for all Moncler Jackets also including Moncler Vest Down Jackets to worldwide! We believe that you will find your favorite and suitable Moncler Down Vest from us. Hurry up and place your order now.
    Herve Leger

  • jun

    Christian Louboutin Pumps is a good trend in the fashion world. The well-known red outsole and high heel both shaped the distinctive features by Christian Louboutin. In Europe and America, a great number of stars chase the fever of Christian Louboutin Pumps. Red outsole has become the logo since it appeared. However, you can never forget the beauty that the Christian Louboutin brings to you. Red outsoles, high heels, bright colors and unique designs show women’s elegant and noble. Wherever the women go, they unconsciously have become scenery. Now you get this chance to be a part of them, you only have to choose the one you like.
    Welcome to Herve Leger Skirts online store! We just want to do our best to dear customers. Ladies who love beauty may choose our website. It is our aim to let our customers more beautiful! Herve Leger Skirts let you have a chance to catch the fashion wind and show the perfect feminine body curve. We strive for customer satisfaction. You will get the best service from us. Herve Leger .No matter what part of the country you live in, or what time of the year it is, everyone needs a Moncler jacket or coat that is functional yet stylish. Here is your best choice. Men's Moncler jackets are so appealing in looking that can easily envy others. Men can pull this easy but elegant style for any occasion. Branson Navy Moncler Jackets, Bodywarmer Moncler Mens Jackets etc impart luxury in style!

  • http://lotteryresultsanalizer.com/ Lotto

    Thanks a lot for usefull article. It realy helped

  • http://croatiahotels.in/forumdisplay.php?f=80 rjeka hotels

    Now this is highly recommended post for me. I will surely email this to my friend.

    Have a nice day
    Anu Rana
    …,

  • http://www.promoteusb.com/ Cheap USB Flash Drives

    Thank you for sharing these very useful codes.

  • http://www.promoteusb.com/ Cheap USB Flash Drives

    Thank you for sharing these very useful codes.

  • http://pulse.yahoo.com/_B2FVVRPQFZNWFJX2Q5B3JSPZT4 Moon Hcz

    The Rank Herve Leger Dress fashion shows are often populated with celebrities and famous actresses dressed in Herve Leger bandage dresses.Famous fans, Lindsay Lohan, Rihanna and Kate Bosworth.

  • http://www.mbt-shoes-buy.com/ kjlsd52

    YanHongChang da-xi way: “is by, say lubricant2 Asics Onitsuka Tiger Shoes appear empty. Meet later in river's

    lake superior have a care. Ling girl tired, again go to sleep. Tianbao! Here, today a YeLia would do well to unlikelily once.”
    “Master! You old spirits Onitsuka Tiger shoes today tall. However, in this sorghum water, I'm afraid I have bit

    of that.” Shut tianbao jolly tunnels. YanHongChang a waving way:
    “Without the YeLia cup and let's see, come a ZhenZhang not drunk not to give up!”
    LingJianHong sleepy mind FaXu, if go to bed early, physical recovery. Into the back, pulled over quilt natrium head and then sleep, soon asleep.
    Rijin zhongtian, LingJianHong woke up and knead the Asics Tiger Onitsuka sleepy blury eyes. Hear WaiWu snoring

    thunder, come out a look, Asics Tiger Shoes will see a full table of mud, three people poured a half-and-half.

    Sword rainbow once took cotton-padded clothes for three drape, sadly picked bamboo plunge into the broom, clean the dirt from the ground to… Stay clean finished,

    sword rainbow of Asics Onitsuka Shoes clothing, took the baby out of house.
    In this small valley surrounded by mountains, a hot forming brook, risking steamy heat, slowly flowing over.
    Onitsuka Tiger Mexico 66

  • http://security-wire.com/11/how-to-remove-spyware-protection-2010-rogue-anti-spyware.html remove spyware protection 2010

    Wow, thanks for your great sharing:)

  • WallKenelm

    A simple article but including very useful informations about usb flash drive. Thanks for posting!

  • Tumerlie458

    Superb work ! Your web blog has provided me the majority of the marketing information I required . Locksmith Danville CA locksmith plano texas locksmith hialeah Locksmith Memphis Locksmith Atlanta GA Washington Locksmiths Locksmith Memphis Locksmith Atlanta Locksmith Memphis TN Memphis Locksmiths Locksmith Atlanta GA Locksmith Memphis TN Corona Locksmith Hampton Locksmiths Locksmith Corona Corona CA Locksmith Corona Locksmith Locksmith Dallas TX Plumbing Kendall Locksmith Bayonne Locksmith Livonia Locksmith Lakewood Atlanta Locksmiths Atlanta Locksmiths Locksmith Cranford NJ Locksmith Arlington Heights IL Locksmith Wellington Locksmith Miramar FL Bell Locksmiths Newport News Locksmiths Plantation Locksmiths Irvington Locksmiths Locksmiths Hampton Linden Locksmiths Bowie Locksmiths Warren Locksmiths Locksmith Carson Locksmith Linden Locksmith Mesa Locksmith in Irvington Locksmith Hawthorne Locksmith Reading Locksmith Chicago Locksmith Richardson Locksmith Dallas TX Locksmith Detroit MI Locksmith Long Beach CA Locksmith Houston TX Indianapolis Locksmiths Locksmith Littleton FL