Init guests with actual libvirt connections, not virt-manager connection objects.
This commit is contained in:
parent
1f83054001
commit
484bc23638
|
@ -117,7 +117,7 @@ class vmmCreate(gobject.GObject):
|
|||
|
||||
# Guest to fill in with values along the way
|
||||
self._guest = virtinst.Guest(type=self.get_domain_type(),
|
||||
connection=self.connection,
|
||||
connection=self.connection.vmm,
|
||||
hypervisorURI=self.connection.get_uri())
|
||||
self._disk = None
|
||||
self._net = None
|
||||
|
@ -842,12 +842,12 @@ class vmmCreate(gobject.GObject):
|
|||
if self.get_config_method() == VM_PARA_VIRT:
|
||||
self._guest = virtinst.ParaVirtGuest(type=self.get_domain_type(),
|
||||
hypervisorURI=self.connection.get_uri(),
|
||||
connection=self.connection)
|
||||
connection=self.connection.vmm)
|
||||
else:
|
||||
self._guest = virtinst.FullVirtGuest(type=self.get_domain_type(),
|
||||
arch=self.get_domain_arch(),
|
||||
hypervisorURI=self.connection.get_uri(),
|
||||
connection=self.connection)
|
||||
connection=self.connection.vmm)
|
||||
|
||||
self._guest.name = name # Transfer name over
|
||||
|
||||
|
|
Loading…
Reference in New Issue