Lost USB Devices host OpenSuSe 13.1

Discussions related to using VirtualBox on Linux hosts.
Post Reply
shipieman
Posts: 4
Joined: 23. Feb 2017, 10:57

Lost USB Devices host OpenSuSe 13.1

Post by shipieman »

Hi I'm facing also a Problem with usb on my OpenSuSe 13.1 Host. I hope it is ok to add this issue here.
My problem is, I donot see any connected USB device in the VMs, though this worked for a long time.
To describe more details:

Code: Select all

$VBoxManage --version
5.0.32r112930
My Kernel

Code: Select all

uname -a
Linux stat1 3.12.67-64-desktop #1 SMP PREEMPT Fri Dec 9 15:56:17 UTC 2016 (35c7b99) x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

$groups
users lp uucp dialout audio video vboxusers admins 

Code: Select all

$VBoxManage list usbhost
Host USB Devices:
<none>
The behavoir is the same (with logged as root or as normal user). I have some USB devices running, especially look at Bus 003 Device 013:

Code: Select all

$lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 046a:010e Cherry GmbH 
Bus 003 Device 013: ID 0529:0001 Aladdin Knowledge Systems HASP v0.06
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
If I plug and connect e.g. HASP:

Code: Select all

udevadm monitor --env
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[10301.865273] add      /devices/pci0000:00/0000:00:14.0/usb3/3-4 (usb)
ACTION=add
BUSNUM=003
DEVNAME=/dev/bus/usb/003/013
DEVNUM=013
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4
DEVTYPE=usb_device
MAJOR=189
MINOR=268
PRODUCT=529/1/217
SEQNUM=2779
SUBSYSTEM=usb
TYPE=255/0/0

KERNEL[10301.865674] add      /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0
DEVTYPE=usb_interface
INTERFACE=255/0/0
MODALIAS=usb:v0529p0001d0217dcFFdsc00dp00icFFisc00ip00in00
PRODUCT=529/1/217
SEQNUM=2780
SUBSYSTEM=usb
TYPE=255/0/0

UDEV  [10301.884913] add      /devices/pci0000:00/0000:00:14.0/usb3/3-4 (usb)
ACTION=add
BUSNUM=003
DEVNAME=/dev/bus/usb/003/013
DEVNUM=013
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4
DEVTYPE=usb_device
ID_BUS=usb
ID_MODEL=HASP_2.17
ID_MODEL_ENC=HASP\x202.17
ID_MODEL_FROM_DATABASE=HASP v0.06
ID_MODEL_ID=0001
ID_REVISION=0217
ID_SERIAL=AKS_HASP_2.17
ID_USB_INTERFACES=:ff0000:
ID_VENDOR=AKS
ID_VENDOR_ENC=AKS
ID_VENDOR_FROM_DATABASE=Aladdin Knowledge Systems
ID_VENDOR_ID=0529
MAJOR=189
MINOR=268
PRODUCT=529/1/217
SEQNUM=2779
SUBSYSTEM=usb
TYPE=255/0/0
USEC_INITIALIZED=301865225

UDEV  [10302.894705] add      /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0 (usb)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0
DEVTYPE=usb_interface
ID_MODEL_FROM_DATABASE=HASP v0.06
ID_USB_CLASS_FROM_DATABASE=Vendor Specific Class
ID_VENDOR_FROM_DATABASE=Aladdin Knowledge Systems
INTERFACE=255/0/0
MODALIAS=usb:v0529p0001d0217dcFFdsc00dp00icFFisc00ip00in00
PRODUCT=529/1/217
SEQNUM=2780
SUBSYSTEM=usb
TYPE=255/0/0
USEC_INITIALIZED=1865710
So in vboxusb I see then

Code: Select all

$ll /dev/vboxusb/003*
insgesamt 0
crw-rw---- 1 root vboxusers 189, 257 22. Feb 17:08 002
crw-rw---- 1 root vboxusers 189, 268 23. Feb 10:03 013
If I unplug

Code: Select all

