PDA

View Full Version : [ubuntu] Virtualbox OSE not working due to 'VMX root mode'


Admiral Yi
March 21st, 2009, 11:05 AM
Hello,
I posted this already in general help forum, but I got no replies, so thought i'd try again here.

I'm trying to run virtual box OSE on my Ubutnu 8.10 desktop. I would like to try out some other Linux operating systems in it, with a view to installing Windows Xp for gaming at some point in the future. I downloaded it via synaptic and started it up. I set a virtual machine and created a virtual hard drive to run Open Solaris as a sort of test. However, when I start it up I get this message:

Code:

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}

I'm reasonably proficient with Linux, but I don't really understand much of this. I've never done any messing around with the kernel. I tried running it as root, but to no avail. Anyone got a solution? Presumably I have to 'disable the KVM kernel' but I have no idea how to do this, so can someone please show me how?

I have tested this with other OSes (gentoo, knoppix and fedora) but still no luck.

namaku0
March 21st, 2009, 12:12 PM
Hope this is the case:
http://blog.123sv.com/post/2008/12/02/VERR_VMX_IN_VMX_ROOT_MODE.aspx

Can you post the output from lsmod?

Also try to turn off hardware assisted feature for your
VM and see if it works (uncheck the 'Enable VT-x/AMD-V').
http://wikis.sun.com/download/attachments/54366392/Screenshot-Porting%20-%20Settings.png

jayleemor
April 14th, 2009, 11:28 AM
I am also having the same problem. I am very new to Linux. I have tried the other threads with no success. The link above does not go anywhere. VBox worked for a couple of days, then all of a sudden, I started getting the above error message. Tried removing/re-installing everything. Nothing works. Switched to Ubuntu 9.04 64bit, still nothing. Any help would be appreciated.

Dedoimedo
April 14th, 2009, 12:41 PM
VirtualBox and KVM are mutually exclusive, to the best of my knowledge.
You can't have both of them running on the same host. And as suggested, at the very least, not both can use the processor extensions.

Dedoimedo

jayleemor
April 14th, 2009, 12:52 PM
Yeah, KVM is not installed. Checked and rechecked. With the extensions unchecked, still not working. I don't know what to do besides uninstall KVM in Synaptic. It says to recompile the kernel, currently researching how to do that. Just a newb still.:cry:

debmissing
June 10th, 2009, 11:21 AM
Hi and sorry if the answer is a bit late.

It seems that the kvm module is loaded as you're trying to use virtualbox. So you should first see the result of
lsmod | grep kvm
If there's something displayed, you just have to unload the module by theses 2 commands :
sudo modprobe -r kvm_intel
sudo modprobe -r kvm
(replace kvm_intel by kvm_amd if you're running an amd processor).

blknite
June 15th, 2009, 12:17 AM
Awesome, I was having this problem too. :) This Work like a charm!

Thank you!

kngharv
January 4th, 2010, 02:02 AM
Yeah, KVM is not installed. Checked and rechecked. With the extensions unchecked, still not working. I don't know what to do besides uninstall KVM in Synaptic. It says to recompile the kernel, currently researching how to do that. Just a newb still.:cry:


I think the issue is that by default karmic install qemu, another virtualization software.

If you choose to install and use Virtualbox, you can simply remove that qemu package.

jeffwiggins
January 29th, 2010, 01:53 PM
Thanks for the tip. After upgrading to Karmic I was having the same problem. I removed qemu from my system and all appears to be working again.

Jeff.

JEREMIAHBARLOW
April 1st, 2010, 07:16 PM
Ya, that works fine until you reboot.

How do you get it to always work?
:D

naaman
April 4th, 2010, 05:53 PM
Ya, that works fine until you reboot.

How do you get it to always work?
:D

Try out the following:
("nano" can be substituded for "vi" for easier editing)

naaman@caterham:~$ sudo vi /etc/modprobe.d/blacklist-kvm.conf

# Disable kvm modules at boot
blacklist kvm_intel
blacklist kvm

gurensan
April 14th, 2010, 10:57 PM
Completely remove qemu, qtemu, and qemu-kvm and it works.

JEREMIAHBARLOW
May 21st, 2010, 02:10 PM
I removed kvm, qemu, qtemu, and qemu-kvm and still not worked after reboot.


Ok

naaman@caterham:~$ sudo nano /etc/modprobe.d/blacklist-kvm.conf

# Disable kvm modules at boot
blacklist kvm_intel
blacklist kvm


Worked great!


Thank YOU!

Paul.E.T
March 20th, 2011, 12:02 AM
Ref: above March 21st, 2009 #1
by Admiral Yi and others above

Virtualbox OSE not working due to 'VMX root mode'
March 2011:
I have put V-box on five independent systems: 3 amd and 2 intel. This is the first time I've run into this same VMX root mode problem on the two intel machines. I hope debmissing's solution works with Ubuntu 10.4.1 and .2 but won't know until later this week.
Paul