[Bug 1208941] New: VirtualBox: 'USB Rules and Permissions' popup on every start
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 Bug ID: 1208941 Summary: VirtualBox: 'USB Rules and Permissions' popup on every start Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Normal Priority: P5 - None Component: Virtualization:Tools Assignee: virt-bugs@suse.de Reporter: jayjayjazz@gmail.com QA Contact: qa-bugs@suse.de Found By: Community User Blocker: --- Every time I start VirtualBox 7.0.6 the popup 'USB Rules and Permissions' is shown. I choose 'Disable' and enter the root password in the next step. The popup is shown again on the next start of VirtualBox. In my previous Tumbleweed installation, the popup did only occur once. Additional information: - The file 'disable' is created in the folder /home/<user>/.config/VirtualBox/ - The script 'vbox-fix-usb-rules.sh' is located in /usr/sbin/ - my user is added to the group 'vboxusers' - I already tried removing virtualbox and reinstalling again. I also deleted the folder /home/<user>/.config/VirtualBox/. No change in the behavior. System: - OS Release: 6.2.1-1-default - VirtualBox XPCOM Server 7.0.6_SUSE r155176 linux.amd64 (no date no time) release -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c1 --- Comment #1 from Jazz <jayjayjazz@gmail.com> --- Totally forgot: There are no new rules in /etc/udev/rules.d/. According to the popup, there should be a file called '60-vboxdrv.rules'.This is not placed in the mentioned folder. I also tried to execute manually the 'vbox-fix-usb-rules.sh' as root: no error, but also no '60-vboxdrv.rules'. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c3 --- Comment #3 from Jazz <jayjayjazz@gmail.com> --- (In reply to Larry Rainey from comment #2)
file exists on my system - it is no longer in /etc/udev/rules.d
/usr/lib/udev/rules.d/60-vboxdrv.rules
# cat /usr/lib/udev/rules.d/60-vboxdrv.rules 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"
Hi Larry, ah, didn't know this. File exists in that folder also on my system: # cat /usr/lib/udev/rules.d/60-vboxdrv.rules 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" But, the popup, which asks, if I want to have the USB Passthrough enabled or disbaled is occuring for every start of VirtualBox. Is this the expected behavior? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c4 --- Comment #4 from Jazz <jayjayjazz@gmail.com> --- Hi Larry, in the meantime I completely reinstalled my machine. The 'USB Rules and Permissions' window is shown everytime I start VirtualBox. So, the situation has not changed. As mentioned previously: the 'disable' file is existent. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c5 --- Comment #5 from Larry Rainey <llrainey15@gmail.com> --- Do you have the extension pack installed? It has to be installed without virtualbox running or funny things happen. here is my script to install the extension pack. echo update VirtualBox VBOX_VERSION=`/usr/bin/VBoxManage --version | awk -F_ {'print $1'} | awk -Fr {'print $1'}` VBOX_EXT_VERSION=$VBOX_VERSION # echo Virtualbox version installed is $VBOX_VERSION and $VBOX_EXT_VERSION VBOX_EXT=`echo Oracle_VM_VirtualBox_Extension_Pack-${VBOX_EXT_VERSION}.vbox-extpack` # echo File is $VBOX_EXT cd /tmp /usr/bin/wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/$VBOX_EXT echo y | /usr/bin/VBoxManage extpack install --replace $VBOX_EXT rm -f $VBOX_EXT -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c6 --- Comment #6 from Jazz <jayjayjazz@gmail.com> --- (In reply to Larry Rainey from comment #5)
Do you have the extension pack installed?
It has to be installed without virtualbox running or funny things happen.
Hi Larry, no, I had never installed the extension pack. I just checked one other machine I have, which was installed ~1 year ago (the machine is up-to-date). Here the window is not showing up at every startup of VirtualBox. Also here: no ext pack installed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c7 --- Comment #7 from Jazz <jayjayjazz@gmail.com> --- Hi Larry, one more thought on this topic: I checked the Wiki article [1] and it looks like that this 'USB Rules and Permissions' is an openSUSE specific thing. This question, to enable or disable it, is not existent in the vanilla VirtualBox from Oracle as far as I understand. So, my guess would be that the ext pack has no influence here. The discussion about this seems to have happened in [2]. And just to be clear: I am referring to the window 'USB Rules and Permissions', which is added by [3]. (At least I hope my understanding is correct here.) [1] https://en.opensuse.org/VirtualBox#USB_passthru_(rpm_package_from_the_distro) [2] https://bugzilla.opensuse.org/show_bug.cgi?id=664520 [3] https://build.opensuse.org/package/view_file/openSUSE:Factory/virtualbox/vbo... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c8 --- Comment #8 from Larry Rainey <llrainey15@gmail.com> --- I did fresh install of 15.5 Beta I also installed extension pack. On 1st startup - I got the USB question and allowed it. Did not get it again on reboot and restart of virtualbox. It appears that if you disable it and have any guest with USB configured - it will ask every time you start VirtualBox. No way around that that I can see - That is how Oracle does it in 7.0. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c9 --- Comment #9 from Larry Rainey <llrainey15@gmail.com> --- I have asked the other maintainer to look and see if he know why. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c10 --- Comment #10 from Jazz <jayjayjazz@gmail.com> --- (In reply to Larry Rainey from comment #8)
I did fresh install of 15.5 Beta
I also installed extension pack.
On 1st startup - I got the USB question and allowed it.
Did not get it again on reboot and restart of virtualbox.
It appears that if you disable it and have any guest with USB configured - it will ask every time you start VirtualBox.
No way around that that I can see - That is how Oracle does it in 7.0.
Thanks for testing. I am using Tumbleweed. VirtualBox is 7.0.6 from the Tumbleweed repos. For me it doesn't matter, if I select 'Enable' or 'Disable'. It also doesn't matter, if there was a reboot. It will show the window on every start of VirtualBox. The window is also shown on every VirtualBox start, even when there is no Virtual Machine configured / added in VirtualBox. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c11 Larry Finger <Larry.Finger@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Larry.Finger@gmail.com --- Comment #11 from Larry Finger <Larry.Finger@gmail.com> --- I found a bug in our wrapper around the VirtualBox GUI. It will be added to our next push of the package. In the meantime, edit (as root) /usr/bin/VirtualBox and change the "echo" line in the else branch to add the $INODE part. devrules() { /usr/lib/virtualbox/VBoxUSB_DevRules if [ $? -eq 0 ] ; then # User accepts the risk touch ~/.config/VirtualBox/enable rm -f ~/.config/VirtualBox/disable else # User declines the risk - save the inode echo "$INODE" > ~/.config/VirtualBox/disable rm -f ~/.config/VirtualBox/enable fi } I will also upload the corrected file, which you can download and copy to /usr/bin/VirtualBox. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1208941 http://bugzilla.opensuse.org/show_bug.cgi?id=1208941#c12 --- Comment #12 from Larry Finger <Larry.Finger@gmail.com> --- Created attachment 866039 --> http://bugzilla.opensuse.org/attachment.cgi?id=866039&action=edit Revised copy of /usr/sbin/VirtualBox -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com