LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   need help installing virtualbox (http://www.linuxquestions.org/questions/linux-software-2/need-help-installing-virtualbox-881101/)

baronobeefdip 05-16-2011 09:43 PM

need help installing virtualbox
 
i just downloaded and installed virtualbox 4.0 for debian squeeze, i also added the virtualbox repositories to my collection and installed the dkms package but i am getting some errors

when i try to run a virtual machine i get a prompt

Code:

Failed to open a session for the virtual machine tux.
The virtual machine 'tux' has terminated unexpectedly during startup with exit code 1.

then i get this one
Code:

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. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

i run the command that it is telling me to, the
Code:

# /etc/init.d/vboxdrv setup
and i get an error in the terminal why can't i get it working heres the terminals output
Code:


Stopping VirtualBox kernel modules:.
Uninstalling old VirtualBox DKMS kernel modules:.
Trying to register the VirtualBox kernel modules using DKMS:
Error! Your kernel headers for kernel 2.6.32-5-amd64 cannot be found at
/lib/modules/2.6.32-5-amd64/build or /lib/modules/2.6.32-5-amd64/source.

Failed, trying without DKMS ... failed!
Recompiling VirtualBox kernel modules:
Look at /var/log/vbox-install.log to find out what went wrong ... failed!

what should i do, do i need to upgrade my kernel or something if so what depository should i use to do so, i don't want to do it from source

EricTRA 05-17-2011 01:02 AM

Hi,

Looking at this error I think your problem might be that you don't have the linux-headers package installed.
Quote:

Error! Your kernel headers for kernel 2.6.32-5-amd64
Check with:
Code:

dpkg -l 'linux-headers*'
and if you don't have them installed run the following:
Code:

sudo apt-get install linux-headers-$(uname -r)
After that try to run the setup command again.

Kind regards,

Eric

baronobeefdip 05-18-2011 05:52 PM

i just ran all of your commands and they did nothing, but after i ran those commands this is what comes up

Code:

#dpkg -l 'linux-headers*'

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name          Version        Description
+++-==============-==============-============================================
un  linux-headers  <none>        (no description available)
un  linux-headers- <none>        (no description available)
ii  linux-headers- 2.6.32+29      Header files for Linux 2.6-486 (meta-package
un  linux-headers- <none>        (no description available)
un  linux-headers- <none>        (no description available)
ii  linux-headers- 2.6.32-31      Header files for Linux 2.6.32-5-486
ii  linux-headers- 2.6.32-31      Header files for Linux 2.6.32-5-amd64
ii  linux-headers- 2.6.32-31      Common header files for Linux 2.6.32-5
un  linux-headers- <none>        (no description available)

what does this mean virtual box keeps telling me the same thing so what could be the problem


All times are GMT -5. The time now is 12:53 AM.