diff options
author | Cole Robinson <crobinso@redhat.com> | 2022-08-21 16:21:10 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2022-08-21 16:21:10 -0400 |
commit | b0d0516736320315a70f74aff3759fb35dd35d9d (patch) | |
tree | 653a53ab2370bfee73a53600e0d920188b6504e4 /virtinst | |
parent | a254ece0f0497d062a0e4c94dc45619649ea4922 (diff) | |
download | virt-manager-b0d0516736320315a70f74aff3759fb35dd35d9d.tar.gz |
cloner: Sync <uuid> and <sysinfo> system uuid
Otherwise libvirt errors like:
ERROR UUID mismatch between <uuid> and <sysinfo>
https://bugzilla.redhat.com/show_bug.cgi?id=2038040
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtinst')
-rw-r--r-- | virtinst/cloner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/virtinst/cloner.py b/virtinst/cloner.py index 34a702f9..9334513c 100644 --- a/virtinst/cloner.py +++ b/virtinst/cloner.py @@ -352,8 +352,7 @@ class Cloner(object): """ self._new_guest.id = None self._new_guest.title = None - self._new_guest.uuid = None - self._new_guest.uuid = Guest.generate_uuid(self.conn) + self.set_clone_uuid(Guest.generate_uuid(self.conn)) for dev in self._new_guest.devices.graphics: if dev.port and dev.port != -1: @@ -408,6 +407,9 @@ class Cloner(object): Override the new VMs generated UUId """ self._new_guest.uuid = uuid + for sysinfo in self._new_guest.sysinfo: + if sysinfo.system_uuid: + sysinfo.system_uuid = uuid def set_replace(self, val): """ |