PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 27, 2012, 12:49:24 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: After Kernel Update, Virtual Box Will Not Work. Needs Update. <SOLVED>  (Read 1217 times)
n8xk
Full Member
***
Offline Offline

Posts: 56



« on: August 11, 2011, 09:37:32 PM »

After a kernel update I found that Virtual Box will not work and needs to be updated.

The dialog box says "kernel driver not installed (rc=-1908), and that I should reinstall the kernel module by running as root the following: /etc/init.d/vboxdrv setup
Is this this the best way to update, or should I run "Get Virtual Box" again?

I am concerned when I update, I will have to reinstall the two OS's that I currently have installed on Virtual Box.
Can the .vdi files be saved and reinstalled on the updated VB?

n8xk
Logged
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5710


I don't do Windows


« Reply #1 on: August 11, 2011, 09:44:21 PM »

You need to reboot. You should have a DKMS module installed for VBox already. On reboot, it should insert into the new kernel.

Logged

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378
YouCanToo
PCLinuxOS Tester
Hero Member
*******
Online Online

Posts: 4251


Location: Lebanon, OR., USA


WWW
« Reply #2 on: August 11, 2011, 11:18:46 PM »

After a kernel update I found that Virtual Box will not work and needs to be updated.

The dialog box says "kernel driver not installed (rc=-1908), and that I should reinstall the kernel module by running as root the following: /etc/init.d/vboxdrv setup
Is this this the best way to update, or should I run "Get Virtual Box" again?

Try doing just what it said to do and it will work!

Quote
I am concerned when I update, I will have to reinstall the two OS's that I currently have installed on Virtual Box.
Can the .vdi files be saved and reinstalled on the updated VB?

n8xk[/color][/color]

Before jumping to conclusions about what may or may not be, try doing just what it said to do.  You might find that it works!
Logged





Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!
n8xk
Full Member
***
Offline Offline

Posts: 56



« Reply #3 on: August 12, 2011, 09:37:58 PM »

Tried to reboot first and have the same problem. I then ran /etc/init.d/vboxdrv setup and this was the result:

[n8xk@localhost ~]$ su
Password:
[root@localhost n8xk]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules                              [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules                 [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS
Error! Bad return status for module build on kernel: 2.6.38.8-pclos1.bfs (i586)
Consult the make.log in the build directory
/var/lib/dkms/vboxhost/3.2.12/build/ for more information.
                                                                [FAILED]
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules                           [FAILED]
  (Look at /var/log/vbox-install.log to find out what went wrong)


Tried to look at /var/log/vbox-install.log and got:

[root@localhost n8xk]#  /var/log/vbox-install.log
bash: /var/log/vbox-install.log: Permission denied


If I boot into the old kernel, VB works as it should. The reason I updated the kernel is the system will sometimes crash during boot with the old kernel. With the new kernel, boot up is fine but VB is broken.

Logged
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5710


I don't do Windows


« Reply #4 on: August 12, 2011, 11:27:01 PM »

n8xk,

That's odd. I've never seen it fail like that before. First time for everything, I guess.

Rerun getvirtualbox. It should recreate the DKMS kernel module. Reboot immediately after VirtualBox is reinstalled. If there's a boot splash screen, press the Escape key at the prompt to see the boot messages and verify that a kernel module does build.

You won't have to reinstall any VMs, and the installation process won't erase any of them.

Logged

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378
Rudge
Hero Member
*****
Offline Offline

Posts: 7778


I'm just a dog.


« Reply #5 on: August 13, 2011, 12:29:31 AM »

Were you booted into the "current" kernel when you did the /etc/init.d/vboxdrv setup?

Don't try this from the old kernel.
Logged

AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #6 on: August 13, 2011, 03:33:39 AM »

/var/lib/dkms/vboxhost/3.2.12/build/ for more information.

You need to update your virtualbox installation. Should be 4.0.12 actually.

AS
Logged
Old-Polack
Administrator
Hero Member
*****
Online Online

Posts: 9695


----IOFLU----


« Reply #7 on: August 13, 2011, 03:45:15 AM »

/var/lib/dkms/vboxhost/3.2.12/build/ for more information.

You need to update your virtualbox installation. Should be 4.0.12 actually.

AS

Good catch.  Grin Grin
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4139

Have a nice ... night!


« Reply #8 on: August 13, 2011, 03:56:47 AM »

/var/lib/dkms/vboxhost/3.2.12/build/ for more information.

You need to update your virtualbox installation. Should be 4.0.12 actually.

AS

Good catch.  Grin Grin

The advantage of being late to the party!  Cheesy Grin
Logged
menotu
PCLinuxOS Tester
Super Villain
*******
Offline Offline

Posts: 11991

┌∩┐(◕_◕)┌∩┐


« Reply #9 on: August 13, 2011, 07:32:10 AM »

Quote
I will have to reinstall the two OS's that I currently have installed on Virtual Box.
Can the .vdi files be saved and reinstalled on the updated VB?

Yes, they are separate files which can be used again and again;  If you set up a new VM you can simply point it to the VDI file and voila.  All it basically does is mimic being a real hard drive.

I find it worthwhile making copies of them and storing them on a backup drive/partition etc....

You can also export the whole VM which can then be imported into another machine and so on but I personally find the VDI copy far simpler.
Logged

If you can keep you head while all around you are losing theirs, then you have misunderstood the situation.

PCLinuxOS 32bit & 64bit; 3.2.17bfs kernel, KDE 4.8.3; nvidia 295.53, Athlon 64 X2 4200+; 4GB Ram; NVidia GeForce 8400GS 1GB; x.org 1.10.4 ; 500GB/320GB
n8xk
Full Member
***
Offline Offline

Posts: 56



« Reply #10 on: August 13, 2011, 08:10:40 AM »

 Will post results later when I return home from helping a friend with a work project.

Thanks for all the replies.

n8xk
Logged
n8xk
Full Member
***
Offline Offline

Posts: 56



« Reply #11 on: August 14, 2011, 07:50:49 AM »

After running "Get Virtual Box" and installing the latest version everything is working again.

Did not have to reinstall any OS to VB, that was my concern because a certain non Linux OS is a big hassle to install.

Glad to know the .vdi file can be saved and reinstalled. I will add those files to my back up.

Thanks for all the help, the PCLOS forum is a fantastic group.

n8xk
Logged
djohnston
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 5710


I don't do Windows


« Reply #12 on: August 14, 2011, 07:54:33 AM »

Good to have you here, n8xk. Please edit your first post to include SOLVED in the title.
Logged

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM