diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index 3cbfe11a..b9da8018 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -59,11 +59,6 @@ libvirt_vif_type = ethernet vif_plugging_timeout = 10 vif_plugging_is_fatal = False -{% if nova_pci_passthrough_whitelist %} -# PCI Passthrough -pci_passthrough_whitelist = "{{ nova_pci_passthrough_whitelist }}" -{% endif %} - # Hypervisor default_ephemeral_format = ext4 @@ -350,3 +345,9 @@ compute=auto [devices] enabled_vgpu_types = {{ enabled_vgpu_types | join(',') }} {% endif %} + +{% if nova_pci_passthrough_whitelist %} +[pci] +# White list of PCI devices available to VMs. +passthrough_whitelist = "{{ nova_pci_passthrough_whitelist }}" +{% endif %}