[Bug 799741] New: No USB with VirtualBox 4.1.22 nor 4.2.6, although following the usual practices
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c0 Summary: No USB with VirtualBox 4.1.22 nor 4.2.6, although following the usual practices Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: hpj@urpla.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 Neither after installation VirtualBox from 12.2 distro nor from Virtualization repo, USB is operational. Reproducible: Always Steps to Reproduce: 1. Install virtualbox-{,qt-}4.1.22-1.6.1.x86_64, virtualbox-host-kmp-desktop-4.1.22_k3.4.6_2.10-1.6.1.x86_64 2. add yourself to vboxusers group 3. uncomment both lines starting with SUBSYSTEM in /etc/udev/rules.d/60-vboxdrv.rules, reboot Actual Results: No USB devices available Expected Results: Some USB devices should appear Given the procedure from above, everything is well as root: # VBoxManage list usbhost Host USB Devices: UUID: 781437c5-20fe-4f32-84db-00fd67d14191 VendorId: 0x046a (046A) ProductId: 0x0001 (0001) Revision: 0.38 (0038) Manufacturer: Cherry GmbH Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6//device:/dev/bus/usb/002/004 Current State: Busy UUID: e10727b2-c725-4f0b-89da-fa3a51e4eacc VendorId: 0x046d (046D) ProductId: 0x08cc (08CC) Revision: 0.5 (0005) SerialNumber: 021CCCA2 Address: sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.5//device:/dev/bus/usb/001/003 Current State: Busy UUID: 90f55d66-b641-4747-803b-009e6a0b7198 VendorId: 0x046d (046D) ProductId: 0xc51b (C51B) Revision: 70.0 (7000) Manufacturer: Logitech Product: USB Receiver Address: sysfs:/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5//device:/dev/bus/usb/002/003 Current State: Busy UUID: a6e31dba-dedf-4bf4-8aac-173449e8973f VendorId: 0x04b8 (04B8) ProductId: 0x0119 (0119) Revision: 1.0 (0100) Manufacturer: EPSON Product: EPSON Scanner Address: sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6//device:/dev/bus/usb/001/004 Current State: Available UUID: bd712d55-18b6-4131-9695-88c1e4233e36 VendorId: 0x0781 (0781) ProductId: 0x5406 (5406) Revision: 2.0 (0200) Manufacturer: SanDisk Product: U3 Cruzer Micro SerialNumber: 2243401663D29C63 Address: sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3//device:/dev/bus/usb/001/005 Current State: Available but not for me as a user: hp@xrated:~> VBoxManage list usbhost Host USB Devices: <none> although: hp@xrated:~> id uid=1000(hp) gid=2222(lisa) Gruppen=2222(lisa),17(audio),20(cdrom),33(video),125(vboxusers),513(domuser),1000(users), 7 more... I'm member of 125(vboxusers). VBox devices are in place: hp@xrated:~> l -R /dev/vboxusb/ /dev/vboxusb/: insgesamt 0 drwxr-xr-x 4 root vboxusers 80 21. Jan 22:51 ./ drwxr-xr-x 21 root root 4900 21. Jan 22:53 ../ drwxr-xr-x 2 root root 140 21. Jan 22:53 1/ drwxr-xr-x 2 root root 120 21. Jan 22:51 2/ /dev/vboxusb/1: insgesamt 0 drwxr-xr-x 2 root root 140 21. Jan 22:53 ./ drwxr-xr-x 4 root vboxusers 80 21. Jan 22:51 ../ lrwxrwxrwx 1 root root 21 21. Jan 22:51 1 -> ../../bus/usb/001/001 lrwxrwxrwx 1 root root 21 21. Jan 22:51 2 -> ../../bus/usb/001/002 lrwxrwxrwx 1 root root 21 21. Jan 22:51 3 -> ../../bus/usb/001/003 lrwxrwxrwx 1 root root 21 21. Jan 22:51 4 -> ../../bus/usb/001/004 lrwxrwxrwx 1 root root 21 21. Jan 22:53 5 -> ../../bus/usb/001/005 /dev/vboxusb/2: insgesamt 0 drwxr-xr-x 2 root root 120 21. Jan 22:51 ./ drwxr-xr-x 4 root vboxusers 80 21. Jan 22:51 ../ lrwxrwxrwx 1 root root 21 21. Jan 22:51 1 -> ../../bus/usb/002/001 lrwxrwxrwx 1 root root 21 21. Jan 22:51 2 -> ../../bus/usb/002/002 lrwxrwxrwx 1 root root 21 21. Jan 22:51 3 -> ../../bus/usb/002/003 lrwxrwxrwx 1 root root 21 21. Jan 22:51 4 -> ../../bus/usb/002/004 acls, set by udev, are fine: hp@xrated:~> getfacl -R /dev/vboxusb/{1,2}/* getfacl: Entferne führende '/' von absoluten Pfadnamen # file: dev/vboxusb/1/1 # owner: root # group: root user::rw- group::rw- group:vboxusers:rw- mask::rw- other::r-- # file: dev/vboxusb/1/2 # owner: root # group: users user::rw- group::rw- group:vboxusers:rw- mask::rw- other::--- # file: dev/vboxusb/1/3 # owner: root # group: root user::rw- group::rw- group:vboxusers:rw- mask::rw- other::r-- # file: dev/vboxusb/1/4 # owner: root # group: lp user::rw- group::rw- group:vboxusers:rw- mask::rw- other::r-- # file: dev/vboxusb/1/5 # owner: root # group: root user::rw- group::rw- group:vboxusers:rw- mask::rw- other::r-- # file: dev/vboxusb/2/1 # owner: root # group: root user::rw- group::rw- group:vboxusers:rw- mask::rw- other::r-- # file: dev/vboxusb/2/2 # owner: root # group: users user::rw- group::rw- group:vboxusers:rw- mask::rw- other::--- # file: dev/vboxusb/2/3 # owner: root # group: root user::rw- group::rw- group:vboxusers:rw- mask::rw- other::r-- # file: dev/vboxusb/2/4 # owner: root # group: root user::rw- group::rw- group:vboxusers:rw- mask::rw- other::r-- The correct extpack is installed: hp@xrated:~> VBoxManage list extpacks Extension Packs: 1 Pack no. 0: Oracle VM VirtualBox Extension Pack Version: 4.1.22 Revision: 80657 Description: USB 2.0 Host Controller, VirtualBox RDP, PXE ROM with E1000 support. VRDE Module: VBoxVRDP Usable: true Why unusable: I've red pretty much every openSUSE USB problem related to virtualbox, but nothing fits. It's something unusual, although I manage a few remote users, that suffer from the very same issue. The same behavior happens with current version 4.2.6. Stracing both "VBoxManage list usbhost" invocations differ significantly, but doesn't reveal real hints to the issue. IPC Communication seems to flow though a named pipe, which fails on the first connect, but succeeds on the second attempt. For some reason, as a user it tries to access /dev/vboxusb/001/005, while the node is at /dev/vboxusb/1/5, but that would fail for the root case in equal ways, wouldn't it? An upstream report is rightfully closed as being somebody elses problem. https://www.virtualbox.org/ticket/11199 I'm stuck. Somebody with more ideas? I'm able to provide any necessary additional info, if requested. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c1 Jan Ritzerfeld <suse@bugs.jan.ritzerfeld.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse@bugs.jan.ritzerfeld.or | |g --- Comment #1 from Jan Ritzerfeld <suse@bugs.jan.ritzerfeld.org> 2013-01-22 18:05:53 UTC --- My workaround is to use the original packages from the repository http://download.virtualbox.org/virtualbox/rpm/opensuse/11.4/virtualbox.repo Despite the URL, they work for 11.4, 12.1, and 12.2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c2 --- Comment #2 from Hans-Peter Jansen <hpj@urpla.net> 2013-01-25 00:14:47 UTC --- Thanks for the hint, Jan. I can confirm, that the openSUSE builds are incapable of supporting USB devices, while the vendor build acts properly in this respect. Obviously, the creation of device nodes is broken. I've adopted the vendor scheme of creating the devices, and guess what, it works. I don't see, why creating real device nodes is any less secure than creating symlinks. home:frispete:Virtualization Will check this package during the next days, and then ask for taking the patches, if nobody objects. Jan, if time permits, mind testing this too? Just tell me, if you need another build target. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c3 --- Comment #3 from Jan Ritzerfeld <suse@bugs.jan.ritzerfeld.org> 2013-01-25 18:31:46 UTC --- Looks fine to me! Although I forgot to enable the udev rules first (as always) after rebooting (again) your packages work using an USB flash drive or my iPhone with iTunes. Thanks for your work! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |mseben@gmail.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c4 --- Comment #4 from Michal Seben <mseben@gmail.com> 2013-02-24 22:13:13 UTC --- ok I will rework spec file - so we will use VBoxCreateUSBNode.sh from vbox upstream thanks for report -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c5 Wolfgang Bauer <wbauer@tmo.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wbauer@tmo.at --- Comment #5 from Wolfgang Bauer <wbauer@tmo.at> 2013-09-24 14:48:47 UTC --- (In reply to comment #4)
ok I will rework spec file - so we will use VBoxCreateUSBNode.sh from vbox upstream
This still doesn't work correctly with virtualbox-4.2.18-89.1.x86_64 from the Virtualization repo. After uncommenting those lines in 60-vboxdrv.rules, newly inserted USB devices still don't show up in VirtualBox. And I get errors like this in /var/log/messages: 2013-09-24T15:39:58.863465+02:00 amiga systemd-udevd[2944]: failed to execute '/usr/lib/udev/VBoxCreateUSBNode.sh' 'VBoxCreateUSBNode.sh --remove 189 4': No such file or directory So the problem is that udev tries to run /usr/lib/udev/VBoxCreateUSBNode.sh, whereas the virtualbox package installs it in /usr/lib/: # rpm -ql virtualbox | grep VBoxCreateUSBNode.sh /usr/lib/VBoxCreateUSBNode.sh Creating a symlink fixes this. So could the package be changed to install VBoxCreateUSBNode.sh to /usr/lib/udev/, please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c6 --- Comment #6 from Wolfgang Bauer <wbauer@tmo.at> 2013-09-25 12:32:44 UTC --- (In reply to comment #5)
So could the package be changed to install VBoxCreateUSBNode.sh to /usr/lib/udev/, please?
Well, I had a look at the spec file and think that udevrulesdir is defined incorrectly there right at the top. Therefore the udev rules get installed to (/usr)/lib/udev/ instead of (/usr)/lib/udev/rules.d/, and VBoxCreateUSBNode.sh to (/usr)/lib/ instead of (/usr)/lib/udev/. I created SR#200564 to fix this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c7 --- Comment #7 from Wolfgang Bauer <wbauer@tmo.at> 2013-09-25 15:48:57 UTC --- (In reply to comment #6)
Therefore the udev rules get installed to (/usr)/lib/udev/ instead of (/usr)/lib/udev/rules.d/, and VBoxCreateUSBNode.sh to (/usr)/lib/ instead of (/usr)/lib/udev/.
Btw. this has been broken in the following commit: https://build.opensuse.org/request/show/173455 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-09-26 12:04:56 CEST --- This is an autogenerated message for OBS integration: This bug (799741) was mentioned in https://build.opensuse.org/request/show/200685 Factory / virtualbox -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799741 https://bugzilla.novell.com/show_bug.cgi?id=799741#c9 Wolfgang Bauer <wbauer@tmo.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #9 from Wolfgang Bauer <wbauer@tmo.at> 2014-01-08 16:10:16 UTC --- I think this can be closed now. USB works fine for me with the virtualbox versions in 13.1 and the Virtualization repo (after you edit 60-vboxdrv.rules of course). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com