VirtualBox can't passthrough usb

Hi,

Since upgrade to Virutalbox 7.1.4, usb pass through is not working. When usb device is plugged in, nothing is shown in available USB devices.

I’m running OpenSUSE Tumbleweed-Slowroll 20241002

❯ uname -a
Linux T14 6.11.3-1-default #1 SMP PREEMPT_DYNAMIC Fri Oct 11 06:48:36 UTC 2024 (7881e90) x86_64 x86_64 x86_64 GNU/Linux

Following previous topics on the forum, permission to /dev/vboxusb folder are correct and my user is a memeber of vboxusers group.

/etc/vboxusb folder is empty.

Do you have any idea? Thank you in advance.

??? It doesn’t even exist here (and USB pass-through is working…)

It is /dev/vboxusb not /etc/vboxusb

/dev/vboxusb:
total 0
drwxr-x--- 2 root vboxusers 120 Oct 25 06:10 001
drwxr-x--- 2 root vboxusers  80 Oct 25 06:09 002

Sorry y bad. It should be /dev/vboxusb

Can you show me the content of the folder when usb device is plugged in ?

VB requires the proprietary USB module to work. It.s Its an Oracle thing

No more, it should work out of the box with 7.xx

Prior to USB insertion (note there are some internal peripherals always connected to the USB bus):

LT-B:~ # ls -l /dev/vboxusb/
total 0
drwxr-x--- 2 root vboxusers 120 Oct 25 15:13 003
LT-B:~ # ls -l /dev/vboxusb/003/
total 0
crw-rw---- 1 root vboxusers 189, 258 Oct 25 15:15 003
crw-rw---- 1 root vboxusers 189, 259 Oct 25 10:08 004
crw-rw---- 1 root vboxusers 189, 261 Oct 25 10:08 006
LT-B:~ #

Now inserting a pen drive:

LT-B:~ # ls -l /dev/vboxusb/003/
total 0
crw-rw---- 1 root vboxusers 189, 258 Oct 25 15:15 003
crw-rw---- 1 root vboxusers 189, 259 Oct 25 10:08 004
crw-rw---- 1 root vboxusers 189, 261 Oct 25 10:08 006
crw-rw---- 1 root vboxusers 189, 266 Oct 25 15:20 011
LT-B:~ #

Thanks,

My folder is always empty.

I’ve reinstalled virtualbox and no change. During first start I’ve got this error.

Failed to enumerate host USB devices.
Could not load the Host USB Proxy service: VERR_NOT_FOUND.
Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
HostWrap
Interface:
IHost {d5dcece0-b202-4416-a138-03502784cc07}

VirtualBox in slowroll requires the longterm kernel and not kernel default.
It does not work properly with the default kernel - the hook point tables are different in the kernels.

Change to longterm kernel and it is the same.

/dev/vboxusb folder is empty.

Linux T14 6.6.56-1-longterm #1 SMP PREEMPT_DYNAMIC Thu Oct 10 15:20:52 UTC 2024 (67435e5) x86_64 x86_64 x86_64 GNU/Linux

now uninstall virtualbox (zypper rm virtualbox)
reboot
and install virtualbox (zypper in virtualbox)
reboot

and see if it works.

nothing change. When starting virtualbox for the first time, I’m receiving this error and usb doesn’t work.

Failed to enumerate host USB devices.
Could not load the Host USB Proxy service: VERR_NOT_FOUND.
Result Code:
NS_ERROR_FAILURE (0x00004005)
Component:
HostWrap
Interface:
IHost {d5dcece0-b202-4416-a138-03502784cc07}

This is simply usb_device

bor@bor-Latitude-E5450:~$ grep 189 /proc/devices 
189 usb_device
bor@bor-Latitude-E5450:~$ 

so it is quite possible that one just needs appropriate udev rule to create those (links? device nodes?)

Shouldn’t this rule be provided together with installation package of Virtualbox?

I will have how to create an udev rule for that. I’ve never try that myself before. Any hints?

Guessing if you installed the old USB mod then maybe it need to be removed if the basic VB now provides it.

Ok, how to do so? I’ve try to remove virtualbox extension but that didn’t work.

I think arvidjaar is right. I’m missing some kind of rule which will link all the usb devices of my computer with /dev/vboxusb folder. I still do not know how.

The only relevant rule I found on this system is

/usr/lib/udev/rules.d/60-vboxdrv.rules

which reads:

KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"
KERNEL=="vboxdrvu", NAME="vboxdrvu", OWNER="root", GROUP="vboxusers", MODE="0660"
KERNEL=="vboxnetctl", NAME="vboxnetctl", OWNER="root", GROUP="vboxusers", MODE="0660"
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/lib/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="/usr/lib/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="/usr/lib/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"

This is exactly the same file I was looking at and it was the same as in your system.

I didn’t have any more time to troubleshot this problem. I needed access to usb devices to complete my job. During the evening I’ve put fresh install of opensuse on my computer and switch to slowroll. Now usb works fine. It’s a pity that I didn’t create a snapshot before to be able to compare.

Thank you all for support.

VirtualBox in slowroll requires the longterm kernel and not kernel default.
It does not work properly with the default kernel - the hook point tables are different in the kernels.

After reinstall, my system is running with 6.11.3.1-default kernel and all is working fine. It looks like longterm kernel is not required.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.