Page 1 of 1

Help! Can't start my virtual machine!

Posted: 27. May 2009, 16:51
by jlburke
Hello,

I did a stupid thing, I ran the app called "Computer Janitor" in Ubuntu Jaunty, and I inadvertently must have erased some virtualbox files I shouldn't have erased. Anyway, the .VirtualBox folder in home is intact, so I went ahead and downloaded the latest virtualbox deb package from the Sun site. I started Vbox and when i try to start my windoze xp virtual machine I get the following message:

Quote:
Kernel driver not installed (rc=-190

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.
I try to run that command as indicated by the message, and get a "command not found" message in the terminal.

I do have DKMS installed and I have reinstalled it, restarted the computer, and nothing is happening.

Please help, I need to use that virtual machine for work.

Thanks.

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 16:59
by Perryg
Did you add you login to the vboxusers group?

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 17:04
by jlburke
I did, like this, and then rebooted. Still nothing.

sudo gpasswd -a juanluis vboxusers

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 17:08
by Perryg
sudo usermod -a -G vboxusers username

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 17:21
by jlburke
Thanks Perry,

I did as told, rebooted, but I still get the "command not found" message. Are there any packages that I might be missing and need to install?

Thanks for your help anyway.

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 17:54
by Perryg
Have you looked and does /etc/init.d/vboxdrv exist?
and if so while in the init.d directory run sudo ./vboxdrv setup and does it give the same reply?

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 18:01
by jlburke
No, it doesn't exist, there is a vboxdrv.dpkg.bak only.

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 18:08
by Perryg
Then the install did not complete correctly. You said that you installed the latest VBox but were there any errors when you installed it? You will need to re-install and watch for errors. Note what they are and repair accordingly.

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 18:14
by Perryg
Also look at the /var/log/vbox-install.log to see what the errors were.

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 18:33
by jlburke
Terry,
I re-installed, there were no mistakes that I could see, and the log file points out no mistakes either, i downloaded the deb file from here: http://www.virtualbox.org/wiki/Linux_Downloads


* Compiling vboxdrv
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxdrv/2.2.2/source ->
/usr/src/vboxdrv-2.2.2

DKMS: add Completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=2.6.28-11-generic -C /lib/modules/2.6.28-11-generic/build M=/var/lib/dkms/vboxdrv/2.2.2/build........

Running the post_build script:
cleaning build area....

DKMS: build Completed.

vboxdrv.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/2.6.28-11-generic/updates/dkms/

depmod....

DKMS: install Completed.
** Compiling vboxnetflt
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxnetflt/2.2.2/source ->
/usr/src/vboxnetflt-2.2.2

DKMS: add Completed.

Kernel preparation unnecessary for this kernel. Skipping...

Running the pre_build script:

Building module:
cleaning build area....
make KERNELRELEASE=2.6.28-11-generic -C /lib/modules/2.6.28-11-generic/build M=/var/lib/dkms/vboxnetflt/2.2.2/build.......
cleaning build area....

DKMS: build Completed.

vboxnetflt.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/2.6.28-11-generic/updates/dkms/

depmod....

DKMS: install Completed.

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 19:32
by jlburke
OK, solved it, sorry for bugging you guys.
The thing was, I had uninstalled "Virtualbox-ose source" from Synaptic since the deb package at first told me that the installation was in conflict with the ose packages. So I went to Synaptic and uninstalled them. Thing is, there are two packages: virtualbox ose and virtualbox ose-source. I wiped them out both.
After tinkering around, I realized I obviously needed the source files.
Thanks for your help.

Re: Help! Can't start my virtual machine!

Posted: 27. May 2009, 20:41
by Sasquatch
When installing the version from the website, you don't want any OSE thing from the Ubuntu repository installed. Remove it, purge it's config, then reinstall the .deb you downloaded. Add the repository for your Debian flavour and you will receive automatic updates too.