PDA

View Full Version : [ubuntu] How Do I Recompile the Kernel



HDTimeshifter
November 16th, 2008, 07:20 AM
I installed Virtualbox, but when I try to start it, it complains that I need to disable the KVM kernel extension and recompile the kernel. I removed the KVM kernel in Synaptic Package Manager, but I don't know how to recompile the kernel.

Here is the error message:


VirtualBox can't operate in VMX root mode. Please disable the KVM kernel extension, recompile your kernel and reboot.
VBox status code: -4011 (VERR_VMX_IN_VMX_ROOT_MODE).


Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Console
Interface:
IConsole {e3c6d4a1-a935-47ca-b16d-f9e9c496e53e}

Partyboi2
November 16th, 2008, 12:11 PM
You may not have to recompile your kernel according to this (http://www.thesigb.com/weblog/2008/oct/28/virtualbox-and-kvm-conflict/) you may only need to

sudo /etc/init.d/kvm stop

HDTimeshifter
November 19th, 2008, 04:38 AM
Thanks, that worked. However, when I logged off Ubuntu, rebooted and re-logged in, it looks like KVM reloaded I have to unload the KVM module again to start Virtualbox. In Synaptic Package Manager, it looks like all the KVM stuff is not installed. Do you know what to do to keep KVM from loading on startup?

Partyboi2
November 19th, 2008, 07:56 AM
When you removed it from Synaptic did you purge (https://help.ubuntu.com/community/KVM#Removing%20KVM)it?
Here is another thread talking about it.
http://backports.ubuntuforums.com/showthread.php?t=824795

Nandro3
October 25th, 2009, 03:28 AM
I have the same error but I have no /etc/init.d/kvm . So if there is no KVM file or Dir whats making that happen?

thgruiz
May 21st, 2010, 09:17 PM
guys....

apt-get remove qemu-kvm

on
Linux user-laptop 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux

1script
November 17th, 2010, 01:42 AM
In my case (virtualBox 3.2.10 r66523 on Ubuntu 10.04 LTS) just "sudo apt-get remove qemu-kvm" did not work

But this did:

sudo aptitude remove qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils
Apparently bridge-utils was still hanging in there and VirtualBox would not work until I remove it...

stanz
January 24th, 2011, 07:05 AM
In my case (virtualBox 3.2.10 r66523 on Ubuntu 10.04 LTS) just "sudo apt-get remove qemu-kvm" did not work

But this did:

sudo aptitude remove qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utilsApparently bridge-utils was still hanging in there and VirtualBox would not work until I remove it...

Wow..this is going on for awhile!!
Glad to see {upper post} someone on laptop has it working..many posts say 'no way'.
I'm gonna try this also...the 'bridge-utils' is new.
Will post back results!

stanz
January 25th, 2011, 01:10 AM
Success !!
I made sure first, that anything 'kvm & qemu' was not installed.
Found 'bridge-utils' & un-installed that also.

Ran in terminal:
~$ lsmod | grep -i kvm
kvm_amd 37070 0
kvm 286367 1 kvm_amd

~$ sudo modprobe -r kvm-amd (should return nothing!)
~$ lsmod | grep -i kvm (again, should return nothing.)

Then I opened: /etc/modprobe.d
And 'as Root' edited the 'blacklist.conf' file by adding: blacklist kvm_amd

Rebooted and fired up VBox-4 with no more errors!!