dispvm: fix domain ID handling

Do not use obsoleted get_xid() function.
This commit is contained in:
Marek Marczykowski 2013-05-22 05:46:55 +02:00 committed by Marek Marczykowski-Górecki
parent 9393b5f931
commit 3f6947b87e

View File

@ -156,14 +156,13 @@ class QubesDisposableVm(QubesVm):
vmm.libvirt_conn.restoreFlags(self.disp_savefile,
domain_config, libvirt.VIR_DOMAIN_SAVE_PAUSED)
print >>sys.stderr, "time=%s, done, getting xid" % (str(time.time()))
xid = self.get_xid()
self.xid = xid
print >>sys.stderr, "time=%s, done" % (str(time.time()))
self._libvirt_domain = None
self.services['qubes-dvm'] = True
if verbose:
print >> sys.stderr, "--> Setting Xen Store info for the VM..."
self.create_xenstore_entries(xid)
self.create_xenstore_entries(self.xid)
print >>sys.stderr, "time=%s, done xenstore" % (str(time.time()))
# fire hooks
@ -195,7 +194,7 @@ class QubesDisposableVm(QubesVm):
notify_function=kwargs.get('notify_function', None))
print >>sys.stderr, "time=%s, guid done" % (str(time.time()))
return xid
return self.xid
# register classes
register_qubes_vm_class(QubesDisposableVm)