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

Commit 55a09b0

Browse files
committed
Guest: Debug guest XML after defining 'final' XML
1 parent 7de3935 commit 55a09b0

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

virtinst/Guest.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,19 +1291,18 @@ def _create_guest(self, consolecb, meter, wait,
12911291
self.domain = dom
12921292
meter.end(0)
12931293

1294-
if is_initial:
1295-
try:
1296-
logging.debug("XML fetched from libvirt object:\n%s",
1297-
dom.XMLDesc(0))
1298-
except Exception, e:
1299-
logging.debug("Error fetching XML from libvirt object: %s" % e)
1300-
13011294
if doboot:
13021295
logging.debug("Started guest, connecting to console if requested")
13031296
(self.domain,
13041297
self._consolechild) = self._wait_and_connect_console(consolecb)
13051298

13061299
self.domain = self.conn.defineXML(final_xml)
1300+
if is_initial:
1301+
try:
1302+
logging.debug("XML fetched from libvirt object:\n%s",
1303+
dom.XMLDesc(0))
1304+
except Exception, e:
1305+
logging.debug("Error fetching XML from libvirt object: %s" % e)
13071306

13081307
# if we connected the console, wait for it to finish
13091308
self._waitpid_console(self._consolechild, wait)

0 commit comments

Comments
 (0)