Skip to content

Instantly share code, notes, and snippets.

@aep
Created November 17, 2021 21:47
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 aep/b8ee58503bab4d91169bffb1549acba4 to your computer and use it in GitHub Desktop.
Save aep/b8ee58503bab4d91169bffb1549acba4 to your computer and use it in GitHub Desktop.
simple archlinuxarm on macbook m1
qemu-system-aarch64 \
-accel hvf \
-cpu cortex-a57 -M virt,highmem=off -smp 8 \
-m 4096 \
-nographic \
-no-reboot \
-kernel boot/Image.gz \
-append "root=/dev/vda rw kernel.panic=-1" \
-initrd boot/initramfs-linux-fallback.img \
-drive if=none,file=disk.qcow2,format=qcow2,id=hd0 \
-device virtio-blk-device,drive=hd0,serial="dummyserial" \
-device virtio-net-device,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp:127.0.0.1:2222-0.0.0.0:22 \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment