How can I modify the libvirt.xml with OpenStack Juno?

asked 2015-12-01 11:47:50 -0500

UgoGio gravatar image

I've noticed that starting from Juno version every modifications to the libvirt.xml file are replicated by OpenStack. Moreover, I've noticed that this is due to driver.py file that should create the libvirt.xml file.

So, is there any way to manually modify the libvirt.xml file? Do I need to modify the driver.py and/or config.py file in order to do that?

Can anyone give me an example of how I can add a device to a VM, avoiding that Openstack restores the libvirt.xml file?

edit retag flag offensive close merge delete

Comments

what device you are looking to add?

fgorbat gravatar imagefgorbat ( 2015-12-02 08:38:18 -0500 )edit

I would like to add a serial port like this. <serial type="tcp"><source mode="connect" host="0.0.0.0" service="2445"/><protocol type="raw"/><target port="1"/></serial>

UgoGio gravatar imageUgoGio ( 2015-12-02 08:56:14 -0500 )edit

Moreover, I've edited the config.py file but it seams that when a reboot the instance this file is never called.

UgoGio gravatar imageUgoGio ( 2015-12-02 08:57:47 -0500 )edit