Connect your vm with a VNC client, press ctrl + opt + del(on macOS) / ctrl + alt + del(on Windows) to reboot your vm,then you are able to install the OS.
5. Record/Replay with PANDA
1
(qemu) begin_record test
….
1
(qemu) end_record
now you can replay (with replay movie plugin)
1
../qemu/x86_64-softmmu/qemu-system-x86_64 -replay test -panda replaymovie -m 2048