-
Notifications
You must be signed in to change notification settings - Fork 726
Closed
Description
Describe the bug
When I run the command snapcraft
to snap an app, I get the following error related to multipass:
Launching a VM.
Build instance created with incompatible snapcraft, cleaning.
launch failed: The following errors occurred:
failed to determine IP address
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.
Logs
journalctl -au snap.multipass.*
gives me this:
juil. 21 21:51:04 amethyst multipassd[9674]: Cancelling delayed shutdown
juil. 21 21:51:04 amethyst multipassd[9674]: No mounts to stop for instance "snapcraft-amethyst"
juil. 21 21:51:04 amethyst multipassd[9674]: QMP: {"return": {}}
juil. 21 21:51:04 amethyst multipassd[9674]: QMP: {"timestamp": {"seconds": 1595361064, "microseconds": 803880}, "event": "POWERDOWN"}
juil. 21 21:51:04 amethyst multipassd[9674]: VM powering down
juil. 21 21:51:06 amethyst multipassd[9674]: QMP: {"timestamp": {"seconds": 1595361066, "microseconds": 183336}, "event": "SHUTDOWN", "data": {"guest": true}}
juil. 21 21:51:06 amethyst multipassd[9674]: VM shut down
juil. 21 21:51:06 amethyst multipassd[9674]: process finished with exit code 0
juil. 21 21:51:06 amethyst multipassd[9674]: attempting to release non-existant addr: 52:54:00:12:b8:3d
juil. 21 21:51:09 amethyst multipassd[9674]: Read pid "1293" from file "/var/snap/multipass/common/data/multipassd/network/dnsmasq.pid"
juil. 21 21:51:09 amethyst multipassd[9674]: existing dnsmasq found with pid 1293
juil. 21 21:51:14 amethyst multipassd[9674]: starting: qemu-img info /var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img
juil. 21 21:51:14 amethyst multipassd[16090]: Applying AppArmor policy: multipass.qemu-img
juil. 21 21:51:14 amethyst multipassd[9674]: starting: qemu-system-x86_64 --version
juil. 21 21:51:15 amethyst multipassd[9674]: starting: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img 274877906944
juil. 21 21:51:15 amethyst multipassd[16099]: Applying AppArmor policy: multipass.qemu-img
juil. 21 21:51:16 amethyst multipassd[9674]: starting: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img
juil. 21 21:51:16 amethyst multipassd[9674]: process working dir '/snap/multipass/2367/qemu'
juil. 21 21:51:16 amethyst multipassd[9674]: process program 'qemu-system-x86_64'
juil. 21 21:51:16 amethyst multipassd[9674]: process arguments '--enable-kvm, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img,if=none,format=qcow2,disca>
juil. 21 21:51:16 amethyst multipassd[9674]: starting: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.jd9674
juil. 21 21:51:16 amethyst multipassd[9674]: qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
juil. 21 21:51:16 amethyst multipassd[9674]: starting: qemu-system-x86_64 --enable-kvm -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/snapcraft-amethyst/ubuntu-20.04-minimal-cloudimg-amd64.img,if=none,format=qcow2>
juil. 21 21:51:16 amethyst multipassd[16127]: Applying AppArmor policy: multipass.snapcraft-amethyst.qemu-system-x86_64
juil. 21 21:51:16 amethyst multipassd[9674]: process started
juil. 21 21:51:16 amethyst multipassd[9674]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 11, "major": 2}, "package": "(Debian 1:2.11+dfsg-1ubuntu7.28)"}, "capabilities": []}}
juil. 21 21:51:17 amethyst multipassd[9674]: QMP: {"return": {}}
juil. 21 21:51:29 amethyst multipassd[9674]: QMP: {"timestamp": {"seconds": 1595361089, "microseconds": 676476}, "event": "NIC_RX_FILTER_CHANGED", "data": {"name": "net0", "path": "/machine/peripheral/net0/virtio-backend"}}
juil. 21 21:55:15 amethyst multipassd[9674]: Cannot open ssh session on "snapcraft-amethyst" shutdown: failed to determine IP address
juil. 21 21:55:15 amethyst multipassd[9674]: Shutdown request delayed for 10 minutes
Additional info
- OS: Kubuntu 20.04
multipass version
multipass 1.4.0-dev.198+g6a0149ef
multipassd 1.4.0-dev.198+g6a0149ef
multipass info --all
info failed: failed to determine IP address
Additional context
I successfully created a snap yesterday. Meanwhile, I did the following (from my bash history):
634 multipass launch --name ubuntu-lts
635 multipass exec ubuntu-lts -- lsb_release -a
636 multipass list
637 multipass stop ubuntu-lts
638 multipass list
639 multipass delete ubuntu-lts snapcraft-plop
I tried with a 3g hot spot, same thing.
abitrolly and hugbubby