|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Unreviewed How To and FAQ POST HERE: Tips and solutions for SUSE Linux from the community. (Please do not post questions) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Adding USB Devices in Virtual Box USB support is currently only available in the .rpm downloaded from Sun. Downloads - VirtualBox Once Virtual Box is installed, make sure you are in vboxusers. Either with the following in konsole: Code:
groupmod --add-user <login_name> vboxusers The following steps then must be made: Find the vboxusers ID Number like this: Code:
grep vbox /etc/group For VirtualBox 2.2.0 on OpenSUSE 11.1 you should add the following to /etc/fstab and delete any other lines with usb: Place your user ID in place: eg;devgid=112 Code:
/sys/bus/usb/drivers /proc/bus/usb usbfs devgid=XXX,devmode=664 0 0 Code:
/dev/disk/by-id/ata-ST9160827AS_5RF16D1B-part5 swap swap defaults 0 0 /dev/disk/by-id/ata-ST9160827AS_5RF16D1B-part2 / ext3 acl,user_xattr 1 1 /dev/disk/by-id/ata-ST9160827AS_5RF16D1B-part7 /STORE vfat users,gid=users,umask=0002,utf8=true 0 0 /dev/disk/by-id/ata-ST9160827AS_5RF16D1B-part1 /Vista ntfs-3g defaults 0 0 /dev/disk/by-id/ata-ST9160827AS_5RF16D1B-part6 /home ext3 acl,user_xattr 1 2 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 debugfs /sys/kernel/debug debugfs noauto 0 0 #usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 /sys/bus/usb/drivers /proc/bus/usb usbfs devgid=112,devmode=664 0 0 mount -a Reboot. Now plug in a USB device to your Linux host. Open Virtual Box but do not start any Virtual Machines yet. Highlight the Virtual Machine you want to work with (In this Pic. It's XP) and click on the USB section in the details column and then click the USB symbol with the + sign: Here you can add the device you have just plugged in. Now close the settings window and remove the USB device from your Linux host. Now start the Virtual Machine (XP). When it's up and running, plug in your USB device and it should be picked up by the Virtual Machine (Not by the Host), and you are ready to go. When you close the Virtual Machine the USB device will likely be picked up by the Linux Host.
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM |
|
||||
|
@malcolmlewis
I'll look in to it, but it may be tomorrow before I can try.
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM |
|
|||
|
Quote:
|
|
|||
|
The HOWTO is very nice but many people have tried the above solution and USB still wouldn't work for them. I do not have the fstab edits that are recommended and USB just works in VirtualBox 2.2.0 (and 2.1.4) for me.
The thread, Sun Virtual Machine - openSUSE Forums, has a long discussion about this problem. The solution might have been found by hank_se, and clarified for me by consused, if you read well into that series of posts. The files /etc/udev/rules.d/60-vboxdrv.rules and /etc/udev/rules.d/10-vboxdrv.rules are the bad actors, apparently, particularly if both files are present. I only have the 10-vboxdrv.rules file. As I said, USB just works. I hope someone will find this helpful. |
|
|||
|
I forgot to post the only usb related line, from my fstab.
Code:
usbfs /proc/bus/usb usbfs noauto 0 0 |
|
||||
|
I would like to than everyone for their comments so far. It does seem that there are differing experiences and levels of success with USB support. The HowTo can and will be edited if required. Actually my intention was to focus on the steps of adding the device to the VM and the need to have the device removed when actually starting the machine, connecting it only when the VM is up and running. That is my experience anyway. I find the VM locks up at startup if the USB device is connected already.
All comments and criticisum welcome. Thank you.
__________________
Box: openSUSE 11.2 | (KDE4.3.3) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM |
|
||||
|
Quote:
Very true about udev rules, positioning is a big issue. In getting the barry utilities (blackberry) to work as a user I needed to move the default rule to 65 as it was at 10 as well as some rule tweaks.... -- Cheers Malcolm °¿° (Linux Counter #276890) openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae up 1 day 22:23, 2 users, load average: 0.07, 0.10, 0.03 ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME |
|
|||
|
Quote:
.
|
|
|||
|
Good How-To. Appreciate your effort. I've been able to use USB with virtualbox for quite a while now. However, the only issue I have is, usbfs is not being mounted automatically at boot-up. So, after boot-up, if I run mount -a as root and then run VirtualBox (as user), usb support is enabled. If I forget to execute mount -a manually, usb support is disabled.
Here is the line from my fstab. Anyone know how to change it so that it is automatically mounted at boot-up? Code:
/sys/bus/usb/drivers /proc/bus/usb usbfs auto,devmode=664,devgid=119 0 0 |
![]() |
|
| Bookmarks |
| Tags |
| usb, virtual box |
| Thread Tools | |
| Display Modes | |
|
|