Skip to content

Instantly share code, notes, and snippets.

@eirikb
Created April 30, 2023 14:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eirikb/0e0ec512f32a742d299f179c4864f8c2 to your computer and use it in GitHub Desktop.
Save eirikb/0e0ec512f32a742d299f179c4864f8c2 to your computer and use it in GitHub Desktop.
QEMU Arch Linux ARM64 aarch64
wget http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
qemu-img create root.img 32G
mkfs.ext4 root.img
mkdir root
sudo mount root.img root
sudo bsdtar -xpf ArchLinuxARM-aarch64-latest.tar.gz -C root
sudo cp -r root/boot .
sudo umount root
qemu-system-aarch64 -M virt -cpu cortex-a72 -kernel boot/Image -hda root.img -append "root=/dev/vda rw"
# Press ctrl+alt+2 to change to serial view. Or append this to above command:
# -serial stdio -display none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment