update readme introduction part, add demo screen-shot
[lunaix-os.git] / lunaix-os / scripts / qemu.py
index fca6da9dac4579325e817cc65a5e7bcef7c796ba..592bdf8b535027a962cc765bec24c27d659422be 100755 (executable)
@@ -337,6 +337,7 @@ class QEMUExec:
         qemu_path = os.path.join(qemu_dir_override, qemu_path)
         cmds = [
             qemu_path,
+            *extras,
             *self.get_qemu_general_opts(),
             *self.get_qemu_arch_opts(),
             *self.get_qemu_debug_opts()
@@ -345,14 +346,14 @@ class QEMUExec:
         for dev in self._devices:
             cmds += dev.get_qemu_opts()
 
-        cmds += extras
-        print(" ".join(cmds), "\n")
+        logger.info(" ".join(cmds))
 
         if dryrun:
             logger.info("[DRY RUN] QEMU not invoked")
             return
         
         handle = subprocess.Popen(cmds)
+        logger.info(f"QEMU launched (pid={handle.pid})")
         
         while True:
             ret_code = handle.poll()