參考資訊:
https://people.debian.org/~aurel32/qemu/armel/
步驟如下:
$ sudo apt-get install qemu qemu-utils qemu-system-arm -y $ cd $ wget http://ftp.us.debian.org/debian/dists/Debian8.11/main/installer-armel/current/images/versatile/netboot/initrd.gz $ wget http://ftp.us.debian.org/debian/dists/Debian8.11/main/installer-armel/current/images/versatile/netboot/vmlinuz-3.16.0-6-versatile $ qemu-img create disk.img 10G $ qemu-system-arm -M versatilepb -m 256M -kernel vmlinuz-3.16.0-6-versatile -initrd initrd.gz -hda disk.img
接著就一路安裝到底
安裝完成後,記得提取initrd和vmlinuz
$ sudo losetup -f disk.img $ sudo kpartx -a /dev/loop0 $ sudo mount /dev/mapper/loop0p1 /mnt/ $ cp /mnt/boot/initrd.img-3.16.0-6-versatile . $ cp /mnt/boot/vmlinuz-3.16.0-6-versatile . $ sudo umount /mnt $ sudo kpartx -d /dev/loop0 $ sudo losetup -d /dev/loop0
接著就可以正常開機
$ qemu-system-arm -M versatilepb -m 256M -boot c -kernel vmlinuz-3.16.0-6-versatile -initrd initrd.img-3.16.0-6-versatile -hda disk.img -append "root=/dev/sda1"
如果不想手動安裝,可以使用aurel32做好的Image,步驟如下:
$ cd $ wget https://people.debian.org/~aurel32/qemu/armel/initrd.img-3.2.0-4-versatile $ wget https://people.debian.org/~aurel32/qemu/armel/vmlinuz-3.2.0-4-versatile $ wget https://people.debian.org/~aurel32/qemu/armel/debian_wheezy_armel_desktop.qcow2 $ qemu-system-arm -M versatilepb -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.img-3.2.0-4-versatile -hda debian_wheezy_armel_desktop.qcow2 -append "root=/dev/sda1"
root:root, user:user