Skip to content

Instantly share code, notes, and snippets.

@raminfp
Created November 8, 2017 15:05
Show Gist options
  • Select an option

  • Save raminfp/b2ceb9b25e7858d11334e98d6aabd87f to your computer and use it in GitHub Desktop.

Select an option

Save raminfp/b2ceb9b25e7858d11334e98d6aabd87f to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
qemu-system-x86_64 \
-hda wheezy.img \
-m 2G \
-smp 2 \
-net user,hostfwd=tcp::10021-:22 -net nic \
-nographic \
-kernel arch/x86/boot/bzImage \
-append "console=ttyS0 root=/dev/sda debug earlyprintk=serial slub_debug=QUZ"\
-enable-kvm \
-pidfile vm.pid \
2>&1 | tee vm.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment