Monday, July 20, 2015
qemu + arm64
Instructions on how to install debian in a qemu image:
Trial one:
https://gist.github.com/philipz/04a9a165f8ce561f7ddd
Mostly it worked, but I couldn’t copy the initd and linux from qemu to host. The /boot partition was empty.
Trial two:
This seems to be more sophisticated. The UEFI allows to boot from the disk image rather than from a separate initd and linux.
https://wiki.ubuntu.com/ARM64/QEMU
See also this:
http://blog.eciton.net/uefi/qemu-aarch64-jessie.html
This didn’t work too well. It just kind of panics. Seems to be that Qemu 2.2 is required for UEFI.
Trial three:
Basically a re-try of trial one, but exploring alternate approaches of getting the kernel off the VM. This page explains how to mount a host directory onto the guest
http://www.bennee.com/~alex/blog/2014/05/09/running-linux-in-qemus-aarch64-system-emulation-mode/
The following is a very impressive effort to document. It explains how to transfer files by network instead of file system, and it explains how to retrieve a working initrd.
https://gmplib.org/~tege/qemu.html
Note however, that the above method did not work for mips, due to network adapter not found. The below method did seem to allow to continue.
http://www.aurel32.net/info/debian_mips_qemu.php
See also this.
http://www.hellion.org.uk/blog/posts/debian-installer-arm64-dailies/
For reference, the up-to-date daily installer are here:
http://d-i.debian.org/daily-images/arm64/