migrate.py: print qemu command line

Signed-off-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
Uri Lublin 2020-01-01 15:05:29 +02:00
parent 5d82ed42d0
commit dd9b5bd483

View File

@ -99,6 +99,10 @@ def start_qemu(qemu_exec, image, spice_port, qmp_filename, incoming_port=None, w
args += ["-m", "512", "-enable-kvm", "-drive",
"file=%s,index=0,media=disk,cache=unsafe" % image, "-snapshot"]
# print qemu command line for the first run
if not incoming_port:
print('qemu command line: %s' % ' '.join(args))
proc = Popen(args, executable=qemu_exec, stdin=PIPE, stdout=PIPE)
while not os.path.exists(qmp_filename):
time.sleep(0.1)