How-To Expose all Physical CPU Features to KVM
Problem
You want to expose a flag present on the physical CPU to the virtual machines running on the host.
Environment
- Platform9 Managed OpenStack - All versions
- Nova
- KVM/qemu
Procedure
- Update the Nova configuration file locate at /opt/pf9/etc/nova/conf.d/nova_override.conf and make sure the following option is set within the [libvirt] stanza.
- Once the file has been modified, restart the pf9-ostackhost service by running the following command.
- Hard reboot the VMs where you want to see the additional flags by running the following command.
Additional Information
Using host-model
is a safe choice if your compute node CPUs are largely identical. However, if your compute nodes span multiple processor generations, you may be better advised to select a custom
CPU model.
Was this page helpful?