diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 7e0c07ab53..570bb6dbda 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -208,6 +208,7 @@ class XendDomainInfo: log.debug('restoring with ssidref='+str(ssidref)) id = xc.domain_create(ssidref = ssidref) vm.setdom(id) + vm.clear_shutdown() try: vm.restore = True vm.construct(config) @@ -979,6 +980,11 @@ class XendDomainInfo: if not reason in ['suspend']: self.shutdown_pending = {'start':time.time(), 'reason':reason} + def clear_shutdown(self): + db = self.db.addChild("/control") + db['shutdown'] = "" + db.saveDB(save=True) + def send_sysrq(self, key=0): db = self.db.addChild("/control"); db['sysrq'] = '%c' % key;