[opensuse] Virtualbox USB Support
Listmates: If you get usb errors in virtualbox, here is how to fix them in 10.3: To enable usb support for Virtualbox on openSuSE 10.3, you simply need to modify fstab to load usbfs under the vboxuser gid with a device mode (permissions) of 0644. It is a two step process: (1) locate the vboxuser gid, either using Yast->Group Management, or simply: Rankin-P35a~> grep vboxuser /etc/group vboxusers:x:113:david The vboxuser gid is "113", yours will vary of course (2) As root, edit /etc/fstab and set the gid and mode for usbfs as follows: usbfs /proc/bus/usb usbfs mode=0664,gid=113 0 0 That's it, reboot or source fstab in your favorite way and usb will now work flawlessly with Virtualbox. Once in Virtualbox, just add a filter for the usb device you would like to connect and your done. I have added a page to the wiki: http://en.opensuse.org/Virtualbox_USB_Support -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
(2) As root, edit /etc/fstab and set the gid and mode for usbfs as follows:
usbfs /proc/bus/usb usbfs mode=0664,gid=113 0 0
That's it, reboot or source fstab in your favorite way and usb will now work flawlessly with Virtualbox. Once in Virtualbox, just add a filter for the usb device you would like to connect and your done.
I've bumbled into a problem with this. If I make the changes, as described, to my fstab, then USB works in VirtulaBox, but my iPod cannot be mounted (there was a thread from a couple of days ago I started about iPod not connecting, and with help from the listmembers I traced it to the changes made for USB support in VirtualBox). If I roll back the change to the USBFS line in the fstab, then the iPod works again. Anyone else have this problem? C -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Clayton wrote:
(2) As root, edit /etc/fstab and set the gid and mode for usbfs as follows:
usbfs /proc/bus/usb usbfs mode=0664,gid=113 0 0
That's it, reboot or source fstab in your favorite way and usb will now work flawlessly with Virtualbox. Once in Virtualbox, just add a filter for the usb device you would like to connect and your done.
I've bumbled into a problem with this. If I make the changes, as described, to my fstab, then USB works in VirtulaBox, but my iPod cannot be mounted (there was a thread from a couple of days ago I started about iPod not connecting, and with help from the listmembers I traced it to the changes made for USB support in VirtualBox). If I roll back the change to the USBFS line in the fstab, then the iPod works again. Anyone else have this problem?
C
Hmm... That's not good. There is another work around for the usb problem in Virtualbox that I have seen proposed. I have not tested it yet. The workaround uses udev instead of fstab modifying the udev rules as follows: sudo vi /etc/udev/rules.d/50-udev-default.rules Find the line with: # libusb device access #SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644" Change the mode (permissions) in the line to: SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666" Clayton, if you could, give this a shot and see if it works. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2008-02-21 at 12:16 -0600, David C. Rankin wrote:
Clayton wrote:
(2) As root, edit /etc/fstab and set the gid and mode for usbfs as follows:
usbfs /proc/bus/usb usbfs mode=0664,gid=113 0 0
That's it, reboot or source fstab in your favorite way and usb will now work flawlessly with Virtualbox. Once in Virtualbox, just add a filter for the usb device you would like to connect and your done.
I've bumbled into a problem with this. If I make the changes, as described, to my fstab, then USB works in VirtulaBox, but my iPod cannot be mounted (there was a thread from a couple of days ago I started about iPod not connecting, and with help from the listmembers I traced it to the changes made for USB support in VirtualBox). If I roll back the change to the USBFS line in the fstab, then the iPod works again. Anyone else have this problem?
I did this for a Nokia phone I am trying to get working in VB/Windows XP. It worked better than the fstab method. Of course, I was specific about which usb device udev should fiddle with. Oddly, VB/XP finds the phone, but the Nokia software does not. All I want to do is get the damned thing to sync address books...
C
Hmm...
That's not good. There is another work around for the usb problem in Virtualbox that I have seen proposed. I have not tested it yet. The workaround uses udev instead of fstab modifying the udev rules as follows:
sudo vi /etc/udev/rules.d/50-udev-default.rules
Find the line with:
# libusb device access #SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
Change the mode (permissions) in the line to:
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"
Clayton, if you could, give this a shot and see if it works.
-- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- Roger Oberholtzer
OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
That's not good. There is another work around for the usb problem in Virtualbox that I have seen proposed. I have not tested it yet. The workaround uses udev instead of fstab modifying the udev rules as follows:
sudo vi /etc/udev/rules.d/50-udev-default.rules
Find the line with:
# libusb device access #SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
Change the mode (permissions) in the line to:
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"
Clayton, if you could, give this a shot and see if it works.
OK, made the change... and it had no effect. I even went so far as to reboot... and no USB in VirtualBox. This didn't break the iPod (3G Nano video) mounting though like the other change does. When I plug in the iPod, it automounts correctly, and I can use it with Amarok etc. Just to restate the problem... USB does work in VB if I use the fstab method, but this breaks things for iPods. I only have problems with iPods when the fstab is edited. All other USB devices work fine (joystick, keyboard, mouse, card readers, Nokia N800, scaner etc.) C. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2008-02-21 at 22:36 +0100, Clayton wrote:
That's not good. There is another work around for the usb problem in Virtualbox that I have seen proposed. I have not tested it yet. The workaround uses udev instead of fstab modifying the udev rules as follows:
sudo vi /etc/udev/rules.d/50-udev-default.rules
Find the line with:
# libusb device access #SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
Change the mode (permissions) in the line to:
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0666"
Clayton, if you could, give this a shot and see if it works.
OK, made the change... and it had no effect. I even went so far as to reboot... and no USB in VirtualBox. This didn't break the iPod (3G Nano video) mounting though like the other change does. When I plug in the iPod, it automounts correctly, and I can use it with Amarok etc.
I do not know about that change, but I added this for my Nokia 5310: BUS=="usb", SYSFS{idVendor}=="0421", SYSFS{idProduct}=="006b", MODE="0666", GROUP="users" After that, the phone was accessible to XP in VB. XP wanted to load drivers and all. I have other problems. Do you get a list of USB devices in VB while the VM is running that you can enable? If not, in the VB setup, did you add a filter with all entries cleared? The VB GUI offers to install one if you select it in the USB filters setup. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thu, 2008-02-21 at 22:36 +0100, Clayton wrote:
That's not good. There is another work around for the usb problem in Virtualbox that I have seen proposed. I have not tested it yet. The workaround uses udev instead of fstab modifying the udev rules as follows:
Just to restate the problem... USB does work in VB if I use the fstab method, but this breaks things for iPods. I only have problems with iPods when the fstab is edited. All other USB devices work fine (joystick, keyboard, mouse, card readers, Nokia N800, scaner etc.)
C. Is the "filter" and VB in control when your ipod breaks in linux? I think VB hard-grabs the device, I have that symptom with a usb-serial dongle if VB has it active...I have to plug in a second dongle to use minicom concurrently with the VB-XP radio config program...
In other words, I cannot close the XP program (leaving VB-XP alive) and then use minicom to talk to the same serial port. Tom in NM -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Just to restate the problem... USB does work in VB if I use the fstab method, but this breaks things for iPods. I only have problems with iPods when the fstab is edited. All other USB devices work fine (joystick, keyboard, mouse, card readers, Nokia N800, scaner etc.)
C. Is the "filter" and VB in control when your ipod breaks in linux? I think VB hard-grabs the device, I have that symptom with a usb-serial dongle if VB has it active...I have to plug in a second dongle to use minicom concurrently with the VB-XP radio config program...
In other words, I cannot close the XP program (leaving VB-XP alive) and then use minicom to talk to the same serial port.
No. If I make the change to the fstab, then the iPod cannot even be found by the USB system regardless of VB running or not - it doesn't show with lsusb. The computer acts as if I have not plugged in anything at all. Revert the change to the fstab, and the iPods (3G Nano and 2G Nano) connect fine. C -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2008-02-22 at 06:52 +0100, Clayton wrote:
No. If I make the change to the fstab, then the iPod cannot even be found by the USB system regardless of VB running or not - it doesn't show with lsusb. The computer acts as if I have not plugged in anything at all. Revert the change to the fstab, and the iPods (3G Nano and 2G Nano) connect fine.
I will be playing with my ipod this evening (big ski trip to Norway next week!). I can see what happens for me and report back. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2008-02-22 at 07:19 +0100, Roger Oberholtzer wrote:
On Fri, 2008-02-22 at 06:52 +0100, Clayton wrote:
No. If I make the change to the fstab, then the iPod cannot even be found by the USB system regardless of VB running or not - it doesn't show with lsusb. The computer acts as if I have not plugged in anything at all. Revert the change to the fstab, and the iPods (3G Nano and 2G Nano) connect fine.
I will be playing with my ipod this evening (big ski trip to Norway next week!). I can see what happens for me and report back.
I have both /proc/bus/usb mounted (for vbox - not convinced it is really needed, but I do not know yet), and my IPOD shows up automatically. I have this (the IPOD mount 'just happened'): none on /proc/bus/usb type usbfs (rw,devgid=110,devmode=664) /dev/sdb2 on /media/IPOD type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower) uid=1000 is me. All the options are whatever 10.3 sets up. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 02/23/2008 04:55 AM, Roger Oberholtzer wrote:
I have both /proc/bus/usb mounted (for vbox - not convinced it is really needed, but I do not know yet), and my IPOD shows up automatically. I have this (the IPOD mount 'just happened'):
none on /proc/bus/usb type usbfs (rw,devgid=110,devmode=664)
/dev/sdb2 on /media/IPOD type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)
uid=1000 is me. All the options are whatever 10.3 sets up.
Is your /dev/sdb2 entry in your fstab, or is it dynamically created? I assume for Clayton it is dynamically created, and not in his fstab. I note that as a possible workaround for him. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sat, 2008-02-23 at 08:43 +0800, Joe Morris wrote:
On 02/23/2008 04:55 AM, Roger Oberholtzer wrote:
I have both /proc/bus/usb mounted (for vbox - not convinced it is really needed, but I do not know yet), and my IPOD shows up automatically. I have this (the IPOD mount 'just happened'):
none on /proc/bus/usb type usbfs (rw,devgid=110,devmode=664)
/dev/sdb2 on /media/IPOD type vfat (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)
uid=1000 is me. All the options are whatever 10.3 sets up.
Is your /dev/sdb2 entry in your fstab, or is it dynamically created? I assume for Clayton it is dynamically created, and not in his fstab. I note that as a possible workaround for him.
Mine is dynamically created. All seems to work as expected. I am updating it via amarok as I write this. I always used gtkpod, but I thought I would try something new. Seems to be working nice. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Kapellgränd 7 P.O. Box 4205 SE-102 65 Stockholm, Sweden Tel: Int +46 8-615 60 20 Fax: Int +46 8-31 42 23 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Clayton
-
David C. Rankin
-
Joe Morris
-
Roger Oberholtzer
-
Tom Patton