mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-10 18:53:18 +00:00
migrate.py: enable kvm
I LOVE KVM (or Make the guest run faster) Signed-off-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
77ae94a214
commit
5d82ed42d0
@ -96,8 +96,9 @@ def start_qemu(qemu_exec, image, spice_port, qmp_filename, incoming_port=None, w
|
||||
"-spice", "disable-ticketing,port=%s" % spice_port]
|
||||
+ incoming_args + extra_args)
|
||||
if os.path.exists(image):
|
||||
args += ["-m", "512", "-drive",
|
||||
args += ["-m", "512", "-enable-kvm", "-drive",
|
||||
"file=%s,index=0,media=disk,cache=unsafe" % image, "-snapshot"]
|
||||
|
||||
proc = Popen(args, executable=qemu_exec, stdin=PIPE, stdout=PIPE)
|
||||
while not os.path.exists(qmp_filename):
|
||||
time.sleep(0.1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user