Skip to content

Instantly share code, notes, and snippets.

View cho0h5's full-sized avatar
🤯

Youngho Cho cho0h5

🤯
  • Chung-Ang University
  • Korea
  • 07:16 (UTC +09:00)
View GitHub Profile
@anatol
anatol / qemucheatsheet
Created December 30, 2018 02:52
Install Arch in QEMU and run KTSAN
https://medium.com/@clem.boin/creating-a-minimal-kernel-development-setup-using-qemu-and-archlinux-987896954d84
# Install Arch system
qemu-image -f qcow2 kernel-dev-archlinux.img 4G
wget http://mirrors.edge.kernel.org/archlinux/iso/2018.12.01/archlinux-2018.12.01-x86_64.iso
# Note that ping does not work here
qemu-system-x86_64 -cdrom archlinux-2018.12.01-x86_64.iso -boot order=d -drive file=kernel-dev-archlinux.img,format=qcow2 -m 2G -enable-kvm -cpu host -smp 8 -net user,hostfwd=tcp::10022-:22 -net nic