1 2 3 4 5 6 7 8 9 10
#!/bin/bash - filename="disk.img" qemu-system-aarch64 -m 2048 -cpu cortex-a57 \ -smp 1 -M virt -bios QEMU_EFI.fd -serial stdio \ -drive if=none,file=$filename,id=hd0 \ -device virtio-blk-device,drive=hd0 \ -kernel mnt/boot/Image -initrd mnt/boot/initramfs-linux.img \ -append "root=/dev/vda1"
You can clone a snippet to your computer for local editing. Learn more.