Bug 1222408 - VirtualBox not allowed to access USB devices although user is in vboxusers group
Summary: VirtualBox not allowed to access USB devices although user is in vboxusers group
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Virtualization:Other (show other bugs)
Version: Leap 15.5
Hardware: Other Other
: P5 - None : Normal with 15 votes (vote)
Target Milestone: ---
Assignee: Larry Finger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-07 16:36 UTC by Michael Nickol
Modified: 2024-05-23 07:29 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
llrainey15: needinfo? (michael.nickol)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nickol 2024-04-07 16:36:04 UTC
same as bug #1222186 but now for leap 15.5 after update today (7. april 2024)

symptom:

Silentmax:~ # /usr/lib/virtualbox/vboxdrv.sh status
chmod: cannot access '/etc/vboxusb/': No such file or directory
chmod: cannot access '/etc/vboxusb/*': No such file or directory
chmod: cannot access '/etc/vboxusb/*/*': No such file or directory
VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp) are loaded.
Silentmax:~ # uname -a
Linux Silentmax.fritz.box 5.14.21-150500.55.52-default #1 SMP PREEMPT_DYNAMIC Tue Mar 5 16:53:41 UTC 2024 (a62851f) x86_64 x86_64 x86_64 GNU/Linux

virtualbox - VirtualBox is an Emulator                                                                                                                                          Version: 7.0.14-lp155.2.19.1 Installed: 7.0.14-lp155.2.19.1                                                                                                                     Size: 84.7 MiB Media No.: 0                                                                                                                                                     License: GPL-2.0-or-later                                                                                                                                                       Source Package: virtualbox-7.0.14-lp155.2.19.1
Comment 1 Larry Rainey 2024-04-07 19:16:32 UTC
Did you reboot - this works fine on all my 15.5 hosts

LLR5:~ # /usr/lib/virtualbox/vboxdrv.sh status
VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp) are loaded.
LLR5:~ # ll /dev/vbox*
crw-rw---- 1 root vboxusers 10, 122 Apr  7 14:05 /dev/vboxdrv
crw-rw---- 1 root vboxusers 10, 121 Apr  7 14:05 /dev/vboxdrvu
crw-rw---- 1 root vboxusers 10, 120 Apr  7 14:05 /dev/vboxnetctl

/dev/vboxusb:
total 0
drwxr-x--- 2 root vboxusers 80 Apr  7 14:07 001
drwxr-x--- 2 root vboxusers 60 Apr  7 14:05 002
LLR5:~ # zypper se -si virtualbox
Loading repository data...
Reading installed packages...

S  | Name                   | Type    | Version                                   | Arch   | Repository
---+------------------------+---------+-------------------------------------------+--------+--------------------------
i+ | virtualbox             | package | 7.0.14-0                                  | x86_64 | VB
i+ | virtualbox-kmp-default | package | 7.0.14_k5.14.21_150500.55.52-lp155.2.19.1 | x86_64 | openSUSE-Leap-15.5-Update
i+ | virtualbox-kmp-default | package | 7.0.14_k5.14.21_150500.55.49-lp155.2.16.1 | x86_64 | openSUSE-Leap-15.5-Update
i+ | virtualbox-kmp-default | package | 7.0.14_k5.14.21_150500.55.39-0            | x86_64 | VB
i+ | virtualbox-kmp-default | package | 7.0.12_k5.14.21_150500.55.31-lp155.2.13.1 | x86_64 | openSUSE-Leap-15.5-Update
1222408
Comment 2 Larry Finger 2024-04-07 19:34:46 UTC
I thought the fix was pushed to 15.5 as well as TW and 15.6. That is now fixed as task 1165992. I will see how soon I can get it pushed to an update. In the meantime, you can obtain the fixed code at
https://build.opensuse.org/package/show/home:lwfinger:branches:openSUSE:Leap:15.5:Update/virtualbox.
Comment 3 Michael Nickol 2024-04-07 20:04:14 UTC
I have installed your temporary fix from build service and id worked.
USB devices can now be accessed.
Thank You
Comment 4 OBSbugzilla Bot 2024-04-07 20:05:02 UTC
This is an autogenerated message for OBS integration:
This bug (1222408) was mentioned in
https://build.opensuse.org/request/show/1165992 15.5 / virtualbox
Comment 5 Michael Nickol 2024-04-07 20:20:54 UTC
(In reply to Larry Rainey from comment #1)
> Did you reboot - this works fine on all my 15.5 hosts
> 
> LLR5:~ # /usr/lib/virtualbox/vboxdrv.sh status
> VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp) are loaded.
> LLR5:~ # ll /dev/vbox*
> crw-rw---- 1 root vboxusers 10, 122 Apr  7 14:05 /dev/vboxdrv
> crw-rw---- 1 root vboxusers 10, 121 Apr  7 14:05 /dev/vboxdrvu
> crw-rw---- 1 root vboxusers 10, 120 Apr  7 14:05 /dev/vboxnetctl
> 
> /dev/vboxusb:
> total 0
> drwxr-x--- 2 root vboxusers 80 Apr  7 14:07 001
> drwxr-x--- 2 root vboxusers 60 Apr  7 14:05 002
> LLR5:~ # zypper se -si virtualbox
> Loading repository data...
> Reading installed packages...
> 
> S  | Name                   | Type    | Version                             
> | Arch   | Repository
> ---+------------------------+---------+--------------------------------------
> -----+--------+--------------------------
> i+ | virtualbox             | package | 7.0.14-0                            
> | x86_64 | VB
> i+ | virtualbox-kmp-default | package |
> 7.0.14_k5.14.21_150500.55.52-lp155.2.19.1 | x86_64 |
> openSUSE-Leap-15.5-Update
> i+ | virtualbox-kmp-default | package |
> 7.0.14_k5.14.21_150500.55.49-lp155.2.16.1 | x86_64 |
> openSUSE-Leap-15.5-Update
> i+ | virtualbox-kmp-default | package | 7.0.14_k5.14.21_150500.55.39-0      
> | x86_64 | VB
> i+ | virtualbox-kmp-default | package |
> 7.0.12_k5.14.21_150500.55.31-lp155.2.13.1 | x86_64 |
> openSUSE-Leap-15.5-Update
> 1222408

