On 04/28/2017 04:07 AM, Chen Hanxiao wrote: > From: Chen Hanxiao <chenhanxiao@xxxxxxxxx> > > If we set on_crash as `preserve`, we'll get a crashed > VM state. > At this time, it's impossible to start this VM. > > Signed-off-by: Chen Hanxiao <chenhanxiao@xxxxxxxxx> > --- > virtManager/domain.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/virtManager/domain.py b/virtManager/domain.py > index fc5f54a..3830d22 100644 > --- a/virtManager/domain.py > +++ b/virtManager/domain.py > @@ -1734,12 +1734,13 @@ class vmmDomain(vmmLibvirtObject): > def is_stoppable(self): > return self.status() in [libvirt.VIR_DOMAIN_RUNNING, > libvirt.VIR_DOMAIN_PAUSED, > + libvirt.VIR_DOMAIN_CRASHED, > libvirt.VIR_DOMAIN_PMSUSPENDED] > def is_destroyable(self): > return (self.is_stoppable() or > self.status() in [libvirt.VIR_DOMAIN_CRASHED]) > def is_runable(self): > - return self.is_shutoff() or self.is_crashed() > + return self.is_shutoff() > def is_pauseable(self): > return self.status() in [libvirt.VIR_DOMAIN_RUNNING] > def is_unpauseable(self): > Is there an easy way to move a qemu VM into the crashed state? So I can test IIRC this logic was based on how old xen behaved, crashed was really a shutoff type of state, but my recollection is fuzzy. Thanks, Cole _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list