I am usingUbuntu preinstalled server image on raspi 3 B+ to be able to build snaps for arm64 devices. The build has failed with following error:
ubuntu@ubuntu:~/testsnap$ sudo snapcraft
Using 'snap/snapcraft.yaml': Project assets will be searched for from the 'snap' directory.
Launching a VM.
Starting snapcraft-my-snap-name -[2019-04-30T08:41:29.900] [error] [snapcraft-my-snap-name] process error occurred FailedToStart
launch failed: failed to start qemu instance
An error occurred with the instance when trying to launch with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
After this I tested if launching a VM using multipass was success or not with the following result:
sudo multipass launch
Starting lucrative-buck /[2019-04-30T09:04:02.001] [error] [lucrative-buck] process error occurred FailedToStart
launch failed: failed to start qemu instance
ubuntu@ubuntu:~/testsnap$ sudo snap logs multipass
multipass multipass.libvirt-bin multipass.multipassd
ubuntu@ubuntu:~/testsnap$ sudo snap logs multipass
2019-04-30T09:04:00Z multipassd[2644]: process program 'qemu-system-arm'
2019-04-30T09:04:00Z dnsmasq[2869]: using nameserver 127.0.0.53#53
2019-04-30T09:04:00Z multipassd[2644]: process arguments '--enable-kvm, -hda, /var/snap/multipass/common/data/multipassd/vault/instances/lucrative-buck/ubuntu-18.04-server-cloudimg-armhf.img, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/lucrative-buck/cloud-init-config.iso,if=virtio,format=raw,snapshot=off,read-only, -smp, 1, -m, 1024M, -device, virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:d8:4d:94, -netdev, tap,id=hostnet0,ifname=tap-b9c20b8e
2019-04-30T09:04:00Z dnsmasq[2869]: reading /etc/resolv.conf
2019-04-30T09:04:00Z dnsmasq[2869]: using nameserver 127.0.0.53#53
2019-04-30T09:04:00Z dnsmasq[2869]: reading /etc/resolv.conf
2019-04-30T09:04:00Z dnsmasq[2869]: using nameserver 127.0.0.53#53
2019-04-30T09:04:01Z multipassd[2644]: process state changed to Starting
2019-04-30T09:04:02Z multipassd[2644]: process state changed to NotRunning
2019-04-30T09:04:02Z multipassd[2644]: process error occurred FailedToStart
For some reason the process is failing. I was wondering if any of you folks have encountered this issue. I assumed few folks would have tried this after running into issue of cross compilation of snaps which is currently not possible.
I really need this to work on Ubuntu server for arm and not some other distro like Ubuntu Mate for raspberry pi (where snapping actually works using the multipass). This is a requirement beyond my control.