$udevadm monitor --env
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[10434.222153] remove   /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0
DEVTYPE=usb_interface
INTERFACE=255/0/0
MODALIAS=usb:v0529p0001d0217dcFFdsc00dp00icFFisc00ip00in00
PRODUCT=529/1/217
SEQNUM=2781
SUBSYSTEM=usb
TYPE=255/0/0

KERNEL[10434.222233] remove   /devices/pci0000:00/0000:00:14.0/usb3/3-4 (usb)
ACTION=remove
BUSNUM=003
DEVNAME=/dev/bus/usb/003/013
DEVNUM=013
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4
DEVTYPE=usb_device
MAJOR=189
MINOR=268
PRODUCT=529/1/217
SEQNUM=2782
SUBSYSTEM=usb
TYPE=255/0/0

UDEV  [10434.223218] remove   /devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0 (usb)
ACTION=remove
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4/3-4:1.0
DEVTYPE=usb_interface
ID_MODEL_FROM_DATABASE=HASP v0.06
ID_USB_CLASS_FROM_DATABASE=Vendor Specific Class
ID_VENDOR_FROM_DATABASE=Aladdin Knowledge Systems
INTERFACE=255/0/0
MODALIAS=usb:v0529p0001d0217dcFFdsc00dp00icFFisc00ip00in00
PRODUCT=529/1/217
SEQNUM=2781
SUBSYSTEM=usb
TYPE=255/0/0
USEC_INITIALIZED=1865710

UDEV  [10434.231545] remove   /devices/pci0000:00/0000:00:14.0/usb3/3-4 (usb)
ACTION=remove
BUSNUM=003
DEVNAME=/dev/bus/usb/003/013
DEVNUM=013
DEVPATH=/devices/pci0000:00/0000:00:14.0/usb3/3-4
DEVTYPE=usb_device
ID_BUS=usb
ID_MODEL=HASP_2.17
ID_MODEL_ENC=HASP\x202.17
ID_MODEL_FROM_DATABASE=HASP v0.06
ID_MODEL_ID=0001
ID_REVISION=0217
ID_SERIAL=AKS_HASP_2.17
ID_USB_INTERFACES=:ff0000:
ID_VENDOR=AKS
ID_VENDOR_ENC=AKS
ID_VENDOR_FROM_DATABASE=Aladdin Knowledge Systems
ID_VENDOR_ID=0529
MAJOR=189
MINOR=268
PRODUCT=529/1/217
SEQNUM=2782
SUBSYSTEM=usb
TYPE=255/0/0
USEC_INITIALIZED=301865225
Then also the #013 entry disapears:

Code: Select all

$ll /dev/vboxusb/003*
insgesamt 0
crw-rw---- 1 root vboxusers 189, 257 22. Feb 17:08 002
So somehow the connecting is done, udev also works, but
VBoxManage list usbhost
always is empty (logged as root or as user).
I didnot have this behavior before, in VM I had no problems with usb for a long time.
I have a identical machine, with same kernel and Virtualbox Version, which runs. For me it seems as if VBoxManage is not able to scan the entrys. If I plug a new device and call VBoxManage, it take a little longer as if it "recognizes" the new device, but is not able to map.

I've no real knowledge about this udev but I see in my other running machine something like
in VBoxMange

Code: Select all

Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-6/3-6.7//device:/dev/vboxusb/003/008
If I look to
/sys/devices/pci0000:00/0000:00:14.0/usb3
I see entrys there, but on my machine with the problem the directory
/sys/devices/pci0000:00/0000:00:14.0/usb3
doesnot exist (/sys/devices/pci0000:00/0000:00:14.0 is there).

Any help/idea is welcome.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Lost USB Devices host OpenSuSe 13.1

Post by socratis »

shipieman wrote:I donot see any connected USB device in the VMs, though this worked for a long time.
So, when did that situation change?
shipieman wrote:I have a identical machine, with same kernel and Virtualbox Version, which runs.
Which means that something is different between your two hosts, not with VirtualBox, correct? Or the VirtualBox installation (kernel modules, like vboxusb)?

