LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 01-21-2010, 12:45 PM   #1
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
virtualbox usbfilter command options


I'm running virtualbox on a headless Debian Lenny server and am trying to enable a usb device. Here's the device:

Code:
UUID:               fb51fadf-cf5c-4d44-9490-442018019ce3
VendorId:           0x0403 (0403)
ProductId:          0x6001 (6001)
Revision:           4.0 (0400)
Manufacturer:       FTDI
Product:            USB <-> Serial
Address:            sysfs:/sys/devices/pci0000:00/0000:00:03.2/usb3/3-2//device:/dev/bus/usb/003/002
Current State:      Busy
Here's the command I'm using:

Code:
gene@robert:~$ VBoxManage usbfilter add 0 --target global --name homescan --action hold --active yes --vendorid 0403 --productid 6001 --revision 0400 --manufacturer FTDI --product "USB <-> Serial" --remote yes
And here's the error message:

Code:
VBoxManage usbfilter        add <index,0-N>
                            --target <uuid>|<name>|global
                            --name <string>
                            --action ignore|hold (global filters only)
                            [--active yes|no] (yes)
                            [--vendorid <XXXX>] (null)
                            [--productid <XXXX>] (null)
                            [--revision <IIFF>] (null)
                            [--manufacturer <string>] (null)
                            [--product <string>] (null)
                            [--remote yes|no] (null, VM filters only)
                            [--serialnumber <string>] (null)
                            [--maskedinterfaces <XXXXXXXX>]


Syntax error: Mandatory options not supplied
Mandatory options not supplied. Which options? The only ones I'm missing are serialnumber and maskedinterfaces. No serial number is given and I don't even know what masked interfaces is. Can somebody tell me what I'm doing wrong?
 
Old 01-22-2010, 11:20 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
That's weird; according to the syntax shown in the error message, only target, name and action are mandatory (although no default value is shown for maskedinterfaces; likely just an oversight).

Perhaps VBoxManage is being confused by the unusual characters in "USB <-> Serial"; you could try omitting that or giving it a simple dummy value.

Alternatively you could try specifying all the optional arguments, giving empty strings for serialnumber and maskedinterfaces:
Code:
VBoxManage usbfilter add 0 \ 
  --target global \ 
  --name homescan \ 
  --action hold \ 
  --active yes \ 
  --vendorid 0403 \ 
  --productid 6001 \ 
  --revision 0400 \ 
  --manufacturer FTDI \ 
  --product "USB <-> Serial" \
  --remote yes \
  --serialnumber '' \
  --maskedinterfaces ''
In case it helps, here's part of the output from VBoxManage showvminfo <name> (version: 3.0.10r54097. There are no global usbfilters on the example machine)
Code:
USB Device Filters:

Index:            0
Active:           yes
Name:             Prolific Technology Inc. USB Mass Storage Device [0100]
VendorId:         067b
ProductId:        2517
Revision:         0100
Manufacturer:
Product:
Remote:           no
Serial Number:

Index:            1
Active:           yes
Name:             USB Mass Storage [0100]
VendorId:         04cb
ProductId:        0177
Revision:         0100
Manufacturer:
Product:
Remote:           no
Serial Number:

Index:            2
Active:           yes
Name:             Canon,Inc. MF5750
VendorId:         04a9
ProductId:        265e
Revision:         0000
Manufacturer:
Product:
Remote:           no
Serial Number:
 
Old 01-23-2010, 07:33 AM   #3
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
Okay, I was able to run the command without syntax errors by removing the options remote, serialnumber, and maskedinterfaces. If I put any one of those in without the others I get the "mandatory options not supplied" error. The dummy values don't work; it says they're unrecognized. Now for the big problem...

Even though I ran the command without errors, here is the output of showvminfo:

Code:
USB Device Filters:

<none>
So no errors, but no filters created either. Any thoughts?
 
Old 01-23-2010, 08:07 AM   #4
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
Got it! I got rid of the global target and used the uuid for my WinXP vm. That worked, and I was also able to use the remote option. I haven't tested the device remotely yet, but it works when plugged into the server. Thanks!
 
Old 01-23-2010, 11:24 AM   #5
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
It did work... until I unplugged the device and plugged it back in. Now more problems. Enough of this. Virtualbox is terrific for local operation with the GUI (I've been using it for over a year) but it sucks for headless operation. I'm going to try xen.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
printer command lp options -o fhleung Linux - Software 6 09-20-2014 05:57 AM
host command options ZAMO Linux - Networking 13 12-30-2008 02:04 AM
LXer: Secrets for controlling VirtualBox from the command line LXer Syndicated Linux News 0 10-29-2008 01:40 PM
help with command line options jaepi Linux - Newbie 7 04-29-2007 07:26 PM
Command Line Options AUSanders79 Linux - Software 8 03-10-2005 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration