Page 1 of 1

No /etc/init.d/vboxdrv file

Posted: 19. Feb 2011, 14:57
by Jose Cuervo
Hi,
This is my env:
Host: Windows Vista 32-bit
VirtualBox version:4.0.2
VM: Ubuntu Linux
I have installed following:
#apt-get install dkms
dkms is already the newest version. -OK
#apt-get update
#apt-get upgrade
OK
#sh ./VBoxLinuxAdditions.run
OK
I tried to copy VBoxLinuxAdditions.run to another folder, rename it to VBoxLinuxAdditions-x86.run and then run it, installation finished OK.
#apt-get install linux-headers-$
OK
Then I tried to mount folders and found out that the /etc/init.d/vboxdrv is missing. So when I try to simply check VBoxManage version I get:
root@Morpheus:/# VBoxManage -v
WARNING: The character device /dev/vboxdrv does not exist.
Please install the virtualbox-ose-dkms package and the appropriate
headers, most likely linux-headers-generic.

You will not be able to start VMs until this problem is fixed.
3.2.8_OSEr64453
So I guess my question is how to install virtualbox-ose-dkms package?

Re: No /etc/init.d/vboxdrv file

Posted: 19. Feb 2011, 16:03
by Perryg
So I guess my question is how to install virtualbox-ose-dkms package?
You can't. You simply need to install the guest additions not the full VirtualBox program.
This should help Howto: Install Linux Guest Additions

Re: No /etc/init.d/vboxdrv file

Posted: 19. Feb 2011, 22:28
by Jose Cuervo
Done that already,
#sh ./VBoxLinuxAdditions.run
installs mounted guest additions.

Re: No /etc/init.d/vboxdrv file

Posted: 19. Feb 2011, 22:38
by Perryg
All that is needed in the Ubuntu guest is the proper packages to be able to install the guest additions.

Code: Select all

sudo apt-get install dkms build-essential linux-headers-generic
then you install the guest additions as sudo and reboot the guest.

Re: No /etc/init.d/vboxdrv file

Posted: 20. Feb 2011, 01:36
by Jose Cuervo
root@Morpheus:/# sudo apt-get install dkms build-essential linux-headers-genericReading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
dkms is already the newest version.
linux-headers-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

The problem is that it's reporting that everything is ok. I have installed linux guest addition from /media/VBOXADDITIONS_4.0.2_69518/VBoxLinuxAdditions.run that is mounted on desktop when you go to Devices->Install Guest Additions.
I guess I could try to install everything again, starting from VirtualBox, but it just doesn't make sense.

Re: No /etc/init.d/vboxdrv file

Posted: 20. Feb 2011, 01:51
by Perryg
Just running the file will not work. You have to run it as sudo.
Open a terminal and type sudo -i
that will give you a terminal that is elevated so you can install the guest additions.
Then cd to the file and run it.

Re: No /etc/init.d/vboxdrv file

Posted: 24. Mar 2011, 19:59
by impasserby
i got the same problem with you and finally i solved it!
we should install virtualbox-ose-guest-dkms : "This package provides the source code for the virtualbox guest addition kernel"
what i did is:
1) uninstall virtualbox-ose-dkms
2) install virtualbox-ose-guest-dkms
3) reboot the guest system

then it works, it mounts the shared folder during boot