This is a significant change, and so we’d like a bit more real-life testing to go into it before we bless it. To this end, we’re asking for anyone using Multipass, either standalone or through Snapcraft, to have a go and let us know of any problems.
To get the strict Multipass, you need to refresh to edge/pr1074:
Everything should behave as usual, with the added benefit that you can run Multipass on Ubuntu Core, too! With Core, you will need sudo to run multipass for now.
Thank you! And please report any problems on our PR: #1074 or below.
$ snapcraft
Launching a VM.
Launched: snapcraft-gimp
error: no changes of type "auto-refresh" found
2020-04-08T15:19:02Z INFO Waiting for restart...
snapd 2.44.1 from Canonical✓ installed
Source path "/tmp/tmp01w0rqs3/core18.snap" does not exist
An error occurred with the instance when trying to copy files with 'multipass': returned exit code 1.
Ensure that 'multipass' is setup correctly and try again.
EDIT: seems reproducible…
EDIT2: also errors the same way for audacity
EDIT3: ignore this post - I screwed up and didn’t update snapcraft
-- Logs begin at Tue 2020-03-03 19:40:12 GMT, end at Thu 2020-04-09 12:27:22 BST. --
Apr 09 11:39:56 defiant systemd[1]: Started Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant multipass.multipassd[3519]: cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_jjNqnk//dev: No such file or directory
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 1.
Apr 09 11:39:57 defiant systemd[1]: Stopped Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant systemd[1]: Started Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant multipass.multipassd[3754]: cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_NuZQm2//dev: No such file or directory
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 2.
Apr 09 11:39:57 defiant systemd[1]: Stopped Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant systemd[1]: Started Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant multipass.multipassd[3906]: cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_f9EIZy//dev: No such file or directory
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 3.
Apr 09 11:39:57 defiant systemd[1]: Stopped Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant systemd[1]: Started Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant multipass.multipassd[4048]: cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_z6Rhck//dev: No such file or directory
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 4.
Apr 09 11:39:57 defiant systemd[1]: Stopped Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant systemd[1]: Started Service for snap application multipass.multipassd.
Apr 09 11:39:57 defiant multipass.multipassd[4174]: cannot perform operation: mount --rbind /dev /tmp/snap.rootfs_J4lEyQ//dev: No such file or directory
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Main process exited, code=exited, status=1/FAILURE
Apr 09 11:39:57 defiant systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Apr 09 11:39:58 defiant systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 5.
Apr 09 11:39:58 defiant systemd[1]: Stopped Service for snap application multipass.multipassd.
Apr 09 11:39:58 defiant systemd[1]: snap.multipass.multipassd.service: Start request repeated too quickly.
Apr 09 11:39:58 defiant systemd[1]: snap.multipass.multipassd.service: Failed with result 'exit-code'.
Apr 09 11:39:58 defiant systemd[1]: Failed to start Service for snap application multipass.multipassd.
This might be a reappearance of the AppArmor bug that @jdstrand tried to fix for @popey and myself when running on ZFS.
Yup, this is another ZFS-triggered bug with AppArmor and Snaps starting out of order on boot. Jamie has had a look at it, and @zyga-snapd is working on fixing it in Snapd.
do you have any workaround for this? I am new to snapcraft, using version 3.11 / on 20.04 and tried some of the suggestions listed here about testing and restarting multipass and my multipass seems to be working as I can see them running with “multipass list” but whenever I run “snapcraft” I get:
error: no changes of type “auto-refresh” found
Source path “/tmp/tmpa6n0l5pa/snapd.snap” does not exist
An error occurred with the instance when trying to copy files with ‘multipass’: returned exit code 1.
Ensure that ‘multipass’ is setup correctly and try again.
It sounds like you need a newer Snapcraft. As @Saviq mentioned in the initial post, 3.11 is too old. At this point, you can probably use the candidate channel rather than edge though.
The problem is that strict confined snaps run with a private /tmp directory. Snapcraft <= 3.11 try to use /tmp to pass a file to Multipass, which worked fine when Multipass used classic confinement but breaks under strict confinement. Newer Snapcraft uses a method that works for both old and new Multipass.