Passing Flags from host machine to the Guest VM

Problem

Some CPUs do not pass the host machine CPU flags to the guest VMs by default. Which causes guest VMs unable to support that flags.

Environment

  • Platform9 Managed OpenStack - v4.0 and Higher
  • Host machine - model name : Intel(R) Xeon(R) Silver 4214R CPU @ 2.40GHz
  • Guest VM - model name : QEMU Virtual CPU version 2.5+

Procedure

We need to pass the flags as extra parameters to resolve this issue. As shown in the below example guest VM was not getting avx flag from host, so we have passed the flag using cpu_model_extra_flags in "nova_override.conf".

lscpu - guest VM
Copy
lscpu - hostVM
Copy

Now, passing the flags in "/opt/pf9/etc/nova/conf.d/nova_override.conf" file as shown below:

nova_override.conf
Copy

After updating the file restart the pf9-ostackhost service and reboot the guest VM.

Javascript
Copy

Now, guest VM will start showing that flags.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard