LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   problem with /etc/init.d/vboxdrv setup (https://www.linuxquestions.org/questions/linux-software-2/problem-with-etc-init-d-vboxdrv-setup-798449/)

brucehinrichs 03-28-2010 11:39 AM

problem with /etc/init.d/vboxdrv setup
 
Hi all,
I installed virtualbox, checked that I have kernel headers, kernel source, and build-essential. I go through the Create New Virtual Machine Wizard and the Create New Virtual Disk dialogue. I then open File>>Virtual Disk Manager and add the iso image I want to load on the VM (happens to be ubuntu-netbook-remix-9.10). When I try to power up the VM i get two error boxes:

Failed to open a session for the virtual machine
ubuntu910netbook
Code:

Virtual machine 'ubuntu910netbook' has terminated unexpectedly during startup.


Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Machine
Interface:
IMachine {1e509de4-d96c-4f44-8b94-860194f710ac}

and:

Code:

VERR_VM_DRIVER_NOT_INSTALLED (rc=-1908)

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

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu or Fedora should install the DKMS package at first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.

So I fire up a terminal:

Code:

[bruce@Frank2 ~]$ su
Password:
[root@Frank2 bruce]# /etc/init.d/vboxdrv setup
 * Stopping VirtualBox kernel module                                                                *  done.
 * Recompiling VirtualBox kernel module
 * Look at /var/log/vbox-install.log to find out what went wrong
[root@Frank2 bruce]#

then:

Code:

[root@Frank2 bruce]# cat /var/log/vbox-install.log
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.32-1-mepis64-smp/build SUBDIRS=/var/tmp/vbox.0 SRCROOT=/var/tmp/vbox.0 modules                                                                               
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-1-mepis64-smp'                         
make -C /usr/src/linux-headers-2.6.32-1-mepis64-smp \     

...

-D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)"  -c -o /var/tmp/vbox.0/linux/SUPDrv-linux.o /var/tmp/vbox.0/linux/SUPDrv-linux.c
/var/tmp/vbox.0/linux/SUPDrv-linux.c: In function 'VBoxDrvLinuxCreate':
/var/tmp/vbox.0/linux/SUPDrv-linux.c:650: error: 'struct task_struct' has no member named 'euid'
/var/tmp/vbox.0/linux/SUPDrv-linux.c:663: error: 'struct task_struct' has no member named 'uid'
/var/tmp/vbox.0/linux/SUPDrv-linux.c:664: error: 'struct task_struct' has no member named 'gid'
make[4]: *** [/var/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[3]: *** [_module_/var/tmp/vbox.0] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-1-mepis64-smp'
make: *** [vboxdrv] Error 2

I searched the forums, found this post which seems to be related, but not the same. (Tried google, too without much luck).
Any help is appreciated, as this is my first try at VMs.

EDIT: almost forgot: I'm trying this on MEPIS 8.5.00-rc3_64, kernel version 2.6.32-1-mepis64-smp

brucehinrichs 03-28-2010 12:12 PM

I just realized this thread should probably be in virtualization. Could a moderator move it for me, if appropriate, please? :doh:

brucehinrichs 03-28-2010 03:54 PM

Nevermind, solved.

Hammett 03-28-2010 05:49 PM

It would be nice if you can post how did you solve it, so other users sharing the same problem can follow your steps.

Thanks!

brucehinrichs 03-28-2010 08:32 PM

I removed virtualbox through Synaptic (Mark for Complete Removal) and followed the guide for Mepis 8 here. Worked like a charm!


All times are GMT -5. The time now is 06:30 AM.