Page 1 of 1

Virtualbox 4

Posted: Tue Feb 22, 2011 3:39 pm
by madwoollything
I noticed that after a recent update that virtualbox-ose had been upgraded to the latest version 4.0.2
I've tried running virtualbox but with no success and went back to version 3.2 the non-free version in the repos. All is now fine.

The question is, has anyone got virtualbox 4 running on LMDE and what do you need to do to get it to work?
(I googled the various error messages I was receiving but only got links to old Ubuntu posts and nothing on LMDE)

Thanks

Re: Virtualbox 4

Posted: Tue Feb 22, 2011 5:07 pm
by Habitual

Re: Virtualbox 4

Posted: Tue Feb 22, 2011 5:22 pm
by Aging Technogeek
Go to the Oracle Virtualbox download page here

http://www.virtualbox.org/wiki/Linux_Downloads

and either get the .deb package for Debian Squeeze or copy the repo from farther down the page into your sources.list and install Vbox 4.04 from Package Manager.

I recommend the second course as this will provide you with updates via mint Update as they become available (that's how I got version 4.04)

BTW, Virtualbox 4.xx runs great on LMDE as long as you get the proper (Debian) package.

Re: Virtualbox 4

Posted: Tue Feb 22, 2011 5:23 pm
by kwevej
I'm running the latest version obtained from the repos.
Was there any error message?

Re: Virtualbox 4

Posted: Wed Feb 23, 2011 4:33 am
by marlar
I am running VirtualBox 4 too and it works great. I especially like the ability to put a shortcut to a VM on the desktop.

I used the deb package for the Oracle version.

Re: Virtualbox 4

Posted: Wed Feb 23, 2011 8:49 am
by gosa
Aging Technogeek wrote:Go to the Oracle Virtualbox download page here

http://www.virtualbox.org/wiki/Linux_Downloads

and either get the .deb package for Debian Squeeze or copy the repo from farther down the page into your sources.list and install Vbox 4.04 from Package Manager.

I recommend the second course as this will provide you with updates via mint Update as they become available (that's how I got version 4.04)

BTW, Virtualbox 4.xx runs great on LMDE as long as you get the proper (Debian) package.
I went down the same path with adding the repositories and installing yesterday, and have no problems so far. I have Windows XP installed in a VM and I'm in the process of installing a few programs that I still haven't found good (for me) Linux alternatives for...

A thing worth mentioning if downloading from the webpage is that the "extension"-package that gives support for (among other things) USB 2 is a general package located one "level up" (http://www.virtualbox.org/wiki/Downloads) from the above link.
- Maybe that's just me, but I didn't find these extensions in my Software manager, so I downloaded those directly instead...

Re: Virtualbox 4

Posted: Wed Feb 23, 2011 9:21 am
by madwoollything
kwevej wrote:I'm running the latest version obtained from the repos.
Was there any error message?
Error message when trying to use upgraded version of virtualbox:

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. Please reinstall the kernel module by executing '/etc/init.d/vboxdrv setup' as root.

Re: Virtualbox 4

Posted: Wed Feb 23, 2011 12:20 pm
by Habitual
kernel-headers installed?

Code: Select all

uname -r
kernel-headers package should match that result.

What does

Code: Select all

sudo /etc/init.d/vboxdrv setup
report?

Re: Virtualbox 4

Posted: Thu Feb 24, 2011 4:44 am
by tacoz
madwoollything wrote:The question is, has anyone got virtualbox 4 running on LMDE and what do you need to do to get it to work?
For sure! But then I use the deb from the Oracle site rather... you don't want to be using the OSE versions if USB connections are necessary.

Code: Select all

 $ dpkg -l virtual*
||/ Name                       Version                                               Description
+++-==================================================
un  virtualbox               <none>                                             (no description available)
ii  virtualbox-4.0           4.0.4-70112~Debian~squeeze          Oracle VM VirtualBox
un  virtualbox-ose        <none>                                             (no description available)

Re: Virtualbox 4

Posted: Fri Feb 25, 2011 12:44 pm
by madwoollything
Habitual wrote:kernel-headers installed?

Code: Select all

uname -r
kernel-headers package should match that result.

What does

Code: Select all

sudo /etc/init.d/vboxdrv setup
report?
kernel-headers are installed and match uname -r

sudo /etc/ini.d/vboxdrv setup does not report anything.

Re: Virtualbox 4

Posted: Sat Feb 26, 2011 12:46 am
by Aging Technogeek
What

Code: Select all

 sudo /etc/init.d/vboxdrv setup
should do is rebuild your Virtualbox kernel modules. You should see something like this

Code: Select all

* Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ] 
 * Trying to register the VirtualBox kernel modules using DKMS           [ OK ] 
 * Starting VirtualBox kernel modules                                    [ OK ]

Re: Virtualbox 4

Posted: Sat Feb 26, 2011 3:33 pm
by madwoollything
I have followed the advice of installing 4.0.4 from Oracle and it works however ....

after a reboot I get the following message:

"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. Please reinstall 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."

If I run the vboxdrv setup then I get the following:

"$ sudo /etc/init.d/vboxdrv setup
[sudo] password for ian:
Stopping VirtualBox kernel modules:.
Uninstalling old VirtualBox DKMS kernel modules:.
Trying to register the VirtualBox kernel modules using DKMS:.
Starting VirtualBox kernel modules:."

Then all works again. What is failing to load at startup?

Maybe the problems I've been having with 4.0.4 are linked with 4.0.2?

Re: Virtualbox 4

Posted: Sat Feb 26, 2011 3:35 pm
by Habitual
re: "4.0.4 are linked with 4.0.2"

You have both installed?

Re: Virtualbox 4

Posted: Sun Feb 27, 2011 5:02 am
by madwoollything
Habitual wrote:re: "4.0.4 are linked with 4.0.2"

You have both installed?
No.
I first installed 4.0.2 which would not run.
I then went back to 3.2 which worked fine (removing 4.0.2)
Finally removed 3.2 and installed 4.0.4 from Oracle site.

4.0.4 runs after running '/etc/init.d/vboxdrv setup' after each reboot of the host machine

Re: Virtualbox 4

Posted: Sun Feb 27, 2011 1:54 pm
by ScoobyDan
madwoollything wrote:4.0.4 runs after running '/etc/init.d/vboxdrv setup' after each reboot of the host machine
madwoollything,

How did you install VirtualBox 4.0.4? Via the direct download, or via the Oracle repository?

I had the same problem as you when I used the version from Debian's repository (3.2). I then went to the VirtualBox site, and added the VirtualBox repository to my sources.list:

Code: Select all

deb http://download.virtualbox.org/virtualbox/debian squeeze contrib
This then replaced 3.2 with 4.0.4(-70112~Debian~squeeze, to be precise), which works every time without a glitch.

Worth a try?

Daniel

Re: Virtualbox 4

Posted: Sun Feb 27, 2011 3:04 pm
by madwoollything
ScoobyDan wrote:
madwoollything wrote:4.0.4 runs after running '/etc/init.d/vboxdrv setup' after each reboot of the host machine
madwoollything,

How did you install VirtualBox 4.0.4? Via the direct download, or via the Oracle repository?

I had the same problem as you when I used the version from Debian's repository (3.2). I then went to the VirtualBox site, and added the VirtualBox repository to my sources.list:

Code: Select all

deb http://download.virtualbox.org/virtualbox/debian squeeze contrib
This then replaced 3.2 with 4.0.4(-70112~Debian~squeeze, to be precise), which works every time without a glitch.

Worth a try?

Daniel
Thanks but I used the Oracle repository as you did (to replace 3.2 from the mint repos) and have to run '/etc/init.d/vboxdrv setup' after each reboot with version 4.0.4

Re: Virtualbox 4

Posted: Fri Mar 04, 2011 2:57 pm
by madwoollything
Help .... :!:

I've gone back to virtualbox 3.2 hoping that that would solve the problem ..... but no.
Something is messed up and after each reboot when I launch virtualbox I get the same error message as before (see below).

Anyone an bright ideas on how I can fix this?

(I've completely removed virtualbox via synaptic and then reinstalled, but this does not appear to have made any difference. DKMS is installed.
I don't want to have to do a full re-install of LMDE just to get virtualbox working again)

----------------------------------------------------------------

"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. Please reinstall 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."

Re: Virtualbox 4

Posted: Thu Mar 10, 2011 4:16 pm
by marlar
madwoollything wrote: (I've completely removed virtualbox via synaptic and then reinstalled, but this does not appear to have made any difference. DKMS is installed.
I don't want to have to do a full re-install of LMDE just to get virtualbox working again)
Did you also remove all configuration files? They typically reside in ~/.VirtualBox

You can also try to purge the program:

Code: Select all

sudo aptitude purge virtualbox-3.2