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

Commit 199fbbd

Browse files
committed
Fix windows installs, add a test to prevent regression
1 parent 1d8413d commit 199fbbd

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

tests/clitest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@
358358
"--hvm --nodisks --pxe --autostart",
359359
# --description
360360
"--hvm --nodisks --pxe --description \"foobar & baz\"",
361+
# HVM windows install with disk
362+
"--hvm --cdrom %(EXISTIMG2)s --file %(EXISTIMG1)s --os-variant win2k3 --wait 0",
361363
],
362364

363365
"invalid": [

virtinst/Guest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,9 @@ def get_config_xml(self, install = True, disk_boot = False):
797797
@type disk_boot: C{bool}
798798
"""
799799

800+
# Set device defaults so we can validly generate XML
801+
self._set_defaults(self.get_devices)
802+
800803
if install:
801804
action = "destroy"
802805
else:

0 commit comments

Comments
 (0)