From e06d23fd6537554e2db220d66fbb6930f8a91398 Mon Sep 17 00:00:00 2001 From: Ryota Ozaki Date: Tue, 15 Oct 2013 01:19:42 +0900 Subject: [PATCH] vbox: handle 'saved' state of VMs VirtualBox has 'saved' state for VMs saved by the hypervisor. However, the state is treated as VIR_DOMAIN_NOSTATE by the vbox driver, resulting that virsh shows 'no state' for saved VMs. The fix treats the state as VIR_DOMAIN_SHUTOFF as same as other domains such as qemu. Signed-off-by: Ryota Ozaki --- src/vbox/vbox_tmpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index 10a3775e33..cf34f5c365 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -1923,6 +1923,7 @@ static virDomainState vboxConvertState(enum MachineState state) { case MachineState_Stopping: return VIR_DOMAIN_SHUTDOWN; case MachineState_PoweredOff: + case MachineState_Saved: return VIR_DOMAIN_SHUTOFF; case MachineState_Aborted: return VIR_DOMAIN_CRASHED;