I rebooted after the last leap 15.5 update and the bug was noticed.
Comment 6 Michael Nickol 2024-04-07 20:48:29 UTC
(In reply to Michael Nickol from comment #5)
> (In reply to Larry Rainey from comment #1)
> > Did you reboot - this works fine on all my 15.5 hosts
> > 
> > LLR5:~ # /usr/lib/virtualbox/vboxdrv.sh status
> > VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp) are loaded.
> > LLR5:~ # ll /dev/vbox*
> > crw-rw---- 1 root vboxusers 10, 122 Apr  7 14:05 /dev/vboxdrv
> > crw-rw---- 1 root vboxusers 10, 121 Apr  7 14:05 /dev/vboxdrvu
> > crw-rw---- 1 root vboxusers 10, 120 Apr  7 14:05 /dev/vboxnetctl
> > 
> > /dev/vboxusb:
> > total 0
> > drwxr-x--- 2 root vboxusers 80 Apr  7 14:07 001
> > drwxr-x--- 2 root vboxusers 60 Apr  7 14:05 002
> > LLR5:~ # zypper se -si virtualbox
> > Loading repository data...
> > Reading installed packages...
> > 
> > S  | Name                   | Type    | Version                             
> > | Arch   | Repository
> > ---+------------------------+---------+--------------------------------------
> > -----+--------+--------------------------
> > i+ | virtualbox             | package | 7.0.14-0                            
> > | x86_64 | VB
> > i+ | virtualbox-kmp-default | package |
> > 7.0.14_k5.14.21_150500.55.52-lp155.2.19.1 | x86_64 |
> > openSUSE-Leap-15.5-Update
> > i+ | virtualbox-kmp-default | package |
> > 7.0.14_k5.14.21_150500.55.49-lp155.2.16.1 | x86_64 |
> > openSUSE-Leap-15.5-Update
> > i+ | virtualbox-kmp-default | package | 7.0.14_k5.14.21_150500.55.39-0      
> > | x86_64 | VB
> > i+ | virtualbox-kmp-default | package |
> > 7.0.12_k5.14.21_150500.55.31-lp155.2.13.1 | x86_64 |
> > openSUSE-Leap-15.5-Update
> > 1222408
> 
> I rebooted after the last leap 15.5 update and the bug was noticed.

I reinstalled from opeSUSE repository to reproduce:

Silentmax:~ # /usr/lib/virtualbox/vboxdrv.sh status
chmod: cannot access '/etc/vboxusb/': No such file or directory
chmod: cannot access '/etc/vboxusb/*': No such file or directory
chmod: cannot access '/etc/vboxusb/*/*': No such file or directory
VirtualBox kernel modules (vboxdrv, vboxnetflt, vboxnetadp) are loaded.
Silentmax:~ # ll /dev/vbox*
crw-rw---- 1 root vboxusers 10, 124 Apr  7 22:41 /dev/vboxdrv
crw-rw---- 1 root vboxusers 10, 123 Apr  7 22:41 /dev/vboxdrvu
crw-rw---- 1 root vboxusers 10, 122 Apr  7 22:41 /dev/vboxnetctl

/dev/vboxusb:
total 0
drw-rw---- 2 root vboxusers 80 Apr  7 22:41 004
drw-rw---- 2 root vboxusers 60 Apr  7 22:41 010
Silentmax:~ # zypper se -si virtualbox
Loading repository data...
Reading installed packages...

S  | Name                           | Type    | Version                                   | Arch   | Repository
---+--------------------------------+---------+-------------------------------------------+--------+-----------------------
i  | python3-virtualbox             | package | 7.0.14-lp155.2.19.1                       | x86_64 | Main Update Repository
i+ | virtualbox                     | package | 7.0.14-lp155.2.19.1                       | x86_64 | Main Update Repository
i+ | virtualbox-devel               | package | 7.0.14-lp155.2.19.1                       | x86_64 | Main Update Repository
i+ | virtualbox-guest-desktop-icons | package | 7.0.14-lp155.2.19.1                       | noarch | Main Update Repository
i+ | virtualbox-guest-source        | package | 7.0.14-lp155.2.19.1                       | noarch | Main Update Repository
i+ | virtualbox-guest-tools         | package | 7.0.14-lp155.2.19.1                       | x86_64 | Main Update Repository
i+ | virtualbox-host-source         | package | 7.0.14-lp155.2.19.1                       | noarch | Main Update Repository
i  | virtualbox-kmp-default         | package | 7.0.14_k5.14.21_150500.55.52-lp155.2.19.1 | x86_64 | Main Update Repository
i+ | virtualbox-qt                  | package | 7.0.14-lp155.2.19.1                       | x86_64 | Main Update Repository
i+ | virtualbox-vnc                 | package | 7.0.14-lp155.2.19.1                       | x86_64 | Main Update Repository
i+ | virtualbox-websrv              | package | 7.0.14-lp155.2.19.1                       | x86_64 | Main Update Repository
Silentmax:~ #
Comment 7 Javier Llorente 2024-04-09 09:16:15 UTC
I'm also affected by this bug. To get it working I have rolled back to the previous version.

virtualbox-7.0.14-lp155.2.16.2.x86_64
virtualbox-kmp-default-7.0.14_k5.14.21_150500.55.49-lp155.2.16.1.x86_64
virtualbox-qt-7.0.14-lp155.2.16.2.x86_64
Comment 8 Gerben Jansen 2024-04-22 14:21:33 UTC
(In reply to Larry Finger from comment #2)
> I thought the fix was pushed to 15.5 as well as TW and 15.6. That is now
> fixed as task 1165992. I will see how soon I can get it pushed to an update.
> In the meantime, you can obtain the fixed code at
> https://build.opensuse.org/package/show/home:lwfinger:branches:openSUSE:Leap:
> 15.5:Update/virtualbox.

I tried the URL, but i get "Project not found: home:lwfinger:branches:openSUSE:Leap:15.5:Update "

Where did it go ?
Comment 9 Larry Finger 2024-04-22 15:33:13 UTC
(In reply to Gerben Jansen from comment #8)
> I tried the URL, but i get "Project not found:
> home:lwfinger:branches:openSUSE:Leap:15.5:Update "
> 
> Where did it go ?

Home projects get deleted for a number of reasons. I'm not sure which one applied here.

You can find the VB packages at https://build.opensuse.org/projects/Virtualization/packages/virtualbox/repositories/15.5/binaries

and the kernel modules at https://build.opensuse.org/projects/Virtualization/packages/virtualbox:kmp/repositories/15.5/binaries.
Comment 10 Javier Llorente 2024-05-22 12:35:43 UTC
This bug is mentioned in openSUSE-2024-134 - Recommended update for virtualbox;

- Setting 0660 as permissions of /dev/vboxusb directory itself was preventing
access to this directory by any non-root user, even if member of vboxusers. This results in VBox UI failing to enable USB passthrough. Fix issue by removing all the workarounds for /dev/vboxusb/* as they should no longer be required. Fixes boo#1222408.
Comment 11 Larry Rainey 2024-05-22 13:04:45 UTC
The latest 7.0.18 is correct and allows vboxusers to access USB

Is your USB setup in the virtual machine enabled - It has to be to access the USB.

the output ownership should look like this:

user1@LLR1:~> ll /dev/vb*
crw-rw---- 1 root vboxusers 10, 122 May 21 10:06 /dev/vboxdrv
crw-rw---- 1 root vboxusers 10, 121 May 21 10:06 /dev/vboxdrvu
crw-rw---- 1 root vboxusers 10, 120 May 21 10:06 /dev/vboxnetctl

/dev/vboxusb:
total 0
drwxr-x--- 2 root vboxusers 120 May 22 06:53 001
drwxr-x--- 2 root vboxusers  80 May 21 10:06 002
user1@LLR1:~>
Comment 12 Michael Nickol 2024-05-22 17:20:24 UTC
Fix has been installed for LEAP 15.5 with zypper up. USB devices are accessable.
Comment 13 Javier Llorente 2024-05-23 07:29:16 UTC
I have installed openSUSE-2024-134 and I can confirm that this bug is now fixed. Thanks Larry!