I am using an old laptop that does not support VT-x hardware accelaration, so I have to use virtualbox v6.0.
On kubuntu 20.04 it works without any problem. However in kubuntu 21.04 (and even kubuntu 20.04.2) when I run a VM it gives the following error:
The VirtualBox Linux kernel driver is either not loaded or not set up correctly. Please try setting it up again by executing
'/sbin/vboxconfig'
as root.
If your system has EFI Secure Boot enabled you may also need to sign the kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load them. Please see your Linux system's documentation for more information.
where: suplibOsInit what: 3 VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
When I run sudo /sbin/vboxconfig , the following errors happen
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root. If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.
I tried adding the line #include <linux/ethtool.h> to the file /usr/share/virtualbox/src/vboxhost/vboxnetflt/linux/VBoxNetFlt-linux.c and the file /usr/src/vboxhost-6.0.24/vboxnetflt/linux/VBoxNetFlt-linux.c then run sudo /sbin/vboxconfig but the error still there.
Any help or suggestion will be appreciated.
Error when running VMs using virtualbox 6.0 on ubuntu 21.04
-
- Posts: 3
- Joined: 29. Apr 2021, 05:57
-
- Volunteer
- Posts: 2561
- Joined: 30. May 2007, 18:05
- Primary OS: Fedora other
- VBox Version: PUEL
- Guest OSses: XP, Win7, Win10, Linux, OS/2
Re: Error when running VMs using virtualbox 6.0 on ubuntu 21.04
Which release of Virtualbox 6.0 are you running? The latest version is 6.0.24 from July 2020.
If your Linux kernel is very new Vbox 6.0.x will probably not be compatible anymore.
If your Linux kernel is very new Vbox 6.0.x will probably not be compatible anymore.
-
- Posts: 3
- Joined: 29. Apr 2021, 05:57
Re: Error when running VMs using virtualbox 6.0 on ubuntu 21.04
I tried different releases (6.0.24) is one of them. None of them works.
-
- Volunteer
- Posts: 5677
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: Error when running VMs using virtualbox 6.0 on ubuntu 21.04
VirtualBox 6.0.24 supports only Linux kernels 5.6 and older, VirtualBox 6.1.x needed several adaptations for Linux kernels 5.8 and newer, and Ubuntu 21.04 comes with Linux kernel 5.11. In consequence, your combination cannot work.
-
- Posts: 3
- Joined: 29. Apr 2021, 05:57
Re: Error when running VMs using virtualbox 6.0 on ubuntu 21.04
I installed linux kernel 5.5.19 (as in the link below) and Virtualbox 6.0 works now. Thanks for help.
https://www.fosslinux.com/40825/how-to- ... ubuntu.htm
https://www.fosslinux.com/40825/how-to- ... ubuntu.htm