Ask Your Question
0

VIRTUALBOX INSTALLATION - 'modprobe vboxdrv failed' after trying to rebuild kernel modules

asked 2018-02-17 09:40:35 -0500

fedorauser123456789 gravatar image

Hello,

I Have been trying to follow this guide: https://www.if-not-true-then-false.co... on how to install VirtualBox 5.2 on Fedora 27. It all went pretty smooth until I used the command '/usr/lib/virtualbox/vboxdrv.sh setup' to rebuild the kernel modules. Below you can see that the problem lies on the last line:

# /usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.

vboxdrv.sh: failed: modprobe vboxdrv failed. makes it seem like there is some error. Does anybody know how to fix this and correctly finish the installation and everything?

I would be sincerely thankful if someone could help me out since I am a newbie on Fedora 27 and have been trying to install VirtualBox on Fedora all night correctly so that I don't get the well-known error rc=-1908 when I try to launch an OS in VirtualBox.

edit retag flag offensive close merge delete

Comments

So, concerning rc=-1908 you want to say that you have disabled secure boot? Run dmesg -c, then start the /usr/lib/virtualbox/vboxdrv.sh setup again and run again dmesg and post the output.

thomaswood gravatar imagethomaswood ( 2018-02-17 12:53:38 -0500 )edit

@thomaswood

Running dmesg after /usr/lib/virtualbox/vboxdrv.sh setup outputs nothing! What does that mean?

fedorauser123456789 gravatar imagefedorauser123456789 ( 2018-02-17 13:18:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-02-18 18:40:33 -0500

sergiomb gravatar image

yes , vbox 5.2.6 won't build all modules for kernel 4.15

you need patch the kmod vbox sources [1]

Is on updates-testing of F27 RPMFusion, VirtualBox-5.2.6-2.fc27

https://rpmfusion.org/Howto/VirtualBox

If you try it, you need uninstall oracle rpm sources and all files left in system ... (because don't use akmods) , if you succeeded let me know to update wiki on how clean files generated by oracle scripts.

Best regards,

[1] https://pkgs.rpmfusion.org/cgit/free/...for4.15.v2.patch?id=9e509eaddb14831da29e8ce519e262e82a9cce45

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-02-17 09:38:38 -0500

Seen: 457 times

Last updated: Feb 18