Linux - Virtualization and CloudThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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?
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
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?
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.