LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 07-13-2015, 09:08 AM   #1
bf31415
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Rep: Reputation: Disabled
missing vmx flag-- possible causes?


I've got a VM that is running as a guest on an open stack compute node. I would like to run kvm within my guest but my guest VM's /proc/cpuinfo reports the vmx flag is missing (and kvm doesn't work). lscpu run from my guest shows the following:

Vendor ID: GenuineIntel
CPU family: 6
Model: 42
Stepping: 1
CPU MHz: 2593.750
BogoMIPS: 5187.50
Hypervisor vendor: KVM
Virtualization type: full

What might cause my guest VM to not have the vmx flag set?

Thanks
 
Old 07-13-2015, 12:58 PM   #2
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
You are running inside a VM, of course VMX will be missing. To get it, you need to have nesting enabled on the host, and even with nesting enabled, performance will be petty bad.

If you cannot enable nesting on the host, I suggest you use containers or a virtualization system that doesn't require VT/SVM
 
Old 07-13-2015, 05:38 PM   #3
bf31415
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the reply. Yes I need nested virtualization-- for my application I need to run kvm inside my guest VM. Containers etc aren't an option. This is functional work, not performance oriented work so performance isn't a concern. Note that I have dozens of guest VM's where they see the vmx flag set and only a handful of guest VM's don't see the vmx flag-- and all these VM's are booting from the same image. I'm looking for specific config's that should be present on the compute host to make sure the vmx flag is passed- apparently that config is present in most of the compute hosts but not all.

Notice that the lscpu output below from the guest VM shows full virtualization enabled-- but the vmx flag is not set in /proc/cpuinfo-- does this provide any insight into what config is missing on the compute host?

Thanks
 
Old 07-13-2015, 09:02 PM   #4
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
Why don't you start by providing some details on what you have on the hosts, how it is set up at the moment, VM XML dumps, loaded modules, distros etc? All the telepathic LQ members are on vacation today, I am truly sorry
 
Old 07-14-2015, 05:08 AM   #5
bf31415
LQ Newbie
 
Registered: Dec 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Funny! Me either! Unfortunately, I don't have access to the underlying host or corresponding setup-- this is being done on a 3rd party Openstack setup. So i'm looking to understand what might prevent the VMX flag to not get passed from the host to the guest -- as this would help seed the reviews steps the 3rd party Ops folks would need to check. Insights? And what does it mean for lscpu to report full virtualization yet no vmx flag is present?

Thanks
 
Old 07-14-2015, 09:50 PM   #6
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
ah, so we're starting to glimpse some of those coveted details, wonderful.

first of all, you need to understand that nesting isn't something normally done, because, besides providing a sluggish testbed for distrohopping, there isn't much use for it. which logically means, that normally, it is disabled, and if you really need it you have to enable it, while you seem to be under the impression that it's the other way around, and some horrible person disabled it to spite you.

Now that we know this is openstack we're talking about (thanks so much for letting at least some information slip), I know what to look for, and it is "enable nested kvm openstack".

Sounds easy all of a sudden, right?

http://dachary.org/?p=1318

You're welcome.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there a missing flag I need for DHCPD to respond to relayed requests? pwn Linux - Networking 1 09-18-2014 01:05 PM
KVM (Centos6.4) - Can't see VMX flag on /proc/cpuinfo -Soufiane- Linux - Virtualization and Cloud 2 07-15-2013 07:16 AM
mailx -r flag missing on RH 4 alexlei Linux - Newbie 2 09-25-2012 06:41 PM
[SOLVED] [oneiric] why no vmx when using xen eantoranz Linux - Virtualization and Cloud 1 04-10-2012 11:49 AM
vmx builder computer Linux - Newbie 3 05-21-2006 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration