LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   VirtualBox OSE won't run (http://www.linuxquestions.org/questions/linux-software-2/virtualbox-ose-wont-run-718103/)

alkanetexe 04-09-2009 10:24 PM

VirtualBox OSE won't run
 
I'm attempting to get VirtualBox OSE to run. I installed it with Synaptic, created a VM, and tried to start it. This came up:

Quote:

Virtual machine 'Win98box' has terminated unexpectedly during startup.


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

Quote:

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.
I've searched for this extensively but nobody seems to have my problem. The solution I've found is to enter these commands into the terminal:

sudo aptitude update
wget http://download.virtualbox.org/virtu...repid_i386.deb
sudo dpkg -i virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb
sudo aptitude reinstall dkms
sudo /etc/init.d/vboxdrv setup

But when I get to the sudo dpkg... part here's the terminal output:

Quote:

user@computer ~ $ sudo dpkg -i virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb
dpkg: error processing virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb
And the rest of the process doesn't work at all.

Does anybody know what I'm doing wrong?

AlucardZero 04-10-2009 10:56 AM

Did you do /etc/init.d/vboxdrv setup?? And is DKMS installed??

The latter error is because your wget failed, of couse the next steps will fail. Whatydid wget say?

alkanetexe 04-10-2009 06:26 PM

The wget outputs this:

Quote:

user@computer ~ $ wget http://download.virtualbox.org/virtu...repid_i386.deb
--2009-04-10 17:21:12-- http://download.virtualbox.org/virtu...repid_i386.deb
Resolving download.virtualbox.org... 72.5.124.114
Connecting to download.virtualbox.org|72.5.124.114|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://dlc-cdn.sun.com/virtualbox/2....repid_i386.deb [following]
--2009-04-10 17:21:13-- http://dlc-cdn.sun.com/virtualbox/2....repid_i386.deb
Resolving dlc-cdn.sun.com... 68.142.122.120, 68.142.121.6
Connecting to dlc-cdn.sun.com|68.142.122.120|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://dlc-cdn-rd.sun.com/c1/virtual...ee69c2d586bb57 [following]
--2009-04-10 17:21:13-- http://dlc-cdn-rd.sun.com/c1/virtual...ee69c2d586bb57
Resolving dlc-cdn-rd.sun.com... 68.142.121.172, 68.142.122.72
Connecting to dlc-cdn-rd.sun.com|68.142.121.172|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 33282208 (32M) [application/x-debian-package]
Saving to: `virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb?e=1239402373&h=7fb1d817b56532b117ee69c2d586bb57'

100%[======================================>] 33,282,208 1017K/s in 38s

2009-04-10 17:21:51 (865 KB/s) - `virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb?e=1239402373&h=7fb1d817b56532b117ee69c2d586bb57' saved [33282208/33282208]

user@computer ~ $
DKMS is installed, and I've reinstalled it several times. When reinstalling, this appears:

Quote:

user@computer ~ $ sudo aptitude reinstall dkms
[sudo] password for alkanetexe:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages will be REINSTALLED:
dkms
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 19 not upgraded.
Need to get 0B/55.5kB of archives. After unpacking 0B will be used.
Writing extended state information... Done
(Reading database ... 105847 files and directories currently installed.)
Preparing to replace dkms 2.0.20.4-0ubuntu2.1 (using .../dkms_2.0.20.4-0ubuntu2.1_all.deb) ...
Unpacking replacement dkms ...
Processing triggers for man-db ...
Setting up dkms (2.0.20.4-0ubuntu2.1) ...
* Running DKMS auto installation service for kernel 2.6.27-11-generic * vboxdrv (2.0.4)... [fail]

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

user@computer ~ $


And as for the /etc/init.d/vboxdrv setup, this is the result:

Quote:

user@computer ~ $ /etc/init.d/vboxdrv
* Usage: /etc/init.d/vboxdrv {start|stop|restart|status}
user@computer ~ $

Quakeboy02 04-10-2009 06:28 PM

Quote:

