'/etc/init.d/vboxdrv setup'

Discussions related to using VirtualBox on Linux hosts.
kog
Posts: 11
Joined: 12. May 2009, 23:09
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows XP SP3

'/etc/init.d/vboxdrv setup'

Post by kog »

x_X
I saw this question already being asked on this thread: http://forums.virtualbox.org/viewtopic.php?f=7&t=17528 However, this didn't work for me. I am a complete linux n00b so could someone please explain howto fix this error (I will post the error here aswell):
I upgraded to ubuntu 8.10 and got a message on VB saying to upgrade to 2.2.2, I did and when I try to boot my os, I get these errors:

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. Re-setup 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.
AND

Code: Select all

Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
Machine
Interface: 
IMachine {13420cbb-175a-4456-85d0-301126dfdec7}
Before anyone says the answer is right in front of me, I have tried installing DKMS, and I have tried running "'/etc/init.d/vboxdrv setup'" as root.

Thanks for your help
~Kog
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: '/etc/init.d/vboxdrv setup'

Post by Perryg »

Ah,,, but did you update the kernel-headers? :wink:
sudo apt-get install linux-headers-$(uname -r)
Then try the vboxdrv setup.
kog
Posts: 11
Joined: 12. May 2009, 23:09
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows XP SP3

Re: '/etc/init.d/vboxdrv setup'

Post by kog »

Code: Select all

koglaa@baka-laptop:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package linux-headers-2.6.24-16-generic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package linux-headers-2.6.24-16-generic has no installation candidate
koglaa@baka-laptop:~$ 
Doesn' seem good D:
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: '/etc/init.d/vboxdrv setup'

Post by Perryg »

Try this in terminal
  • sudo apt-get update
    then
  • apt-get upgrade
    This will make sure that you have all of the newest files.
    then do the
  • sudo apt-get install linux-headers-$(uname -r)
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: '/etc/init.d/vboxdrv setup'

Post by Sasquatch »

And you need the build-essential too. I have a howto for the Guest Additions in the Linux Guests. The pre-requirements are the same for the kernel module on a linux Host.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
kog
Posts: 11
Joined: 12. May 2009, 23:09
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows XP SP3

Re: '/etc/init.d/vboxdrv setup'

Post by kog »

DX Still doesn't work...
Same error as before
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: '/etc/init.d/vboxdrv setup'

Post by Sasquatch »

DX? As in DirectX? Did you even check the changelog and manual? Only OpenGL is supported. What is your problem exactly? First you come with issues about compiling the kernel module, now you mention DX. This is becoming quite confusing.

You can always download the header packages from http://packages.ubuntu.com and install them using gdebi or dpkg.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
kog
Posts: 11
Joined: 12. May 2009, 23:09
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows XP SP3

Re: '/etc/init.d/vboxdrv setup'

Post by kog »

Lol, sorry for the confusion, I meant "DX" as a smiley as in :evil:
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: '/etc/init.d/vboxdrv setup'

Post by Sasquatch »

If you want to use smilies, use the one supplied by the board. Using ascii smilies like those, that are also abbreviations of certain computer terms, makes things only more confusing.

Anyway, there are plenty of things you can do. One thing you need to do, is check if the proper repositories are enabled. You need main, multiverse and universe to get the headers and build tools. Those are enabled by default. Get a new sources.list file from the before mentioned URL if you are missing any.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
kog
Posts: 11
Joined: 12. May 2009, 23:09
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows XP SP3

Re: '/etc/init.d/vboxdrv setup'

Post by kog »

x_X I went to the site, clicked on my version of linux and didn't find any sources.list. As mentioned in the first post I'm a complete linux noob.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: '/etc/init.d/vboxdrv setup'

Post by Sasquatch »

As a complete newbie, I suggest you grab some books, read the help docs on the Ubuntu site (help.ubuntu.com) and other similar sources of information.
On the package site, you can search for packages which you can then download and install manually.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
boercjd
Posts: 2
Joined: 15. May 2009, 21:37
Primary OS: Ubuntu 8.04
VBox Version: OSE Debian
Guest OSses: XP

Re: '/etc/init.d/vboxdrv setup'

Post by boercjd »

I had the same problem. I know nothing from Linux or Ubuntu but with the help of this topic I fix the problem. However I had to make some corrections and add a little bit for all the n00b's like me.

* sudo apt-get update
then
* sudo apt-get upgrade
This will make sure that you have all of the newest files.
then do the
* sudo apt-get install linux-headers-$(uname -r)
and finally you have to do this
* sudo /etc/init.d/vboxdrv setup
I didn try it without sudo in front, but maybe that is possible too.
kog
Posts: 11
Joined: 12. May 2009, 23:09
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows XP SP3

Re: '/etc/init.d/vboxdrv setup'

Post by kog »

Nope didn't work... Or am I meant to restart after the sudo apt-get upgrade?
boercjd
Posts: 2
Joined: 15. May 2009, 21:37
Primary OS: Ubuntu 8.04
VBox Version: OSE Debian
Guest OSses: XP

Re: '/etc/init.d/vboxdrv setup'

Post by boercjd »

I didn't reboot at all. I have no idea what's wrong. I'm sorry
I can't help you.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: '/etc/init.d/vboxdrv setup'

Post by Perryg »

How many kernels do you have listed when you boot the machine? Press escape as soon as you boot and post the results here.
What is the default boot kernel?
Post Reply