« Previous | Next»

Using USB Devices in a VirtualBox Guest (Linux Host)

Posted by coldtobi | 15 Oct, 2009, 22:52

If you cannot access USB devices from within your virtual box, you should check these points:

Anzeige

- if you have mounted the usbfs

moria:/home/tobi/workspace/osram_leo_bzr# mount
/dev/mapper/sda3_crypt on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type xfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,devgid=123,devmode=0666)

Another indication is, that you "see" the device in the status bar of the Virtual Box window, but you cannot select it as it is greyed out. 

To solve this, try to mount the usbfs as root:

mount usbfs -t usbfs /proc/bus/usb/ -o devgid=123,devmode=0666 -o remount

You can also make an entry in your /etc/fstab do auto-mount it on boot-time. Add this line:

 none /proc/bus/usb usbfs auto,remount,devmode=0664,devgid=123 0 0

- if you are in the user group

The group id 123 is the group vboxusers.  You should check if your user is in this group. 

adduser <your-user-name> vboxusers

 

as root will do the trick. You have to re-login to get your new rights.

- if linux claimed the device 

if linux has a driver for the device, you cannot use it natively under windows. To check this, use the VBoxManager and configure your virtual machine. On the USB tab, you can add filters which tells the VBox-kernel-driver to claim the device and reserve it for the machine. You can conveniently plug in your device and use the "add filter from device" option."



<—&mdash Showing ERROR? Click here!


Linux / Debian | Comments (1) | Trackbacks (0)

Related Articles:

1 Comments | "Using USB Devices in a VirtualBox Guest (Linux Host)" »

  1. William Hickocks : USB

    28/10/2009, at 09:34 [ Reply ]

    I'm not very advanced in Linux but must say that I had no problems with using any USB device since I switched from Windows platform to Linux. And maybe Your advices could help me if anything wrong would happen.

Add comment

 

 This is the ReCaptcha Plugin for Lifetype

Due to German legislation, all comments are moderated. If you get NO error message, your comment is accepted by the system and will be released at the earliest opportunity. Sorry for the inconvenience this might cause.

Inappropiate comments might be edited or not accepted.