Page 1 of 1

Problem loading guest os on Kubuntu

Posted: 4. May 2010, 17:43
by jmaque
Hello guys/gals.
I am on a new install of Kubuntu 10.4, retained my /home directory so all my vm's that I had are still there.. I installed VirtualBox 3.1.6 and when I launch my guest OS in this case XP, but it does the same with the others I get the following message in a popup window:

Code: Select all

Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
Machine
Interface: 
IMachine {b8a9324a-1042-4c78-aff6-9d1c2bfd8cd0}
Then after this I get another popup window, contents below:

Code: Select all

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. 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.
So I follow the instructions and run "sudo /etc/init.d/vboxdrv setup" which results with the following log file:

Code: Select all

make KBUILD_VERBOSE=1 -C /lib/modules/2.6.32-21-generic-pae/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
/usr/src/linux-headers-2.6.32-21-generic-pae/scripts/gcc-version.sh: line 25: gcc: command not found
/usr/src/linux-headers-2.6.32-21-generic-pae/scripts/gcc-version.sh: line 26: gcc: command not found
/usr/src/linux-headers-2.6.32-21-generic-pae/arch/x86/Makefile:81: stack protector enabled but no compiler support
make[1]: gcc: Command not found
test -e include/linux/autoconf.h -a -e include/config/auto.conf || (		\
	echo;								\
	echo "  ERROR: Kernel configuration is invalid.";		\
	echo "         include/linux/autoconf.h or include/config/auto.conf are missing.";	\
	echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
	echo;								\
	/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
  gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d  -nostdinc -isystem   -Iinclude  -I/usr/src/linux-headers-2.6.32-21-generic-pae/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include  -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -msoft-float -mregparm=3 -freg-struct-return -march=i586 -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-omit-frame-pointer -fno-optimize-sibling-calls -pg -I/lib/modules/2.6.32-21-generic-pae/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_X86 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(SUPDrv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)"  -c -o /tmp/vbox.0/linux/.tmp_SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
/bin/sh: gcc: not found
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxdrv] Error 2
I also tried this with the 3.2 beta, my results are the exact same.
So what can I do to resolve this?

Re: Problem loading guest os on Kubuntu

Posted: 4. May 2010, 18:21
by dmcgraw
Well, it seems to be complaining that you don't have gcc installed. I would try the following:

Code: Select all

sudo aptitude install build-essential

Re: Problem loading guest os on Kubuntu

Posted: 4. May 2010, 18:55
by jmaque
dmcgraw wrote:Well, it seems to be complaining that you don't have gcc installed. I would try the following:

Code: Select all

sudo aptitude install build-essential
That worked thanks!!
That's what I was thinking the problem (gcc) was when I looked at the log file... But I wasn't too sure, and I didn't want to bork my system trying the wrong things. Also didnt see why on a new install that would have been missing. But oh well, you got it for me.