Never modify that file beyond declaring a hook, it's a really bad idea for a prod environment.
Again, openstack realm is to create an XML file that is passed to libvirt and no more. OpenStack only creates and deletes instances it's not his responsibility to modify it on runtime, that's libvirt resoonsability and if you want to do it there are 2 ways: Create an extension api for openstack that connects via python to the libvirt on the compute nodes. Or call to the libvirt API directly via shell and modify the instance. El 15/12/2014 09:56, "Blazej Kwasniak" <[email protected]> escribió: > Hi ! > > It depends what type of flag You want to add but generaly all stuff is > done on compute-host. > > For example If You want to make some changes in CPU config You should take > a look on > > nova/virt/libvirt/driver.py > > Regards > > Blazje > > 2014-12-15 8:37 GMT+01:00 Adrián Norte Fernández <[email protected]>: >> >> You can do this before launching: >> >> glance image-update \ >> --property hw_disk_bus=scsi \ >> --property hw_cdrom_bus=ide \ >> --property hw_vif_model=e1000 \ >> f16-x86_64-openstack-sda >> >> It's from >> http://docs.openstack.org/user-guide/content/cli_manage_images.html >> >> But if you need to change it on runtime you will need to use the libvirt >> API because modifiying a running VM is outside the scope of openstack >> El 15/12/2014 07:13, "Srinivasreddy R" <[email protected]> >> escribió: >> >>> hi, >>> I want to add some extra flags[have some ruquirement] at runtime [while >>> launching the VM ] as qemu arguments . >>> any suggestions ? >>> which files/lib i need to change . >>> >>> thanks >>> srini >>> >>> _______________________________________________ >>> Mailing list: >>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >>> Post to : [email protected] >>> Unsubscribe : >>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >>> >>> >> _______________________________________________ >> Mailing list: >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> Post to : [email protected] >> Unsubscribe : >> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack >> >>
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
