Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # download debian installer files
- curl http://ftp.de.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/netboot/initrd.gz -o installer-initrd.gz
- curl http://ftp.de.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/netboot/mini.iso -o mini.iso
- curl http://ftp.de.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/netboot/vmlinuz -o installer-vmlinuz
- # create qcow2 hard-drive
- qemu-img create -f qcow2 debian-hda.qcow2 8G
- # run installation
- qemu-system-arm -M virt -cpu cortex-a7 -m 1G -kernel installer-vmlinuz -initrd installer-initrd.gz -hda debian-hda.qcow2 -append "console=ttyAMA0" -drive file=mini.iso,id=cdrom,if=none,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -nographic -netdev user,id=mynet -device virtio-net-device,netdev=mynet
- # mount qcow2 image in host system and
- # copy vmlinuz-5.10.0-18-armmp-lpae and initrd.img-5.10.0-18-armmp-lpae
- # see blog links for details.
- # alternative approach to mount it:
- # https://gist.github.com/shamil/62935d9b456a6f9877b5
- # run debian after copying the two files
- "C:\Program Files\qemu\qemu-system-arm.exe" -M virt -cpu cortex-a7 -m 1G -initrd initrd.img-5.10.0-18-armmp-lpae \
- -kernel vmlinuz-5.10.0-18-armmp-lpae -append "root=/dev/vda2 console=ttyAMA0" \
- -drive if=virtio,file=debian-hda.qcow2,format=qcow2,id=hd \
- -netdev user,id=mynet,hostfwd=tcp::2222-:22 \
- -device virtio-net-device,netdev=mynet -serial stdio
Advertisement
Add Comment
Please, Sign In to add comment