Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 12c121f

Browse files
committed
Don't keep transient disks for non-Xen drivers
1 parent 69c83bb commit 12c121f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

virtinst/FullVirtGuest.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,13 @@ def _get_disk_xml(self, install = True):
274274
for d in self.disks:
275275
saved_path = None
276276
if d.device == Guest.VirtualDisk.DEVICE_CDROM and d.transient and not install:
277-
# XXX hack. libvirt can't currently handle QEMU having an empty disk path
277+
# XXX hack. libvirt can't currently handle QEMU having an empty disk path..
278278
if self.type == "xen":
279279
saved_path = d.path
280280
d.path = None
281+
else:
282+
# .. so simply remove CDROM device completely in non-Xen
283+
continue
281284

282285
ret += d.get_xml_config(d.target)
283286
if saved_path != None:

0 commit comments

Comments
 (0)