VirtualBox w/Fedora 24 host

I'm still experimenting with VirtualBox ...
I used the following procedure to successfully install VirtualBox 5.1 in a Fedora 24 Host and Windows 7 Guest. However, the list of USB Device Filters is cleared after a reboot/shutdown. Also, the Guest OS crashes frequently. The shared folder configuration is permanent. If I execute "# /usr/lib/virtualbox/vboxdrv.sh setup" then I can reconfigure USB Device Filters, and the Guest doesn't crash. How can I make the list of USB Device Filters permanent and stop the Guest crashing? Fedora data is encrypted and the default machine folder is /home/Documents. I appreciate any help.

VirtualBox 5.1.4 Installation

[Install VirtualBox Repository]

cd /etc/yum.repos.d/

wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

[Install Dependency Packages]

dnf update

dnf install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms

[Install VirtualBox 5.1.4]

dnf install VirtualBox-5.1

[Rebuild Kernel Modules]

/usr/lib/virtualbox/vboxdrv.sh setup

Add user to vboxusers group. Replace user_name in the following command with the user's name.

usermod -a -G vboxusers 'user_name'

[Install VirtualBox Extension Pack]

wget http://download.virtualbox.org/virtualbox/5.1.4/Oracle_VM_VirtualBox_Extension_Pack-5.1.4-110228.vbox-extpack

Fix USB problem:
from: https://forums.virtualbox.org/viewtopic.php?f=7&t=59462

Steps:
sudo nano/etc/udev/rules.d/60-vboxdrv.rules
(If file does not exist, create it)
find:
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}"

and replace with:
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor vboxusers"
SUBSYSTEM=="usb",
ACTION=="add", ENV{DEVTYPE}=="usb_device",
RUN+="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor
vboxusers"

reboot and you should be able to use USBs

Not sure about the crashing though. Pretty stable for me (Kernel version 4.6.6-300)

1 Like

I found this article and tried it.
For some reason, everytime I created the file 60-vboxdrv.rules it would save it in udev and not rules.d

I'll try it again.

Thank you.

Everytime I reboot the 60-vboxdrv.rules file gets deleted.
I haven't found any comments about this on VirtualBox.org.