copy paste the hard disk and networking parts from the wiki:.start from the working command I used in my repo without record replay.Here we print userspace stuff that is usually random to check that we are actually deterministic, and then power off the machine. Lkmc_eval gets evaled by my init scripts. object filter-replay,id=replay,netdev=net1 \Įval "$cmd -icount 'shift=7,rr=record,rrfile=replay.bin'"Įval "$cmd -icount 'shift=7,rr=replay,rrfile=replay.bin'"Īnd my kernel and root filesystem were generated with this Buildroot setup: which uses QEMU v2.9.0. drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \ drive file=./buildroot/output.x86_64~/images/rootfs.ext2,if=none,id=img-direct,format=raw \ kernel './buildroot/output.x86_64~/images/bzImage' \ append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"/rand_check.out wget -S /poweroff.out \"' \ These are the commands I'm running: #!/usr/bin/env bash However, I could not get replay working for a full Linux kernel boot: it always hangs at some point.
![panda qemu replay tutorial panda qemu replay tutorial](http://4.bp.blogspot.com/-bTBgbgmy3Gc/UeDpOZ9xHwI/AAAAAAAAA8M/s7_6RMwSzeI/s1600/Cute-Panda-Nails2.jpg)
QEMU supports deterministic record and replay as documented at: