Author Topic: After Kernel Update, Virtual Box Will Not Work. Needs Update. <SOLVED>  (Read 2283 times)

Offline n8xk

  • Full Member
  • ***
  • Posts: 55
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
« Last Edit: August 14, 2011, 06:51:43 AM by n8xk »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #1 on: August 11, 2011, 08: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.

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

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5383
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #2 on: August 11, 2011, 10: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!




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline n8xk

  • Full Member
  • ***
  • Posts: 55
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #3 on: August 12, 2011, 08: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.


Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #4 on: August 12, 2011, 10: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.

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

Offline Rudge

  • Hero Member
  • *****
  • Posts: 9773
  • I'm Just A Dog.
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #5 on: August 12, 2011, 11:29:31 PM »
Were you booted into the "current" kernel when you did the /etc/init.d/vboxdrv setup?

Don't try this from the old kernel.


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #6 on: August 13, 2011, 02: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

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11688
  • ----IOFLU----
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #7 on: August 13, 2011, 02: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.  ;D ;D
Old-Polack

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



Lest we forget...

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #8 on: August 13, 2011, 02: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.  ;D ;D

The advantage of being late to the party!  :D ;D

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15515
  • ┌∩┐(◕_◕)┌∩┐
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #9 on: August 13, 2011, 06: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.
PCLinuxOS 32bit KDE 4.10.4; kernel-3.4.11-pclos1.bfs & 64bit 3.4.38bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline n8xk

  • Full Member
  • ***
  • Posts: 55
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #10 on: August 13, 2011, 07: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

Offline n8xk

  • Full Member
  • ***
  • Posts: 55
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update.
« Reply #11 on: August 14, 2011, 06: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
« Last Edit: August 14, 2011, 06:52:37 AM by n8xk »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6224
  • I don't do Windows
Re: After Kernel Update, Virtual Box Will Not Work. Needs Update. <SOLVED>
« Reply #12 on: August 14, 2011, 06:54:33 AM »
Good to have you here, n8xk. Please edit your first post to include SOLVED in the title.
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