Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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"/> </features> From what I have understood is - https://opendev.org/openstack/nova/src/branch/master/nova/virt/libvirt/config.py 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?