Hi When the domain restarts after install completes, the console is not connected. Therefore, if I don't connect the console for myself, I cannot be finished the setting after install completes. The attached patch adds to solve this problem. Signed-off-by: Nobuhiro Itou <fj0873gn@xxxxxxxxxxxxxxxxx> Thanks, Nobuhiro Itou. Index: virt-install =================================================================== diff -r 3e18fa0cafc4 virt-install --- a/virt-install Fri Mar 02 09:16:33 2007 -0500 +++ b/virt-install Wed Mar 07 17:09:02 2007 +0900 @@ -476,6 +476,7 @@ def main(): # the domain print "Guest installation complete... restarting guest." dom.create() + guest.connect_console(conscb) else: print ("Domain installation does not appear to have been\n" "successful. If it was, you can restart your domain\n" Index: virtinst/Guest.py =================================================================== diff -r 3e18fa0cafc4 virtinst/Guest.py --- a/virtinst/Guest.py Fri Mar 02 09:16:33 2007 -0500 +++ b/virtinst/Guest.py Wed Mar 07 17:09:45 2007 +0900 @@ -547,6 +547,18 @@ class Guest(object): # for inactive guest, or get the still running install.. return self.conn.lookupByName(self.name) + def connect_console(self, consolecb): + child = None + if consolecb: + logging.debug("Launching console callback") + child = consolecb(self.domain) + + if child: # if we connected the console, wait for it to finish + try: + (pid, status) = os.waitpid(child, 0) + except OSError, (errno, msg): + print __name__, "waitpid:", msg + def validate_parms(self): if self.domain is not None: raise RuntimeError, "Domain already started!"