No /etc/init.d/vboxdrv file

Discussions about using Linux guests in VirtualBox.
Post Reply
Jose Cuervo
Posts: 3
Joined: 18. Feb 2011, 20:24
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Ubuntu Linux

No /etc/init.d/vboxdrv file

Post 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?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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
Jose Cuervo
Posts: 3
Joined: 18. Feb 2011, 20:24
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Ubuntu Linux

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

Post by Jose Cuervo »

Done that already,
#sh ./VBoxLinuxAdditions.run
installs mounted guest additions.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
Jose Cuervo
Posts: 3
Joined: 18. Feb 2011, 20:24
Primary OS: MS Windows Vista
VBox Version: OSE other
Guest OSses: Ubuntu Linux

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

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

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

Post 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.
impasserby
Posts: 1
Joined: 24. Mar 2011, 19:50
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu10.10

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

Post 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
Post Reply