My goal is to run Ubuntu 16.04 (ARM) in Qemu (on Ubuntu 16.04 x64 host).
I tried to follow this -old- tutorial without success:
Home directory not accessible: Permission denied
pulseaudio: pa_context_connect() failed
pulseaudio: Reason: Connection refused
pulseaudio: Failed to initialize PA contextaudio: Could not init `pa' audio driver
Could not initialize SDL(No available video device) - exiting
Instead of the debian_squeeze_armel_standard.qcow2
image used there, I used ubuntu-16.04-preinstalled-server-armhf+raspi2.img.
Forgetting about the above-mentioned article, which is the correct way to run Ubuntu 16.04-arm on top of Qemu?
If it is not possible to run it over Qemu easily, is there any other alternative?
In this answer: Is there any prebuilt QEMU Ubuntu image(32bit) online? I have described the following working setups for Ubuntu 18.04 guest / host:
Those setups provide prebuilt disk images, and don't go through the installer. They are the best choices that I've seen so far.
Next, I've also managed to run the arm64 server image on QEMU. However, this goes through the installer, which is borderline impractically slow to do, unless you are not on an ARM host with KVM. This is specially painful because dozens of interactions are required to finish installation.
Here is the server script, tested on an Ubuntu 18.10 host:
GitHub upstream.
See also this for Raspberry Pi emulation: https://stackoverflow.com/questions/28880833/how-to-emulate-the-raspberry-pi-2-on-qemu/45814913#45814913
amd64 desktop shown at: How to run Ubuntu 16.04 Desktop on QEMU?
This will not work because the Image you are using is pre-compiled for Raspberry Pi 2 device and will work only on Raspberry Pi 2. Try this tutorial