user@computer ~ $ /etc/init.d/vboxdrv
* Usage: /etc/init.d/vboxdrv {start|stop|restart|status}
user@computer ~ $
You actually have to type the whole thing:
Code:

sudo /etc/init.d/vboxdrv setup

AlucardZero 04-10-2009 06:34 PM

Code:

Saving to: `virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb?e=1239402373&h=7fb1d817b56532b117ee69c2d586bb57'
The filename is different.

alkanetexe 04-11-2009 01:20 AM

Okayokayokay.

I feel like an idiot. My genius friend explained everything to me and now I feel totally stupid for not seeing the problem myself. Thanks for your help, AlucardZero and Quakeboy02.

parkhensley 05-05-2009 10:49 PM

As root /etc/init.d/vboxdrv setup returns the usage phrase: {start|stop|restart|status} and as user sudo /etc/init.d/vboxdrv setup returns the same thing. I can't get this to work. what is wrong? Thanks.

parkhensley 05-06-2009 06:56 PM

vboxdrv setup
 
In attempting to set up Virtualbox, this command is supposed to be run: user@computer ~ $ /etc/init.d/vboxdrv

This is the result regardless if this is entered as root or as user or as sudo:
* Usage: /etc/init.d/vboxdrv {start|stop|restart|status}

What is wrong

Quakeboy02 05-06-2009 07:18 PM

Quote:

Originally Posted by parkhensley (Post 3532665)
In attempting to set up Virtualbox, this command is supposed to be run: user@computer ~ $ /etc/init.d/vboxdrv

This is the result regardless if this is entered as root or as user or as sudo:
* Usage: /etc/init.d/vboxdrv {start|stop|restart|status}

What is wrong

Please open your own threads in the future, rather than tail-ending on another similar one.

The command is precisely what I posted. Nothing more and nothing less.
Code:

sudo /etc/init.d/vboxdrv setup

parkhensley 05-06-2009 10:22 PM

I copied and pasted your line:

sudo /etc/init.d/vboxdrv setup

It just returns the usage {start|stop|restart|status} line. I still need to know what's going on.

Quakeboy02 05-06-2009 10:38 PM

That makes no sense. Have you tried running the restart command, then?

parkhensley 05-07-2009 12:50 AM

This is the result of running

sudo /etc/init.d/vboxdrv restart:

stopping VirtualBox kernel module vboxdrv
starting VirtualBox kernel module vboxdrv
No suitable module for running kernel found.

Quakeboy02 05-07-2009 01:43 PM

OK, apparently we are running different VirtualBox from each other. In mine, there are more options. If you have installed from OSE source, then I think you need to RTFM again and go to where you compile and install the driver. If you have installed from a repository (you don't mention your distro) then you may have to download the driver module separately from your repo. In any case, the problem is that /dev/vboxdrv (i.e. the driver or kernel interface) is missing from your system, and it seems that your init.d script doesn't know how to make it.

parkhensley 05-08-2009 08:40 AM

I am using Mint. Mint provides a link to an installation program for VirtualBox. This is what I was using. Then when that didn't work, I went to the VirtualBox.org site and entered the command that they said would work:

apt-get install gcc g++ bcc iasl xsltproc uuid-dev zlib1g-dev libidl-dev \
libsdl1.2-dev libxcursor-dev libasound2-dev libstdc++5 \
libhal-dev libpulse-dev libxml2-dev libxslt1-dev \
python2.5-dev libqt4-dev qt4-dev-tools libcap-dev \
libxmu-dev mesa-common-dev libglu1-mesa-dev \
linux-kernel-headers

Here everything seems to go fine untill linux-kernel-headers with this message:

Package linux-kernel-headers is a virtual package provided by:
linux-libc-dev 2.6.27-11.31
You should explicitly select one to install.
E: Package linux-kernel-headers has no installation candidate

I don't know if this is the problem or what to do about it if it is. Thanks.

Quakeboy02 05-08-2009 02:13 PM

Did you try installing linux-libc-dev? I don't know anything about Mint, but if you have synaptic, run that and install the linux-headers package for your kernel.


All times are GMT -5. The time now is 08:49 AM.