Skip to content

Instantly share code, notes, and snippets.

@dbolser
Created March 29, 2019 13:26
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 dbolser/4cd3ba5bdd884be47a60d0b94ad3a582 to your computer and use it in GitHub Desktop.
Save dbolser/4cd3ba5bdd884be47a60d0b94ad3a582 to your computer and use it in GitHub Desktop.
# -serial stdio: redirect the virtual hosts stdio to my console
cur=$(pwd)
sudo qemu-system-arm \
-m 2048 \
-M virt \
-cpu cortex-a15 \
-nographic \
-kernel ${cur}/archlinux-latest/zImage \
-append "root=/dev/vda1 rootfstype=ext4 rw" \
-initrd ${cur}/archlinux-latest/initramfs-linux.img \
-drive "file=${cur}/archlinux-latest/armbox.img,if=none,id=hd0,format=raw" \
-device virtio-blk-device,drive=hd0 \
-netdev "user,id=n0" \
-device virtio-net-device,netdev=n0 \
-netdev "bridge,id=n1,br=vmboxnet" \
-device virtio-net-device,netdev=n1 \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment