How to automate addition of new feature to libvirt.xml?

asked 2020-05-20 05:53:47 -0500

anonymous user

Anonymous

I need to enable nested virtualization for IBM pseries. And to enable that I need to set "nested-hv" parameter in libvirt.xml(https://libvirt.org/formatdomain.html) under features section: <features> <nested-hv state="on"> </nested-hv></features> From what I have understood is - https://opendev.org/openstack/nova/src/branch/master/nova/virt/libvirt/config.py (https://opendev.org/openstack/nova/sr...) this file creates libvirt.xml file for instances. And it doesn't have any support for nested-hv currently. So Inorder to add that feature I have to manually modify virsh xml file of instances. How to automate it?

edit retag flag offensive close merge delete