James Cammarata wrote:
Ok, I was doing some research into this over the weekend, and it does
not
appear that python-virtinst currently supports setting autostart on any VM
architecture via the python API. I do see API calls in libvirt to do this,
so I'm exploring the possibility of submitting a patch to the
python-virtinst people to add the extra capabilities, but this would be
upstream and not available in all distros immediately, if at all.
Alternatively, we could do a shell call to "virsh autostart <vmname>",
which should work for anything that virsh can control.
Thoughts?
This seems good.
I think we can use the libvirt call for now but should be careful... the
XML of a guest changes once install is done, so it is likely that we
could only do that when --vm-poll is used.
In which case we'd have to say that this option could only be used with
koan's "--vm-poll" flag (which is a little counter inutitive... for
those that don't remember, --vm-poll tells koan
to block until the guest install is complete).
We should check up with this with the python-virtinst folks.
--Michael