VirtualBox

Opened 13 years ago

Closed 12 years ago

#9273 closed defect (fixed)

udev rules file missing in fedora15 package

Reported by: Thomas Moschny Owned by:
Component: USB Version: VirtualBox 4.1.0
Keywords: Cc:
Guest type: other Host type: Linux

Description

USB pass-through does not work, because /etc/udev/rules.d/10-vboxdrv.rules is missing, and thus /dev/vboxusb is not populated.

Manually adding the file fixes the problem.

% cat <<EOF >/etc/udev/rules.d/10-vboxdrv.rules
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"
SUBSYSTEM=="usb_device", ACTION=="add", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"
EOF
% rpm -q VirtualBox-4.1 
VirtualBox-4.1-4.1.0_73009_fedora15-1.x86_64

Change History (6)

comment:1 by Michael Thayer, 13 years ago

When I install the package in a Fedora 15 VM with no previous VirtualBox installation the rule file is created. Possibly something in your host setup is causing this to fail.I wonder whether

comment:2 by Thomas Moschny, 13 years ago

VirtualBox had been updated using yum shell like this:

remove VirtualBox-4.0
install VirtualBox-4.1
transaction run

(with no indication of problems); might be the %postin scriplet didn't handle that.

Anyway, completely removing and reinstalling VirtualBox-4.1 indeed solves the problem.

comment:3 by Steve Elliott, 13 years ago

It also looks like VirtualBox-4.1-4.1.0_73009_fedora14-1.x86_64 does not package 10-vboxdrv.rules.

[Steve@Regret ~]$ yum provides */VBox
...
VirtualBox-4.1-4.1.0_73009_fedora14-1.x86_64 : Oracle VM VirtualBox
Repo        : installed
Matched from:
Filename    : /usr/bin/VBox

[Steve@Regret ~]$ yum provides */vboxdrv
VirtualBox-4.1-4.1.0_73009_fedora14-1.x86_64 : Oracle VM VirtualBox
Repo        : installed
Matched from:
Filename    : /etc/rc.d/init.d/vboxdrv


[Steve@Regret ~]$ yum provides */10-vboxdrv.rules
...
No Matches found

I did not find reinstallation fixed this. I manually added the rules.

Steve

comment:4 by Thomas Moschny, 13 years ago

The 10-vboxdrv.rules files is created by the postinstall script, see rpm -q --qf '%{POSTIN}' VirtualBox-4.1. But there seems a bug in that script, so sometimes the file simply is not there after installation.

Of course it would be better to simply create it at packaging time (when %{_datadir} is known).

The other thing is, there should be %ghost entries for all files created by %postin, so rpm and thus yum know which package these belong to.

comment:5 by Frank Mehnert, 13 years ago

Please re-check with VBox 4.1.2. There was a bug that the udev rule was created before the vboxusers group was created.

comment:6 by Frank Mehnert, 12 years ago

Resolution: fixed
Status: newclosed

No response, closing.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use