Skip to content

Instantly share code, notes, and snippets.

@vsrinivas
Created July 12, 2023 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vsrinivas/a99879647b3535a4d8e85b4549482806 to your computer and use it in GitHub Desktop.
Save vsrinivas/a99879647b3535a4d8e85b4549482806 to your computer and use it in GitHub Desktop.
qemu-system-x86_64 --enable-kvm -kernel vmlinux -append "console=ttyS0 root=/dev/nvme0n1 init=/sbin/sh" -cpu host -smp 2 -m 2G -display none -serial stdio -drive file=/tmp/testdisk.img,if=none,id=nvme -device nvme,drive=nvme,serial=disk -drive file=/tmp/vac.img,if=none,id=nvme1 -device nvme,drive=nvme1,serial=disk1 -drive file=/tmp/disk.img,if=none,id=nvme2 -device nvme,drive=nvme2,serial=disk2 -no-reboot
/tmp/q/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -L /tmp/q/share/qemu -kernel x86/msr.flat
for i in *.flat; do /tmp/q/qemu-system-x86_64 --no-reboot -nodefaults -device pc-testdev -device isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device pci-testdev -machine accel=kvm -L /tmp/q/share/qemu -kernel $i; done
qemu-system-x86_64 --enable-kvm -kernel vmlinux -append "console=ttyS0 root=/dev/vda init=/sbin/sh" -cpu host -smp 2 -m 2G -display none -serial stdio -drive file=testdisk.img,if=virtio -drive file=vac.img,if=virtio -no-reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment