Unable to start VirtualBox VM on Ubuntu – Kernel driver not installed

I’m fairly new to Ubuntu and would like to learn more in a safer environment than using my host machine. I’m running Ubuntu 18.04 Kernel 5.3.1 and am struggling to create a VirtualBox Ubuntu VM.

When I try to start the machine I get:

Virtualbox

Running modprobe xboxdrv as root I get:

modprobe xboxdrv modprobe: FATAL: Module xboxdrv not found in directory /lib/modules/5.3.1-050301-generic 

When I run:

sudo apt install --reinstall virtualbox-dkms 

Unpacking virtualbox-dkms (5.2.32-dfsg-0~ubuntu18.04.1) over (5.2.32-dfsg-0~ubuntu18.04.1) … Setting up virtualbox-dkms (5.2.32-dfsg-0~ubuntu18.04.1) … Loading new virtualbox-5.2.32 DKMS files… Building for 5.3.1-050301-generic Building initial module for 5.3.1-050301-generic ERROR (dkms apport): kernel package linux-headers-5.3.1-050301-generic is not supported Error! Bad return status for module build on kernel: 5.3.1-050301-generic (x86_64) Consult /var/lib/dkms/virtualbox/5.2.32/build/make.log for more information.

The mentioned file contains this contents:

CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/process-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/rtStrFormatKernelAddress-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c: In function ‘VBoxHost_RTMpOnAll’: /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c:287:18: error: void value not ignored as it ought to be int rc = smp_call_function(rtmpLinuxAllWrapper, &Args, 0 /* wait /); ^~~~~~~~~~~~~~~~~ /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c: In function ‘VBoxHost_RTMpOnOthers’: /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.c:341:8: error: void value not ignored as it ought to be rc = smp_call_function(rtmpLinuxWrapper, &Args, 1 / wait /); ^ scripts/Makefile.build:280: recipe for target ‘/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o’ failed make[2]: [/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o] Error 1 make[2]: Waiting for unfinished jobs…. CC [M] /var/lib/dkms/virtualbox/5.2.32/build/vboxdrv/r0drv/linux/semfastmutex-r0drv-linux.o scripts/Makefile.build:497: recipe for target ‘/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv’ failed make1: [/var/lib/dkms/virtualbox/5.2.32/build/vboxdrv] Error 2 Makefile:1624: recipe for target ‘module/var/lib/dkms/virtualbox/5.2.32/build’ failed make: * [module/var/lib/dkms/virtualbox/5.2.32/build] Error 2 make: Leaving directory ‘/usr/src/linux-headers-5.3.1-050301-generic’

How do I get VirtualBox running on Ubuntu?

Why would VirtualBox abort and take Ubuntu down with it

I am running VirtualBox on Ubuntu 18.04 LTS had Windows 10 running in a guest machine, I had no problems with either Ubuntu or VirtualBox, I was also using Cairo dock and had no problems with that either, until today when VirtualBox crashed without warning, I could see that the guest machine which as running Windows 10 Pro 64b, was aborted and while I was trying to figure out what went wrong by looking in the VirtualBox logs, Ubuntu crashed.

When I restarted Ubuntu, the crash log reads:

-rw-r—– 1 me whoopsie 2060878 Sep 17 17:41 _usr_bin_nautilus.1000.crash
-rw-r—– 1 root whoopsie 91135782 Sep 17 15:38 _usr_lib_virtualbox_VirtualBoxVM.0.crash

Also worryingly, I found that Cairo dock which I had installed via PPA and was set as a startup program:

Startup Applications

failed to load, not only did it fail to load, there is actually no trace of it on my system and when I listed all installed apps in the terminal with the following commands, there is no cairo dock in the results, so it appears to have disappeared, its as if it was never on my system I cant find any trace of it:

:~$ apt list –installed |grep cairo
:~$ dpkg –get-selections | awk ‘{print $ 1}’ |grep cairo

Any ideas as to what could cause the crashes VirtualBox followed by Ubuntu and then cause an installed application to completely disappear off my Ubuntu system, apart from maybe a magician?

VirtualBox Ubuntu 15.04 can’t work [on hold]

It doesn’t accept while it finished installing Ubuntu 15.04 but while logging in, it would reset back to back. But I removed my VM as ‘Remove all files’ and reinstalling it, using live CD/DVD, but it wouldn’t work because I’d forgot to go to “Settings > Storage” and check the live CD/DVD.

=( So sad that Ubuntu can’t accept in VirtualBox! =(

Virtual box: Virtual screen 2 crashes after update to virtualbox 6.0.10

I usually run ubuntu 18.04 in a virtual box on a Windows 10 host and use two screens, i.e. virtual screen 1 and virtual screen 2. Today I updated my virtualbox to 6.0.10. When I restart the virtual box both virtual screen 1 and virtual screen 2 starts as usual, see screen shot here: https://imgur.com/a/owwjNnL

I can move the windows with virtual screen 1 and virtual screen 2 around. However, when I try to go to full screen or to resize the windows, screen 2 closes/crashes. It is then impossible to restart it by choosing view->virtual screen 2 -> enable.

To see where the problem lies I also installed ubuntu 19.04 and windows 10 in virtual machines. With ubuntu 19.04 I still got the same problem. But with the windows 10 virtual machine everything worked, even if the graphics of window is flickering a couple of seconds before adapting to the new size. What can I do?

Virtualbox on windows host, screen 2 crashes

I run ubuntu 18.04 in a virtual box on a Windows 10 host. I use a docked hp laptop, and two separate hp monitors connected to the dock. I use the two monitors as virtual screen 1 and virtual screen 2. Today I updated my virtualbox to 6.0.10. However, now I could no longer enable virtual screen 2. I restarted ubuntu and was happy because both the virtual screens were now started, see screen shots here: https://imgur.com/a/owwjNnL

HOWEVER, as soon as I try to change the size of either window or go to full screen, screen 2 will close/crash. It is then impossible to restart it by choosing view->virtual screen 2 -> enable. Doing this has no effect. It has previously happened a few times that screen 2 closes/crashes when I resize the window or suddenly unplug both monitors from the dock. However, only a few times, and nothing like this. What can I do?

VirtualBox: Ubuntu guest-OS is sluggish on Mac host-OS, why?

I have fresh installation of Ubuntu (16.04) on VirtualBox (version 6.0) that is running on top of a macOS Mojava (10.14.6). The specs of the VM are as follow:

  1. 8 GB (half of the RAM)
  2. 80 GB storage (I have penalty)
  3. 4 processors (out of 8)
  4. 64 MB video memory (out of 128)
  5. VMSVGA graphic controller

After the installation completed, I’ve inserted the Guess Additional CD image. I’ve disabled animation and remove all unnecessary applications.

Yet, the VM is very sluggish and slow. It is not responsive as it should be. what should I do ?

Stucking of replaced ctrl on Ubuntu on virtualbox

I using Ubuntu on VirtualBox (Host Windows10 Home 1903.)
I have replace CapsLock to Ctrl only on Ubuntu. (not replace key on Windows10.)

When I use vim I use Ctrl[ (actually Caps[ ) to back to normal mode, but it get stuck Ctrl so I need push Shift-Caps to purge stuck of ctrl for each time (actually Shift-Caps).

I would like to replace Caps to Ctrl on Ubuntu VM only (not Windows Host).
How do I avoid stuck Ctrl on ubuntu?

Note that I do not enable sticky key function.

  • Virtual Box 6.0.10
  • Host: Windows 10 Home 1903
  • Guest : Ubuntu 19.04
  • Gnome: 3.32.1