VirtualBox 6.1.28 / 6.1.29 on Fedora 35/34/33, CentOS/RHEL 8/7 - Comment Page: 22
Oracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.
Check video guide howto install VirtualBox 6.1.28/6.1.29 on Fedora 35/34/33 using .run installer:
Check video guide howto install VirtualBox 6.1.28 on Fedora 34/33 using Oracle's own dnf repo:
Watch More Videos and Subscribe to if-not-true-then-false.com Youtube Channel
VirtualBox supports a large number of guest operating...
KERN_VER sometimes is needed
Excellent guide , got the application install in no time.
thanks
vboxdrv.sh: failed: modprobe vboxdrv failed. Please use ‘dmesg’ to find out why
ths msg pops when i re configure the kernel. please help it is still a problem for me
Hello Akshat,
Do you see anything interesting on your dmesg output?
What distro you use and is it fully updated?
Works like a charm!
Thank you very much!
Great Info!!
I’ve been trying make work VirtualBox for my Laravel project with Vagrant loosing a lot of time looking for a solution, and all the problem seemed to be a bad installation of VirtualBox. Fortunately I found this tutorial that solved my problems. Thank you very much!
It might be worth mentioning that “Secure Boot” needs to be disabled in the UEFI/BIOS setup, otherwise it prevents the VirtualBox kernel driver (vboxdrv) from loading.
Thanks, very useful.
thank you very much for sharing!
There should be a way to run /usr/lib/virtualbox/vboxdrv.sh setup on upgrade of virtualbox and or kernel.
Also there should be a way to have it save each machines state stop them and update virtualbox and restore all the machines that where running.
I’ll work on scripts to do that but they ought to exist already.
thank you!
Worked. Thanks
hi. everything went fine but i got an error when i executed /usr/lib/virtualbox/vboxdrv.sh setup
[[email protected] ~]# /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.
i’m using fedora workstation 27 kernel-4.15.9-300.fc27.x86_64
Hi anj,
What shows your dmesg command after failed build? I tested this just with kernel 4.15.10 and VirtuaBox 5.2.8 and it’s working normally for me.
Had the same problem on Centos 7 i had to update my gcc-compiler to enable retpoline support:
sudo yum install libgomp = 4.8.5-16.el7_4.2
sudo yum install gcc-4.8.5-16.el7_4.2.x86_64.rpm
Got package from http://ftp.riken.jp/Linux/cern/centos/7/updates/x86_64/Packages/gcc-4.8.5-16.el7_4.2.x86_64.rpm
step 5:
$ /usr/lib/virtualbox/vboxdrv.sh setup
vboxdrv.sh: Stopping VirtualBox services.
/usr/lib/virtualbox/vboxdrv.sh: строка 205: /etc/udev/rules.d/60-vboxdrv.rules: Permission denied
vboxdrv.sh: Building VirtualBox kernel modules.
/usr/lib/virtualbox/vboxdrv.sh: строка 401: /var/log/vbox-install.log: Permission denied
This system is currently not set up to build kernel modules.
Please install the Linux kernel “header” files matching the current kernel
for adding new hardware support to the system.
Hi Stas,
Did you run this
/usr/lib/virtualbox/vboxdrv.sh setup
command as root user?In fedora 27 with uefi boot you have to sign the modules with your Machine Owner Key. I followed something like this for the MOK creation: https://gist.github.com/gabrieljcs/68939c7eeadfabfdbc6b40100130270d
And then run this (after having vboxdrv setup failing in modprobe vboxdrv):
for A in $(dirname $(modinfo -n vboxdrv))/*.ko; do
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 /root/MOK.priv /root/MOK.der “$A”
done
Hi Luca Gervasi,
Alternatively you can disable secure boot from UEFI.
On Fedora 28 the repository cannot load and the system deactivate it…
What happened?
Hi Miguel,
There is not Fedora 28 repo yet, you can use Fedora 27 version until Oracle releases Fedora 28 repo.