Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
Datei: save.py Projekt: CPFL/gxen
    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
Beispiel #4
0
    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