0

I tried to start virtual box but I can't start my VM. I can create it but when I tried to start it, I got this error. This is the photo that I captured of the error message:

the error that I got

And yes, I have EFI secure boot enabled.

Thomas Ward
  • 74,764

2 Answers2

0

As the VirtualBox manual says,

In order to run other operating systems in virtual machines alongside your main operating system, Oracle VM VirtualBox needs to integrate very tightly into the system. To do this it installs a driver module called vboxdrv which does a lot of that work into the system kernel, which is the part of the operating system which controls your processor and physical hardware. Without this kernel module, you can still use the VirtualBox Manager to configure virtual machines, but they will not start.

So you need to install the vboxdrv driver, like the error message spells out, too. To do this, execute

modprobe vboxdrv

with root privileges. If you get errors, you might need to install some software that's necessary to build the kernel module, like the C compiler or some header files. You can find further information in the VirtualBox manual linked above.

In general, it's very often helpful to actually read the error messages ;) As in this example, they often spell out what's wrong ("The VirtualBox Linux kernel driver is either not loaded or not set up correctly."), sometimes even what you need to do ("Please reinstall virtualbox-dkms package and load the kernel module by...").

Also, please don't post error messages as images like screenshots. Those cannot be searched. So the next person who has this problem can't find this question by searching for, for example, "VERR_VM_DRIVER_NOT_INSTALLED". Please copy and paste the text into your question as actual text.

And finally, after I told you what you did wrong: Welcome to Ask Ubuntu ;)

0

try

sudo apt-get install dkms
apt-get install linux-headers-$(uname -r)
sudo apt-get install virtualbox-dkms
sudo apt-get install build-essential module-assistant 

reboot it and check out.

vishal
  • 121