LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Virtualbox problems (https://www.linuxquestions.org/questions/linux-software-2/virtualbox-problems-4175451038/)

linuxPCplus 02-20-2013 10:01 PM

Virtualbox problems
 
So I am trying to install windows & PClinuxOS in virtualbox's. Everything goes fine with the initial congiuration, but when I try to start the machines to actually install the OS, I get 2 errors about some kernal modue not being installed:

"Failed to open a session for the virtual machine XP.
The virtual machine 'XP' has terminated unexpectedly during startup with exit code 1."
Followed by this error a second later:
"Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary."

I try to run the command it advises, but that fails too with this output: wolf@lpcplus-wolf:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found
The DKMS package IS installed.
I have tried removing VB then reinstalling it.
Can anyone help with this?

273 02-21-2013 08:25 AM

You should install DKMS as this is required to build the VirtualBox kernel module.

linuxPCplus 02-21-2013 05:26 PM

Quote:

Originally Posted by 273 (Post 4896692)
You should install DKMS as this is required to build the VirtualBox kernel module.

You should READ the full post before you reply! The DKMS packager IS INSTALLED! Clearly stated in my post.

273 02-21-2013 05:36 PM

Quote:

Originally Posted by linuxPCplus (Post 4897049)
You should READ the full post before you reply! The DKMS packager IS INSTALLED! Clearly stated in my post.

My apologies, not sure how I missed that.
Have you purged the VirtualBox and DKMS installs rather than just removing them?

TobiSGD 02-21-2013 07:30 PM

Which distro are you using as host? It may be possible that the distro uses a different init system, so that the command given by Virtualbox won't work.
For example, on Slackware I have to use
Code:

/etc/rc.d/rc.vboxdrv setup
due to the BSD style init system.

Knightron 02-21-2013 10:20 PM

I agree, which distro are you using?
Also, are you using the packaged version which is often provided in a repo, or are you using the build version often provided in a third party repo?

linuxPCplus 02-22-2013 06:18 PM

Quote:

Originally Posted by Knightron (Post 4897178)
I agree, which distro are you using?
Also, are you using the packaged version which is often provided in a repo, or are you using the build version often provided in a third party repo?

The problem was solved. But to answer your questions, I am using Bodhi. As it turns out, I had to install through bodhi itself becuase of some kind of differences in the way Ubuntu & Bodhi install packages.


All times are GMT -5. The time now is 07:15 AM.