VirtualBox doesn't start

asked 2018-05-18 08:39:53 -0500

I use Fedora 27. From main repository I've downloaded VirtualBox:

$ rpm -qa | grep VirtualBox
VirtualBox-server-5.2.10-1.fc27.x86_64
kmod-VirtualBox-4.16.7-200.fc27.x86_64-5.2.10-2.fc27.x86_64
akmod-VirtualBox-5.2.10-2.fc27.x86_64
VirtualBox-5.2.10-1.fc27.x86_64
VirtualBox-kmodsrc-5.2.10-1.fc27.noarch

I created a VM, but launching it I get the error:

where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.

Searching in internet, I found that could be SELinux that doesn't allow to load the correct kernel modules (https://bugzilla.rpmfusion.org/show_b...). So I tried to disable them temporarily, updating file /etc/config/selinux, but without success.

Any idea. Thanks a lot.

edit retag flag offensive close merge delete

Comments

try this command:

sudo usermod -G vboxusers -a your-user

And install guestadition before star VM

Ferm gravatar imageFerm ( 2018-05-18 11:09:15 -0500 )edit

Reading https://www.virtualbox.org/ticket/14716 seems to suggest that the problem might be that Virtuabox was running when the package was updated. Also, it suggest that vboxdrv module is not loaded. I guess you could verify with: lsmod | grep vboxdrv. You can manually start it with: modprobe vboxdrv If that does not work, I guess I would: modinfo vboxdrv | grep filename and check that the filename exist.

PaulD gravatar imagePaulD ( 2018-05-18 13:07:30 -0500 )edit

I think if you do not reboot you have to:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module available for the current kernel (4.16.8-300.fc28.x86_64) or it failed to load. Please try load the kernel module by executing as root

           dnf install akmod-VirtualBox kernel-devel-4.16.8-300.fc28.x86_64
           akmods --kernels 4.16.8-300.fc28.x86_64 && systemctl restart systemd-modules-load.service

         You will not be able to start VMs until this problem is fixed.
PaulD gravatar imagePaulD ( 2018-05-19 01:57:28 -0500 )edit

I forget to tell that I added my user to vxboxusers.

I run "systemctl restart systemd-modules-load.service", but I get this:

Failed to insert 'vboxguest': Operation not permitted
Failed to insert 'vboxsf': Operation not permitted
Failed to insert 'vboxdrv': Operation not permitted
Failed to insert 'vboxnetflt': Operation not permitted
Failed to insert 'vboxnetadp': Operation not permitted
Failed to insert 'vboxpci': Operation not permitted

Something is preventing kernel modules to be loaded. It can be SELinux, but I get the same issue disabling it.

hveneticus2 gravatar imagehveneticus2 ( 2018-05-19 12:17:25 -0500 )edit