Page 1 of 1

VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 6. Jan 2011, 00:24
by tamilov_y
Hi everybody.
I'm using Ubuntu 10.10 (Kernel 2.6.35-24-generic)
Notebook LG S1-P655R1
Virtualization technology Enabled in BIOS (checked twice)
When I Choose to use 2 processors the following error occur :
------------------------------------------------------------------------------

Code: Select all

Failed to open a session for the virtual machine WindowsXP 
Unknown error creating VM (VERR_VMX_MSR_LOCKED_OR_DISABLED).

Result Code: 
NS_ERROR_FAILURE (0x80004005)
Component: 
Console
Interface: 
IConsole {515e8e8d-f932-4d8e-9f32-79a52aead882}
------------------------------------------------------------------------------
When I put the settings to use one processor everything running fine.
Does anybody know how to fix it?
Or that is normal for my laptop?

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 6. Jan 2011, 01:04
by fixedwheel
it has been reported here that some laptops need the battery to be pulled out after enabeling VT-x in BIOS

otherwise check if virtualiser modules like KVM are loaded on the host

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 6. Jan 2011, 21:30
by Sasquatch
And double check the CPU itself. I've seen systems with compatible motherboards (option available in BIOS), but incompatible CPUs.

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 7. Jan 2011, 13:11
by fixedwheel
Sasquatch wrote:I've seen systems with compatible motherboards (option available in BIOS), but incompatible CPUs.
i guess the error then would be something like VERR_VMX_NO_VMX instead VERR_VMX_MSR_LOCKED_OR_DISABLED

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 7. Jan 2011, 20:07
by mhanor
If VT-x works with one virtual CPU core, check if MSR 0x3A contains the same value for each CPU core (on the host).

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 7. Jan 2011, 22:42
by Sasquatch
fixedwheel wrote:
Sasquatch wrote:I've seen systems with compatible motherboards (option available in BIOS), but incompatible CPUs.
i guess the error then would be something like VERR_VMX_NO_VMX instead VERR_VMX_MSR_LOCKED_OR_DISABLED
Yes, it should, but we've been misled by these error messages before.

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 8. Jan 2011, 15:58
by Technologov
This error is known one for certain buggy BIOSes.

Please shutdown your laptop fully. (push "power" button for 5 seconds), then power it up again. Removing laptop battery should work too.

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 17. Jan 2011, 16:15
by tamilov_y
Hi.
Last post help me to solve a problem.
Thank to all who have spend a little time to help me!

Pushing "power" button for more then 5 s turned off my laptop. When I've power on and start virtual machine with two processors enabled it works. But a very slowly. Virtual machine use 100% of CPU
When I put a cursor on icon of virtualization it show me "VT-x Enabled. Nested Paging is disabled"
When I check setting of machine both Setting Enabled (VT-x and Nested paging)
May it (Nested Paging is disabled) cause to 100% usage of CPU?
Should I start a new topic with this issue ?
Guest Machine is Windows Xp Pro.
Host is Ubuntu 10.10

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Posted: 18. Jan 2011, 00:21
by Sasquatch
The problem with the 100% CPU usage is because the guest is not installed as multi-core aware from the start. That can cause problems such as these. The Nested Paging is just that your CPU doesn't support it, but you can still enable it in the VM settings. When you move the VM to a system that has Nested Paging, it will then be used.