Created
November 17, 2021 21:47
-
-
Save aep/b8ee58503bab4d91169bffb1549acba4 to your computer and use it in GitHub Desktop.
simple archlinuxarm on macbook m1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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