Comment 1 for bug 1822407

Revision history for this message
Robert Merrill (rfmerrill) wrote :

To reproduce (use a machine with fast CPU...), on xenial as your host:

qemu-system-arm built from source:
  rmerrill@ubuntu-1404:~/qemu$ git remote get-url origin
  git://git.qemu-project.org/qemu.git
  rmerrill@ubuntu-1404:~/qemu$ git rev-parse --abbrev-ref HEAD
  stable-2.9
  rmerrill@ubuntu-1404:~/qemu$

Follow the instructions here: https://gist.github.com/takeshixx/686a4b5e057deff7892913bf69bcb85a

With the following changes:
- Download the bionic vmlinuz and initrd instead of xenial
- I ran into some trouble getting the network set up right on the host. Note that you will have to install isc-dhcp-server (NOT udhcpd as apt will helpfully suggest). You will also have to tweak apparmor to allow dhcpd to read conf files outside of its usual place.
- On the invocation of qemu-system-arm, change `-serial stdio` to `-serial mon:stdio` -- this is what you actually want anyway.
- Add `-smp 4` (or however many CPUs your host has, maybe minus one) to make the install go a little faster.