Page 1 of 1

Can't boot my VM

Posted: 29. Apr 2017, 23:28
by Lukkie1998
Hey everyone,

First of all a small introduction :D My name is Luke and i'm a first years software engineering student at a Dutch university.
I started working on a small project involving a Linux Ubuntu VPS. Now we got to the point where we need a VM on it for a specific program.
Whenever I ty to boot up my VM it gives me this error: VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine.
It gives me the suggestion to run #sudo /sbin/vboxconfig, which then again says that i'm missing some Linux kernels. When I try to install them it then says that they can't be found.
The logs give me this: Makefile:186: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

Anyone experienced this before and knows how to fix it? I'm fairly new with VirtualBox through SSH and Linux, so correct me whenever i'm wrong!

Greets, Lukkie1998

Re: Can't boot my VM

Posted: 30. Apr 2017, 00:15
by Perryg
It sounds like you are missing the header files on the host and that is why VirtualBox kernel modules can not build. You mention Ubuntu which is a debian based os so you need to make sure that the following is loaded: kernel-headers build-essential The install VirtualBox again. Also make sure that you use the install from virtualbox.org. If not and you want to use the distro fork you will need to contact them as we do not support anything other than the official build.