Ticket #9273 (closed defect: fixed)

Opened 9 years ago

Last modified 8 years ago

udev rules file missing in fedora15 package

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


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/ $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/ $major $minor $attr{bDeviceClass}"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN="/usr/share/virtualbox/ --remove $major $minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/ --remove $major $minor"
SUBSYSTEM=="usb_device", GROUP="vboxusers", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="vboxusers", MODE="0664"
% rpm -q VirtualBox-4.1 

Change History

comment:1 Changed 9 years ago by michael

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 Changed 9 years ago by moschny

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 Changed 9 years ago by SteveCGElliott

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.


comment:4 Changed 9 years ago by moschny

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 Changed 9 years ago by frank

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 Changed 8 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

No response, closing.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use