VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Discussions related to using VirtualBox on Linux hosts.
Post Reply
tamilov_y
Posts: 4
Joined: 6. Jan 2011, 00:01
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows Xp Pro sp3

VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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?
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post by Sasquatch »

And double check the CPU itself. I've seen systems with compatible motherboards (option available in BIOS), but incompatible CPUs.
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.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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
mhanor
Volunteer
Posts: 321
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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).
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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.
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.
Technologov
Volunteer
Posts: 3342
Joined: 10. May 2007, 16:59
Location: Israel

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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.
tamilov_y
Posts: 4
Joined: 6. Jan 2011, 00:01
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows Xp Pro sp3

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: VirtualBox 4.0 "VM (VERR_VMX_MSR_LOCKED_OR_DISABLED)."

Post 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.
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.
Post Reply