Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
Arquivo: save.py Projeto: 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
Exemplo n.º 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