How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
dcipher
Posts: 4
Joined: 13. Mar 2011, 01:45
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows7

How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by dcipher »

Hi

I have Linux Mint "Julia" 64 bit and the latest version of Virtual Box 4.0.4 and Intel VT is turned on in the bios but I get the error mentioned in the subject line when I try to start a Windows 7 64bit guest. The cpu is the i7-620 mobile cpu with the QM57 chipset with 8gig of ram. As a result I never get to the point of installing the Windows software. Any clues as to what might be the problem?

Simon
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by Perryg »

Make sure that you have not installed the KMV kernel on the host.
https://help.ubuntu.com/community/KVM/FAQ
Or that have downloaded LinuxMint 9 with VMWare included. If so you have to disable it as well.
dcipher
Posts: 4
Joined: 13. Mar 2011, 01:45
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows7

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by dcipher »

Hi

KVM does not appear to be installed but the problem persists.

Simon
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: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by Sasquatch »

It's also possible something else is wrong. E.g. KVM modules are loaded, VT-x/AMD-V is disabled in BIOS or the CPU does not have the feature even though the BIOS has the option for it.
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.
dcipher
Posts: 4
Joined: 13. Mar 2011, 01:45
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows7

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by dcipher »

Sasquatch wrote:It's also possible something else is wrong. E.g. KVM modules are loaded, VT-x/AMD-V is disabled in BIOS or the CPU does not have the feature even though the BIOS has the option for it.
Advanced Technologies
Intel® Turbo Boost Technology Yes
Intel® Hyper-Threading Technology Yes
Intel® Virtualization Technology (VT-x) Yes
Intel® Virtualization Technology for Directed I/O (VT-d) Yes
Intel® Trusted Execution Technology Yes
AES New Instructions Yes
Intel® 64 Yes
Idle States Yes
Enhanced Intel SpeedStep® Technology Yes
Thermal Monitoring Technologies Yes
Intel® Fast Memory Access Yes
Intel® Flex Memory Access Yes
Execute Disable Bit Yes
These were all taken off the Intel website which shows these chips all support the required items. The BIOS also has VT enabled.

I used the scripts suggested by Perryg on the Ubuntu website to remove KVM but the Terminal reports that the scripts do not exist so I am assuming they do not exist because KVM was not loaded.

Simon


Simon
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by Perryg »

Intel® Trusted Execution Technology Yes
Make sure that this is not enabled in the bios. It stops VBox from using the VT-x
dcipher
Posts: 4
Joined: 13. Mar 2011, 01:45
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows7

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by dcipher »

Perryg wrote:
Intel® Trusted Execution Technology Yes
Make sure that this is not enabled in the bios. It stops VBox from using the VT-x
I turned it off in the BIOS but it made not difference. As long as I turn of the VT-x in VirtualBox I can start Windows 7 but if I enabled I cannot.

Simon
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: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by Sasquatch »

Wait a minute. You have VT-x enabled and you get the above error for your 64 bit VM. When you turn it OFF, you don't get any error and the VM just boots fine? Then it's one of the classic BIOS bugs that turning something on actually turns it off and vice versa.
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.
opensuse-717
Posts: 9
Joined: 26. Jan 2009, 23:42

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by opensuse-717 »

well, let me share my experience:

I started getting the VER_VMX_ ... error when I decided to increase the memory of my virtual machine over 4000 MB (the total of my PC is 12 GB). When I got it back to less than 3700MB the problem disappeared !

mimis
mhanor
Volunteer
Posts: 321
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by mhanor »

attach the logs for each case
JamesTalbot
Posts: 1
Joined: 16. Jun 2011, 17:20
Primary OS: Ubuntu other
VBox Version: PUEL
Guest OSses: Windows 7

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by JamesTalbot »

I had the same error message when I attempt to start my Windows 7 guest. I eventually figured out that I could start it if I reduced the number of virtual CPUs to 1. Any setting above one still causes that error.
Attachments
jatalbot-w7-2011-06-16-09-23-40.log
fails with 2 virtual cpus
(62.64 KiB) Downloaded 70 times
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: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by Sasquatch »

JamesTalbot wrote:I had the same error message when I attempt to start my Windows 7 guest. I eventually figured out that I could start it if I reduced the number of virtual CPUs to 1. Any setting above one still causes that error.
Well, this doesn't look right:

Code: Select all

00:00:01.120 VMX - Virtual Machine Technology       = 0 (1)
Why did you not enable VT-x/AMD-V in the VM settings when the Host has that option?
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.
petten
Posts: 1
Joined: 28. Jun 2011, 21:09
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu 11.04

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by petten »

I encountered this error after I tried to increase the CPU count from 1 to 4 (a VM Manager setting). The PM has 8 cores/CPUs. The error went away after I reverted the change.
nick17
Posts: 1
Joined: 11. Nov 2011, 15:17
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu Server 11.10

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by nick17 »

I'm having the same problem, but only intermittently. After a reboot to double check my bios settings, the problem went away. Today it is back (same settings). Anyone have any luck here?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: How to fix VERR_VMX_MSR_LOCKED_OR_DISABLED?

Post by Perryg »

nick17 wrote:I'm having the same problem, but only intermittently. After a reboot to double check my bios settings, the problem went away. Today it is back (same settings). Anyone have any luck here?
The warning usually means that VirtualBox can see the VT-x/AMD-v feature but can not use it because it is either locked in bios or by some other program that is using it, like XP mode, hyper-v, or other virtualizer.
Post Reply