[Kimchi-devel] [RFC] Feature Request (#860) - Support Guest Autostart

Bianca Carvalho bianca at linux.vnet.ibm.com
Tue Aug 16 20:04:50 UTC 2016


Hello,

I'm working to implement Support Guest Autostart feature described here: 
https://github.com/kimchi-project/kimchi/issues/860.

Autostart option will be passed in the curl command, for example:
curl -u root -H "Content-Type: application/json" -H "Accept: 
application/json" -k http://localhost:8010/plugins/kimchi/vms/<VM> -X 
PUT -d '{"autostart": True}'

To show if the autostart is on or off: curl -u root -H "Content-Type: 
application/json" -H "Accept: application/json" -k 
http://localhost:8010/plugins/kimchi/vms/<VM> -X GET

To implement this feature, I was thinking about use dom.setAutostart(1) 
in update function (vms.py), edit lookup to get params passed in the 
curl command (using PUT) and include an 'autostart' entry in API.json .

Any other suggestion will be welcome.

Thanks,

Bianca Carvalho




More information about the Kimchi-devel mailing list