dispvm: fix domain ID handling
Do not use obsoleted get_xid() function.
This commit is contained in:
parent
9393b5f931
commit
3f6947b87e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user