Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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