r/openstack • u/myridan86 • May 04 '25
CPU (host-passthrough)
After several tests and researches, I came here to ask for help :)
I'm trying to configure a flavor to use host-passthrough (so that KVM ensures that the instance has all the host's CPU details).
My host (hypervisor) has this functionality, since with oVirt, it works, so I believe it's some error on my part in the nova-compute configuration.
I'm using Kolla-Ansible, and what I've already done is:
I created the file /etc/kolla/config/nova/nova-compute.conf
[libvirt]
virt_type = kvm
cpu_mode = none
kolla-ansible reconfigure --tags novaAfter the nova_compute container restarted:
docker exec -it nova_compute cat /etc/nova/nova.confThe updated information is in the file, so the reconfigure worked.
I created the flavor with the following commands:
openstack flavor create m1.host-passthrough --vcpus 4 --ram 4096 --disk 1 --id 7
openstack flavor set m1.host-passthrough --property hw:cpu_mode=host-passthroughRunning virsh dump, the xml is as follows:
<cpu mode='custom' match='exact' check='full'>
<model fallback='forbid'>qemu64</model>
<vendor>Intel</vendor>I tried with and without the cpu_mode = none parameter and the result was the same.
I don't know what I'm forgetting...
View all comments
Show parent comment
1
u/myridan86 May 04 '25
I put the parameters directly in globals.yml and it worked!
Thank you very much for your help.
But that's what I thought, this configuration was the default for all instances.
I would like this to be managed by the flavors. Is that possible?