Recently I have tried to concurrently build multiple snap packages with Multipass as the provider. The build fails with the following error after a while that the second instance is started, on both the instances.
An error occurred when trying to execute 'sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True apt-get dist-upgrade --yes' with 'multipass': returned exit code 255.
When I checked
multipass list I noticed that the two instances have been assigned the same IPv4 address which I suppose is the root cause of the problem. The problem does not appear with the LXD backend, but it would be convenient to be able to build on Multipass as well.
The multipass instance is installed on Ubuntu 18.04 with KVM-QEMU stack and I have tried both stable and edge release channels, reaching the same issue. Is there any way to solve this issue?