Snapcraft can't re-use build VM if anything went wrong with the initial setup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Low
|
Sergio Schvezov |
Bug Description
I made the mistake of trying build VMs from source, which installs snapcraft from the stable channel in the VM, which doesn't support managed-host as a build environment. This error looks like this:
$ SNAPCRAFT_
Launching a VM.
Launched: snapcraft-
2018-09-
core 16-2.35 from 'canonical' installed
snapcraft 2.43.1 from Canonical✓ installed
SNAPCRAFT_
An error occurred when trying to execute 'snapcraft refresh' with 'multipass': returned exit code 2.
Okay, so I installed a snap on my host that I knew would work, and ran again:
$ SNAPCRAFT_
Launching a VM.
failed to launch: instance "snapcraft-
An error occurred when trying to launch the instance with 'multipass': returned exit code 2.
Ensure that 'multipass' is setup correctly and try again.
I need to either run `SNAPCRAFT_
Changed in snapcraft: | |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in snapcraft: | |
status: | Triaged → In Progress |
Changed in snapcraft: | |
status: | In Progress → Fix Released |