Comment 4 for bug 1788910

Revision history for this message
Mike Pontillo (mpontillo) wrote :

After talking through this with Newell, it seems that we can do something like this:

    virsh start --paused <vm>

This will start the VM but immediate pause it, that way we can catch any errors that wouldn't be seen until the VM attempts to start. And yet the machine won't get a chance to PXE boot, so we shouldn't see it change state in MAAS.

We can then tear down (destroy + undefine) the VM right away if an error occurs, or call "virsh destroy" (which will unpause and shut off the VM) if nothing went wrong, allowing MAAS to then power it back on at its convenience.