Virtualbox VM won't start after kernel upgrade

Discussions related to using VirtualBox on Linux hosts.

Virtualbox VM won't start after kernel upgrade

Postby onero » 29. May 2007, 13:13

Am using Feisty 7.04, and previously I was using a Windows XP guest on Virtualbox with no problems. Today, the update notifier informed me that there were updates to the kernel, so I went ahead and updated. I was previously using the low-latency 2.6.20.15 kernel, and when I upgraded and rebooted, I used the low-latency 2.6.20.16 kernel. I logged into Ubuntu and everything was fine, but when I started my Windows XP VM, I got an error saying:


VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing '/etc/init.d/vboxdrv setup' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).


I tried to run /etc/init.d/vboxdrv setup, but when I did, I got this error in vbox-install.log:

Makefile:73: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.. Stop.


Any idea what I should do? I don't know where to specify the kernel directory, and even if I did I wouldn't know what directory to put. Thanks.
onero
 
Posts: 5
Joined: 29. May 2007, 13:04

Postby trekfan1 » 29. May 2007, 13:41

On kernel update it necessary to reinstall virtualbox
trekfan1
 
Posts: 78
Joined: 13. May 2007, 07:22
Location: Italy
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

I did reinstall....

Postby onero » 29. May 2007, 13:46

I uninstalled VirtualBox and then reinstalled, but duribng the installation process I got the same error about the kernel directory not being set :( Would you know where / how I can set this?
onero
 
Posts: 5
Joined: 29. May 2007, 13:04

Solved the issue....

Postby onero » 29. May 2007, 14:11

Someone solved the issue for me in the Ubuntu Forums, but just in case anyone has the same problem, here is the solution:

You must install the kernel headers matching the new kernel :

Code:

sudo apt-get install linux-headers-$(uname -r)

Then just run

Code:

sudo /etc/init.d/vboxdrv setup

and you should be fine. No need to reinstall anything.
onero
 
Posts: 5
Joined: 29. May 2007, 13:04

Postby trekfan1 » 29. May 2007, 21:44

thx for the info
trekfan1
 
Posts: 78
Joined: 13. May 2007, 07:22
Location: Italy
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Postby ettienne » 30. May 2007, 18:46

Thank you for the post, you saved my life. 8)
ettienne
 
Posts: 28
Joined: 19. May 2007, 19:44
Location: Orlando, FL USA
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: WinXP, Win2003, Win2008, Ubuntu

A Little More Help Needed

Postby dstark » 28. Apr 2008, 21:06

Hi, all.

I'm very new to Linux (like today :)), and I'm trying to setup virtualbox under Ubuntu 8.04. The installation went fine, and the following is the text from the Konsole window where I tried to perform the steps outlined in this thread.
Code: Select all   Expand viewCollapse view
dstark@dstark-laptop:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.24-16-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dstark@dstark-laptop:~$ sudo /etc/init.d/vboxdrv setup
 * Usage: /etc/init.d/vboxdrv {start|stop|restart|status}
dstark@dstark-laptop:~$

Virtualbox, however, still doesn't work. So, obviously I'm missing something. Could anyone tell me what I should be doing? (Preferably in small words and explicit steps ;-)).

Thanks so much!
dstark
 
Posts: 1
Joined: 28. Apr 2008, 21:00

Re: A Little More Help Needed

Postby Sasquatch » 28. Apr 2008, 23:06

dstark wrote:Hi, all.

I'm very new to Linux (like today :)), and I'm trying to setup virtualbox under Ubuntu 8.04. The installation went fine, and the following is the text from the Konsole window where I tried to perform the steps outlined in this thread.
Code: Select all   Expand viewCollapse view
dstark@dstark-laptop:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.24-16-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
dstark@dstark-laptop:~$ sudo /etc/init.d/vboxdrv setup
 * Usage: /etc/init.d/vboxdrv {start|stop|restart|status}
dstark@dstark-laptop:~$

Virtualbox, however, still doesn't work. So, obviously I'm missing something. Could anyone tell me what I should be doing? (Preferably in small words and explicit steps ;-)).

Thanks so much!

You don't say what the problem exactly is, but I suggest to uninstall Virtualbox if you installed it from the packages on the site (so not the OSE version from the repo) and pick the Hardy version. You can find the hardy package on this page: http://www.virtualbox.org/download
If you installed VB from the repositories, then make sure that you installed all the needed packages. Use Synaptic Packet Manager and install the correct packages needed for your kernel version. This is most likely the Generic build.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: CarbonPepper, NajiB and 26 guests