Ask Your Question

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

asked 2018-02-17 15:40:35 +0000


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


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 ( 2018-02-17 18:53:38 +0000 )edit


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

fedorauser123456789 ( 2018-02-17 19:18:35 +0000 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-02-19 00:40:33 +0000

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


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

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2018-02-17 15:38:38 +0000

Seen: 168 times

Last updated: Feb 19