Page 1 of 1

No USB in Windows guest on Opensuse host

Posted: 21. Jul 2020, 09:50
by RobinK
Opensuse Leap 15.2 as host, Windows 10 as guest in Virtual Box. The problem is “No USB Devices Connected" in the guest.

The physical machine is 64-bit Intel with 8 cores, 4 of which are available to the VM. It has 32 Gb RAM, 16Gb of which is available to the VM. It’s getting a bit old, but has plenty of grunt for the purpose. VirtualBox used to work well in Leap 15.2 and its predecessors, but the USB problem in the VM suddenly appeared for no reason that I can see. Setting up specific USB filters doesn’t help.

The installed components are from the Opensuse repositories:

virtualbox-6.1.12-lp152.551.1.x86_64
virtualbox-kmp-default-6.1.12_k5.3.18_lp152.19-lp152.551.1.x86_64
virtualbox-host-source-6.1.12-lp152.551.1.noarch
virtualbox-qt-6.1.12-lp152.551.1.x86_64

The installed extension pack is from Oracle, version 6.1.12r139181

Code: Select all

id
uid=1000(robin) gid=100(users) groups=100(users),461(vboxusers)

Code: Select all

VBoxManage -version
6.1.12_SUSEr139181

Code: Select all

VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      6.1.12
Revision:     139181
Edition:      
Description:  Oracle Cloud Infrastructure integration, USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true 
Why unusable: 

Code: Select all

VBoxManage list usbhost
Host USB Devices:         
<none>  
(The same command executed as root returns many devices)

Code: Select all

VBoxManage list usbfilters
Global USB Device Filters:
<none>
I attach as VBox_USB.zip the output of VboxManage showvminfo together with Vbox.log and VboxSVC.log

Re: No USB in Windows guest on Opensuse host

Posted: 25. Jul 2020, 14:46
by jke
Hello,
I have exactly the same Problem with OpenSUSE Tumbleweed. In the Opensuse forums they also don't know a solution.
It was working very well, then last week, or the week before was an update and since then it is not working anymore.

I think the problem is with shown in the following line of the file ~/.config/VirtualBox/VBoxSVC.log:
00:00:01.281941 nspr-2 WARNING [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={16ced992-5fdc-4aba-aff5-6a39bbd7c38b} aComponent={HostWrap} aText={VirtualBox is not currently allowed to access USB devices. You can change this by adding your user to the 'vboxusers' group. Please see the user manual for a more detailed explanation}, preserve=true aResultDetail=0
I have attached the full file.

when the id command shows:
~> id
uid=1000(johannes) gid=100(users) Gruppen=100(users),457(vboxusers),486(kvm)
I just don't know which ckeck for vboxusers fails. the udev rules has root:root permissions.

Thanks,
Johannes

Re: No USB in Windows guest on Opensuse host

Posted: 26. Jul 2020, 03:27
by RobinK
I can confirm that I have exactly the same line in my VBoxSVC.log file.

Like you I also get confirmation from the id command that the vboxusers group is properly associated with my username.

But I don't know enough beyond that to try to diagnose causes. Circumstantially, however, I'd expect the problem has something to do with permissions, though I've no idea what, so I'm hoping that someone with better expertise than mine will be able to advise.

Robin

Re: No USB in Windows guest on Opensuse host

Posted: 26. Jul 2020, 12:54
by multiOS
As a matter of interest, did those experiencing this problem install/update VirtualBox using the openSUSE repo OSE version of VirtualBox via the distribution's package installer/command line, or use the 'official' VirtualBox download from the Oracle website?

If the first option is used then additional action is required according to the openSUSE site. See: https://en.opensuse.org/VirtualBox As that guide says, this action is NOT required if the installer is directly downloaded from Oracle. 'Forked' distributions of VirtualBox are not directly supported on this forum; and the possibility of some additional requirement due to code alterations is main reason. However, if the official Oracle installer was used and the problem remains, then the search for a solution continues.

Re: No USB in Windows guest on Opensuse host

Posted: 26. Jul 2020, 13:27
by RobinK
As in my original post:

Code: Select all

VBoxManage -version
6.1.12_SUSEr139181
so I'm using the version from openSUSE. But I've also tried with the "official" version from Oracle. Same result - no USB.

And trying the suggestion at https://en.opensuse.org/VirtualBox re the 60-vboxdrv.rules file using the openSUSE version doesn't help, either.

So I'm at a loss :(

Re: No USB in Windows guest on Opensuse host

Posted: 26. Jul 2020, 15:19
by jke
Hello,
I also have applied this recommendations.
However in the OpenSUSE forums I was told that is path is outdated. The udev rules must be copied to
/usr/lib/udev/rules.d. But although I have done also this, it still doesn't work.

At openSUSE I have filed a bugreport:
https://bugzilla.suse.com/show_bug.cgi?id=1174406

However, it didn't help up to now, although work is going on.

Does anybody have any idea what could go wrong with the check for the group vboxusers?

Re: No USB in Windows guest on Opensuse host

Posted: 27. Jul 2020, 04:44
by RobinK
For info I've just posted this to https://bugzilla.suse.com/show_bug.cgi?id=1174406
For whatever it may be worth, my setup in Leap 15.2 as host with Win10 as guest in VB 6.1.12_SUSEr139181 has a 60-vboxdrv.rules file in usr/lib/udev/rules.d/, but not in /etc/udev/rules.d/

Copying the 60-vboxdrv.rules file from the former into the latter with the given lines uncommented (they weren't commented anyway) made no difference - still no USB in the VM.

(An oddity is that the USB mouse and keyboard both work in the VM, but no other USB device is detected even though they exist)