def start(self): vm.getshadowmem(self.vm) hdr = image.makeheader(self.vm.dominfo) self.fd.write(hdr) self.fd.flush() self.checkpointer = xen.lowlevel.checkpoint.checkpointer() try: self.checkpointer.open(self.vm.domid) self.checkpointer.start(self.fd, self.suspendcb, self.resumecb, self.checkpointcb, self.interval) self.checkpointer.close() except xen.lowlevel.checkpoint.error, e: raise CheckpointError(e)
def start(self): vm.getshadowmem(self.vm) hdr = image.makeheader(self.vm.dominfo) self.fd.write(hdr) self.fd.flush() self.checkpointer = xen.lowlevel.checkpoint.checkpointer() try: try: self.checkpointer.open(self.vm.domid) self.checkpointer.start(self.fd, self.suspendcb, self.resumecb, self.checkpointcb, self.interval, self.flags) except xen.lowlevel.checkpoint.error, e: raise CheckpointError(e) finally: try: #errors in checkpoint close are not critical atm. self.checkpointer.close() except: pass