Have you installed the ExtPack? Matching the version of VirtualBox? The output of "VBoxManage list extpacks" will tell you the truth. You can always re-install VirtualBox and see if it fixes the issue. Maybe a kernel update caused things to go out of sync?

PS. I split your post from a "similar" one. It's best if we deal with different issues in different threads, unless they are the same of course.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
shipieman
Posts: 4
Joined: 23. Feb 2017, 10:57

Re: Lost USB Devices host OpenSuSe 13.1

Post by shipieman »

socratis wrote:
shipieman wrote:I donot see any connected USB device in the VMs, though this worked for a long time.
So, when did that situation change?
I would say, nothing or at least something which I'm not aware of.
Which means that something is different between your two hosts, not with VirtualBox, correct? Or the VirtualBox installation (kernel modules, like vboxusb)?
I did try several different kernel versions - they all have the same problem.
Have you installed the ExtPack? Matching the version of VirtualBox? The output of "VBoxManage list extpacks" will tell you the truth.

Code: Select all

$VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      5.0.32
Revision:     112930
Edition:      
Description:  USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption.
VRDE Module:  VBoxVRDP
Usable:       true 
Why unusable: 
Fits to my version.
You can always re-install VirtualBox and see if it fixes the issue. Maybe a kernel update caused things to go out of sync?
I did this with different Versions...no sucess.
For me it seems, that there is somewhere an old entry in the udev/usb filesystem which causes this problem. I'm not the expert in this, but the links are made by udev, and seem to be correct. I could completely clean all installations and make them new out of the scratch and I did this, but in the end, this didnot behave different. I used rpm -e to uninstall. But perhaps there are some entry to be delete, which I didnot know (?)
Is there a way to see more details of VBoxManage list usbhost (with more verbose level)?
shipieman
Posts: 4
Joined: 23. Feb 2017, 10:57

Re: Lost USB Devices host OpenSuSe 13.1

Post by shipieman »

I tried several things and came to the following
If I start (as root) a trace

Code: Select all

VBOX_USB=sysfs strace -f -o VBoxSVC.strace /usr/lib/virtualbox/VBoxSVC
I suddenly my USB devices (as root)

Code: Select all

$VBoxManage list usbhost
Host USB Devices:

UUID:               7be0e228-967a-4010-89c9-60ab2edbf023
VendorId:           0x046a (046A)
ProductId:          0x010e (010E)
Revision:           0.16 (0016)
Port:               2
USB version/speed:  2/Full
Manufacturer:       Cherry GmbH
Product:            USB Wireless Device
Address:            sysfs:/sys/devices/pci0000:00/0000:00:14.0/usb3/3-3//device:/dev/vboxusb/003/002
Current State:      Busy

UUID:               2c73aab2-2a69-4e6c-be5f-46d2079629e7
VendorId:           0x0529 (0529)
ProductId:          0x0001 (0001)
Revision:           2.23 (0223)
Port:               3
USB version/speed:  2/Low
Manufacturer:       AKS
Product:            HASP 2.17
Address:            sysfs:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4//device:/dev/vboxusb/001/005
Current State:      Available
If start only

Code: Select all

strace -f -o VBoxSVC.strace /usr/lib/virtualbox/VBoxSVC
(no leading VBOX_USB=sysfs), I can't see anything. Same, if I donot start the trace.
So perhaps this can help to find the problem. Any Ideas?

EDIT:
I changed
$chmod 777 /dev/vboxusb/ -R
Now I see all my USB devices also as normal user. If I start up Virtualbox, I see the error:
Effective UID is not root (euid=1010 egid=100 uid=1010 gid=100) (rc=-10)
:cry:
shipieman
Posts: 4
Joined: 23. Feb 2017, 10:57

Re: Lost USB Devices host OpenSuSe 13.1

Post by shipieman »

Things become wired.
This morning now the USB works again. I rebooted yesterday, checking the permissions etc. but this didnot help. I shutdown my machine. This morning now it works again.
I've no idea why, but it is running.
Post Reply