canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.74k stars 642 forks source link

Docker and Multipass networking conflicting #2477

Open RafaelMoreira1180778 opened 2 years ago

RafaelMoreira1180778 commented 2 years ago

Describe the bug After I launch an instance, the process hangs in 'starting' and nothing happens. Eventually it times out and I cannot start the instance.

To Reproduce

  1. Follow Installing snap on Arch Linux
  2. snap install multipass
  3. multipass launch -vvvv -c 2 -m 3G -d 10G -n pilot

Expected behavior I expected the virtual machine to launch, but the process hangs on the launching status.

Logs

$ multipass launch -vvvv -c 2 -m 3G -d 10G -n pilot

[2022-03-10T21:05:27.656] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/SHA256SUMS in cache: true
[2022-03-10T21:05:28.477] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/18/stable/current/SHA256SUMS in cache: true
[2022-03-10T21:05:33.830] [trace] [url downloader] Found https://cloud-images.ubuntu.com/buildd/releases/bionic/release/SHA256SUMS in cache: true
[2022-03-10T21:05:34.030] [trace] [url downloader] Found https://cloud-images.ubuntu.com/buildd/releases/focal/release/SHA256SUMS in cache: true
[2022-03-10T21:05:34.198] [trace] [url downloader] Found https://cloud-images.ubuntu.com/minimal/releases/xenial/release/SHA256SUMS in cache: true
[2022-03-10T21:05:34.205] [debug] [/snap/multipass/6130/bin/check_kvm_support] [2813] started: /snap/multipass/6130/bin/check_kvm_support 
[2022-03-10T21:05:34.320] [debug] [qemu-system-x86_64] [2820] started: qemu-system-x86_64 --version
[2022-03-10T21:07:57.773] [trace] [url downloader] Found https://cloud-images.ubuntu.com/releases/server/releases/focal/release-20220308/ubuntu-20.04-server-cloudimg-amd64.img in cache: false
[2022-03-10T21:08:01.221] [debug] [qemu-img] [2864] started: qemu-img info --output=json /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-10T21:08:01.365] [debug] [qemu-img] [2868] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-10T21:08:01.373] [debug] [qemu-img] [2873] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
[2022-03-10T21:08:01.400] [debug] [qemu-img] [2877] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-10T21:08:01.473] [debug] [pilot] process working dir '/snap/multipass/6130/qemu'
[2022-03-10T21:08:01.473] [info] [pilot] process program 'qemu-system-x86_64'   
[2022-03-10T21:08:01.474] [info] [pilot] process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:36:3f:14, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
[2022-03-10T21:08:01.476] [debug] [qemu-system-x86_64] [2900] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.mceECc
[2022-03-10T21:08:01.541] [info] [pilot] process state changed to Starting      
[2022-03-10T21:08:01.542] [info] [pilot] process state changed to Running       
[2022-03-10T21:08:01.543] [debug] [qemu-system-x86_64] [2909] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:36:3f:14 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso
[2022-03-10T21:08:01.543] [info] [pilot] process started                        
launch failed: The following errors occurred:                                   
pilot: timed out waiting for response
$ sudo snap logs multipass

2022-03-10T21:08:01Z multipassd[608]: process started
2022-03-10T21:08:01Z multipassd[608]: Waiting for SSH to be up
2022-03-10T21:08:01Z multipassd[608]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 4}, "package": "Debian 1:4.2-3ubuntu6.18"}, "capabilities": ["oob"]}}
2022-03-10T21:08:01Z multipassd[608]: QMP: {"return": {}}
2022-03-10T21:08:09Z multipassd[608]: QMP: {"timestamp": {"seconds": 1646946489, "microseconds": 930920}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[23]/virtio-backend"}}
2022-03-10T21:08:12Z dnsmasq-dhcp[743]: DHCPDISCOVER(mpqemubr0) 52:54:00:36:3f:14
2022-03-10T21:08:12Z dnsmasq-dhcp[743]: DHCPOFFER(mpqemubr0) 10.252.103.73 52:54:00:36:3f:14
2022-03-10T21:08:12Z dnsmasq-dhcp[743]: DHCPREQUEST(mpqemubr0) 10.252.103.73 52:54:00:36:3f:14
2022-03-10T21:08:12Z dnsmasq-dhcp[743]: DHCPACK(mpqemubr0) 10.252.103.73 52:54:00:36:3f:14 pilot
2022-03-10T21:08:53Z multipassd[608]: QMP: {"timestamp": {"seconds": 1646946533, "microseconds": 607387}, "event": "RTC_CHANGE", "data": {"offset": 1}}
$ journalctl -e --no-pager -u snapd

mar 10 21:02:44 betterthanamac systemd[1]: Starting Snap Daemon...
mar 10 21:02:44 betterthanamac snapd[671]: AppArmor status: apparmor not enabled
mar 10 21:02:44 betterthanamac snapd[671]: daemon.go:246: started snapd/2.54.4-1 (series 16; classic; devmode) endeavouros/ (amd64) linux/5.16.13-arch1-1.
mar 10 21:02:44 betterthanamac snapd[671]: daemon.go:339: adjusting startup timeout by 45s (pessimistic estimate of 30s plus 5s per snap)
mar 10 21:02:44 betterthanamac systemd[1]: Started Snap Daemon.
mar 10 21:07:58 betterthanamac snapd[671]: storehelpers.go:721: cannot refresh: snap has no updates available: "multipass", "snapd"
mar 10 21:08:04 betterthanamac snapd[671]: storehelpers.go:721: cannot refresh snap "core20": snap has no updates available
$ journalctl -e --no-pager -u snap.multipass.multipassd.service 
mar 10 21:02:43 betterthanamac systemd[1]: Started Service for snap application multipass.multipassd.
mar 10 21:02:45 betterthanamac multipassd[608]: Unable to determine subnet for the mpqemubr0 subnet
mar 10 21:02:45 betterthanamac multipassd[608]: Using AppArmor support
mar 10 21:02:45 betterthanamac multipassd[608]: Failed to enable AppArmor: AppArmor is not enabled
mar 10 21:02:45 betterthanamac multipassd[608]: Starting dnsmasq
mar 10 21:02:45 betterthanamac multipassd[608]: [743] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-interface=lo --interface=mpqemubr0 --listen-address=10.252.103.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.leases --dhcp-hostsfile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts --dhcp-range 10.252.103.2,10.252.103.254,infinite --conf-file=/var/snap/multipass/common/data/multipassd/network/dnsmasq-SMdFTv.conf
mar 10 21:02:45 betterthanamac dnsmasq[743]: started, version 2.80 cachesize 150
mar 10 21:02:45 betterthanamac dnsmasq[743]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
mar 10 21:02:45 betterthanamac dnsmasq-dhcp[743]: DHCP, IP range 10.252.103.2 -- 10.252.103.254, lease time infinite
mar 10 21:02:45 betterthanamac dnsmasq-dhcp[743]: DHCP, sockets bound exclusively to interface mpqemubr0
mar 10 21:02:45 betterthanamac dnsmasq[743]: using local addresses only for domain multipass
mar 10 21:02:45 betterthanamac dnsmasq[743]: no servers found in /etc/resolv.conf, will retry
mar 10 21:02:45 betterthanamac dnsmasq[743]: read /etc/hosts - 5 addresses
mar 10 21:02:45 betterthanamac dnsmasq-dhcp[743]: read /var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts
mar 10 21:02:45 betterthanamac multipassd[608]: [744] started: iptables-nft --wait -t filter --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: [747] started: iptables-nft --wait -t nat --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: [749] started: iptables-nft --wait -t mangle --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: [750] started: iptables-nft --wait -t raw --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: [751] started: iptables-legacy --wait -t filter --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: [752] started: iptables-legacy --wait -t nat --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: [754] started: iptables-legacy --wait -t mangle --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: [756] started: iptables-legacy --wait -t raw --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: Using iptables-nft for firewall rules.
mar 10 21:02:45 betterthanamac multipassd[608]: [758] started: iptables-nft --wait -t filter --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 10 21:02:45 betterthanamac multipassd[608]: [759] started: iptables-nft --wait -t nat --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 10 21:02:45 betterthanamac multipassd[608]: [760] started: iptables-nft --wait -t mangle --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 10 21:02:45 betterthanamac multipassd[608]: [761] started: iptables-nft --wait -t raw --list-rules
mar 10 21:02:45 betterthanamac multipassd[608]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 10 21:02:45 betterthanamac multipassd[608]: [762] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [776] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [777] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol tcp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [778] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [779] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [780] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol tcp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [782] started: iptables-nft --wait -t mangle --insert POSTROUTING --out-interface mpqemubr0 --protocol udp --dport 68 --jump CHECKSUM --checksum-fill --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [788] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.252.103.0/24 --destination 224.0.0.0/24 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [789] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.252.103.0/24 --destination 255.255.255.255/32 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [790] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.252.103.0/24 ! --destination 10.252.103.0/24 --protocol tcp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [792] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.252.103.0/24 ! --destination 10.252.103.0/24 --protocol udp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [793] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.252.103.0/24 ! --destination 10.252.103.0/24 --jump MASQUERADE --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [794] started: iptables-nft --wait -t filter --insert FORWARD --destination 10.252.103.0/24 --out-interface mpqemubr0 --match conntrack --ctstate RELATED,ESTABLISHED --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [796] started: iptables-nft --wait -t filter --insert FORWARD --source 10.252.103.0/24 --in-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [797] started: iptables-nft --wait -t filter --insert FORWARD --in-interface mpqemubr0 --out-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [798] started: iptables-nft --wait -t filter --append FORWARD --in-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: [800] started: iptables-nft --wait -t filter --append FORWARD --out-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 10 21:02:45 betterthanamac multipassd[608]: Error getting https://cloud-images.ubuntu.com/releases/streams/v1/index.json: Host cloud-images.ubuntu.com not found - trying cache.
mar 10 21:02:45 betterthanamac multipassd[608]: Error getting https://cloud-images.ubuntu.com/releases/streams/v1/com.ubuntu.cloud:released:download.json: Host cloud-images.ubuntu.com not found - trying cache.
mar 10 21:02:45 betterthanamac multipassd[608]: Error getting https://cloud-images.ubuntu.com/daily/streams/v1/index.json: Host cloud-images.ubuntu.com not found - trying cache.
mar 10 21:02:45 betterthanamac multipassd[608]: Error getting https://cloud-images.ubuntu.com/daily/streams/v1/com.ubuntu.cloud:daily:download.json: Host cloud-images.ubuntu.com not found - trying cache.
mar 10 21:02:45 betterthanamac multipassd[608]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz: Host cdimage.ubuntu.com not found
mar 10 21:02:45 betterthanamac multipassd[608]: Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz': Host cdimage.ubuntu.com not found
mar 10 21:02:45 betterthanamac multipassd[608]: Cannot retrieve headers for https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img: Host cloud-images.ubuntu.com not found
mar 10 21:02:45 betterthanamac multipassd[608]: Could not update manifest: failed to download from 'https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img': Host cloud-images.ubuntu.com not found
mar 10 21:02:45 betterthanamac multipassd[608]: Error getting https://codeload.github.com/canonical/multipass-workflows/zip/refs/heads/main: Host codeload.github.com not found - trying cache.
mar 10 21:02:46 betterthanamac multipassd[608]: gRPC listening on unix:/var/snap/multipass/common/multipass_socket, SSL:on
mar 10 21:02:46 betterthanamac multipassd[608]: QIODevice::write (QFile, "/var/snap/multipass/common/cache/multipassd/vault/multipassd-image-records.json"): device not open
mar 10 21:02:46 betterthanamac multipassd[608]: Starting Multipass 1.8.0
mar 10 21:02:46 betterthanamac multipassd[608]: Daemon arguments: /snap/multipass/6130/bin/multipassd --verbosity debug --logger platform
mar 10 21:02:51 betterthanamac dnsmasq[743]: reading /etc/resolv.conf
mar 10 21:02:51 betterthanamac dnsmasq[743]: using local addresses only for domain multipass
mar 10 21:02:51 betterthanamac dnsmasq[743]: using nameserver 172.18.1.2#53
mar 10 21:02:51 betterthanamac dnsmasq[743]: using nameserver 193.136.56.9#53
mar 10 21:05:34 betterthanamac multipassd[608]: [2813] started: /snap/multipass/6130/bin/check_kvm_support
mar 10 21:05:34 betterthanamac multipassd[608]: [2820] started: qemu-system-x86_64 --version
mar 10 21:08:01 betterthanamac multipassd[608]: [2864] started: qemu-img info --output=json /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
mar 10 21:08:01 betterthanamac multipassd[608]: [2868] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
mar 10 21:08:01 betterthanamac multipassd[608]: [2873] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
mar 10 21:08:01 betterthanamac multipassd[608]: [2877] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
mar 10 21:08:01 betterthanamac multipassd[608]: process working dir '/snap/multipass/6130/qemu'
mar 10 21:08:01 betterthanamac multipassd[608]: process program 'qemu-system-x86_64'
mar 10 21:08:01 betterthanamac multipassd[608]: process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:36:3f:14, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
mar 10 21:08:01 betterthanamac multipassd[608]: [2900] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.mceECc
mar 10 21:08:01 betterthanamac multipassd[608]: process state changed to Starting
mar 10 21:08:01 betterthanamac multipassd[608]: process state changed to Running
mar 10 21:08:01 betterthanamac multipassd[608]: [2909] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:36:3f:14 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso
mar 10 21:08:01 betterthanamac multipassd[608]: process started
mar 10 21:08:01 betterthanamac multipassd[608]: Waiting for SSH to be up
mar 10 21:08:01 betterthanamac multipassd[608]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 4}, "package": "Debian 1:4.2-3ubuntu6.18"}, "capabilities": ["oob"]}}
mar 10 21:08:01 betterthanamac multipassd[608]: QMP: {"return": {}}
mar 10 21:08:09 betterthanamac multipassd[608]: QMP: {"timestamp": {"seconds": 1646946489, "microseconds": 930920}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[23]/virtio-backend"}}
mar 10 21:08:12 betterthanamac dnsmasq-dhcp[743]: DHCPDISCOVER(mpqemubr0) 52:54:00:36:3f:14
mar 10 21:08:12 betterthanamac dnsmasq-dhcp[743]: DHCPOFFER(mpqemubr0) 10.252.103.73 52:54:00:36:3f:14
mar 10 21:08:12 betterthanamac dnsmasq-dhcp[743]: DHCPREQUEST(mpqemubr0) 10.252.103.73 52:54:00:36:3f:14
mar 10 21:08:12 betterthanamac dnsmasq-dhcp[743]: DHCPACK(mpqemubr0) 10.252.103.73 52:54:00:36:3f:14 pilot
mar 10 21:08:53 betterthanamac multipassd[608]: QMP: {"timestamp": {"seconds": 1646946533, "microseconds": 607387}, "event": "RTC_CHANGE", "data": {"offset": 1}}

Additional info

Name: pilot State: Unknown IPv4: -- Release: -- Image hash: b77c612dddae (Ubuntu 20.04 LTS) Load: -- Disk usage: -- Memory usage: -- Mounts: --

Saviq commented 2 years ago

Hi @RafaelMoreira1180778 this sounds like a firewall blocking traffic beyond DHCP. Can you ping 10.252.103.73 at all? Can you try disabling any firewall you have and try again?

All the traffic to the instances goes through the mpqemubr0 bridge, allowing that could also help.

RafaelMoreira1180778 commented 2 years ago

Hello @Saviq, I currently do not have any firewalls installed (none that I can't think of). While the machine was launching I performed a ping:

$ multipass launch -vvvv -c 2 -m 3G -d 10G -n pilot

[2022-03-11T11:04:13.906] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/SHA256SUMS in cache: true
[2022-03-11T11:04:14.230] [trace] [url downloader] Found https://cdimage.ubuntu.com/ubuntu-core/18/stable/current/SHA256SUMS in cache: true
[2022-03-11T11:04:14.469] [trace] [url downloader] Found https://cloud-images.ubuntu.com/buildd/releases/bionic/release/SHA256SUMS in cache: true
[2022-03-11T11:04:14.652] [trace] [url downloader] Found https://cloud-images.ubuntu.com/buildd/releases/focal/release/SHA256SUMS in cache: true
[2022-03-11T11:04:14.834] [trace] [url downloader] Found https://cloud-images.ubuntu.com/minimal/releases/xenial/release/SHA256SUMS in cache: true
[2022-03-11T11:04:14.842] [debug] [/snap/multipass/6130/bin/check_kvm_support] [2553] started: /snap/multipass/6130/bin/check_kvm_support 
[2022-03-11T11:04:15.005] [debug] [qemu-system-x86_64] [2560] started: qemu-system-x86_64 --version
[2022-03-11T11:04:26.084] [trace] [url downloader] Found https://cloud-images.ubuntu.com/releases/server/releases/focal/release-20220308/ubuntu-20.04-server-cloudimg-amd64.img in cache: false
[2022-03-11T11:04:29.523] [debug] [qemu-img] [3260] started: qemu-img info --output=json /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-11T11:04:29.811] [debug] [qemu-img] [3268] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-11T11:04:29.829] [debug] [qemu-img] [3273] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
[2022-03-11T11:04:29.871] [debug] [qemu-img] [3277] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-11T11:04:29.935] [debug] [pilot] process working dir '/snap/multipass/6130/qemu'
[2022-03-11T11:04:29.935] [info] [pilot] process program 'qemu-system-x86_64'   
[2022-03-11T11:04:29.935] [info] [pilot] process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:8f:62:a8, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
[2022-03-11T11:04:29.937] [debug] [qemu-system-x86_64] [3298] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.ZWfCoP
[2022-03-11T11:04:30.001] [info] [pilot] process state changed to Starting      
[2022-03-11T11:04:30.002] [info] [pilot] process state changed to Running       
[2022-03-11T11:04:30.002] [debug] [qemu-system-x86_64] [3307] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:8f:62:a8 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso
[2022-03-11T11:04:30.002] [info] [pilot] process started                        
Starting pilot 
$ ping 10.207.228.243

PING 10.207.228.243 (10.207.228.243) 56(84) bytes of data.
64 bytes from 10.207.228.243: icmp_seq=1 ttl=64 time=0.263 ms
64 bytes from 10.207.228.243: icmp_seq=2 ttl=64 time=0.592 ms
64 bytes from 10.207.228.243: icmp_seq=3 ttl=64 time=0.587 ms
64 bytes from 10.207.228.243: icmp_seq=4 ttl=64 time=0.656 ms
64 bytes from 10.207.228.243: icmp_seq=5 ttl=64 time=0.600 ms
64 bytes from 10.207.228.243: icmp_seq=6 ttl=64 time=0.568 ms
64 bytes from 10.207.228.243: icmp_seq=7 ttl=64 time=0.231 ms
64 bytes from 10.207.228.243: icmp_seq=8 ttl=64 time=0.894 ms
64 bytes from 10.207.228.243: icmp_seq=9 ttl=64 time=0.541 ms
64 bytes from 10.207.228.243: icmp_seq=10 ttl=64 time=0.567 ms
64 bytes from 10.207.228.243: icmp_seq=11 ttl=64 time=0.163 ms
64 bytes from 10.207.228.243: icmp_seq=12 ttl=64 time=0.533 ms
64 bytes from 10.207.228.243: icmp_seq=13 ttl=64 time=0.534 ms
64 bytes from 10.207.228.243: icmp_seq=14 ttl=64 time=0.237 ms
64 bytes from 10.207.228.243: icmp_seq=15 ttl=64 time=0.326 ms
64 bytes from 10.207.228.243: icmp_seq=16 ttl=64 time=0.217 ms
64 bytes from 10.207.228.243: icmp_seq=17 ttl=64 time=0.177 ms
64 bytes from 10.207.228.243: icmp_seq=18 ttl=64 time=0.558 ms
64 bytes from 10.207.228.243: icmp_seq=19 ttl=64 time=0.299 ms
64 bytes from 10.207.228.243: icmp_seq=20 ttl=64 time=0.575 ms
64 bytes from 10.207.228.243: icmp_seq=21 ttl=64 time=0.428 ms
64 bytes from 10.207.228.243: icmp_seq=22 ttl=64 time=0.509 ms
64 bytes from 10.207.228.243: icmp_seq=23 ttl=64 time=0.609 ms
64 bytes from 10.207.228.243: icmp_seq=24 ttl=64 time=0.223 ms
64 bytes from 10.207.228.243: icmp_seq=25 ttl=64 time=0.245 ms
64 bytes from 10.207.228.243: icmp_seq=26 ttl=64 time=0.276 ms
64 bytes from 10.207.228.243: icmp_seq=27 ttl=64 time=0.318 ms
64 bytes from 10.207.228.243: icmp_seq=28 ttl=64 time=0.677 ms
64 bytes from 10.207.228.243: icmp_seq=29 ttl=64 time=0.381 ms
64 bytes from 10.207.228.243: icmp_seq=30 ttl=64 time=0.555 ms
64 bytes from 10.207.228.243: icmp_seq=31 ttl=64 time=0.348 ms
64 bytes from 10.207.228.243: icmp_seq=32 ttl=64 time=0.441 ms
64 bytes from 10.207.228.243: icmp_seq=33 ttl=64 time=0.672 ms
64 bytes from 10.207.228.243: icmp_seq=34 ttl=64 time=0.636 ms
64 bytes from 10.207.228.243: icmp_seq=35 ttl=64 time=0.458 ms
64 bytes from 10.207.228.243: icmp_seq=36 ttl=64 time=0.421 ms
64 bytes from 10.207.228.243: icmp_seq=37 ttl=64 time=0.308 ms
64 bytes from 10.207.228.243: icmp_seq=38 ttl=64 time=0.259 ms
64 bytes from 10.207.228.243: icmp_seq=39 ttl=64 time=0.821 ms
64 bytes from 10.207.228.243: icmp_seq=40 ttl=64 time=0.600 ms
64 bytes from 10.207.228.243: icmp_seq=41 ttl=64 time=0.607 ms
64 bytes from 10.207.228.243: icmp_seq=42 ttl=64 time=0.623 ms
64 bytes from 10.207.228.243: icmp_seq=43 ttl=64 time=0.610 ms
64 bytes from 10.207.228.243: icmp_seq=44 ttl=64 time=0.609 ms
64 bytes from 10.207.228.243: icmp_seq=45 ttl=64 time=0.346 ms
64 bytes from 10.207.228.243: icmp_seq=46 ttl=64 time=0.253 ms
64 bytes from 10.207.228.243: icmp_seq=47 ttl=64 time=0.595 ms
64 bytes from 10.207.228.243: icmp_seq=48 ttl=64 time=0.606 ms
64 bytes from 10.207.228.243: icmp_seq=49 ttl=64 time=0.604 ms
64 bytes from 10.207.228.243: icmp_seq=50 ttl=64 time=0.431 ms
64 bytes from 10.207.228.243: icmp_seq=51 ttl=64 time=0.606 ms
64 bytes from 10.207.228.243: icmp_seq=52 ttl=64 time=0.593 ms
64 bytes from 10.207.228.243: icmp_seq=53 ttl=64 time=0.307 ms
64 bytes from 10.207.228.243: icmp_seq=54 ttl=64 time=0.625 ms
64 bytes from 10.207.228.243: icmp_seq=55 ttl=64 time=0.619 ms
64 bytes from 10.207.228.243: icmp_seq=56 ttl=64 time=0.607 ms
64 bytes from 10.207.228.243: icmp_seq=57 ttl=64 time=0.322 ms
64 bytes from 10.207.228.243: icmp_seq=58 ttl=64 time=0.596 ms
64 bytes from 10.207.228.243: icmp_seq=59 ttl=64 time=0.589 ms
64 bytes from 10.207.228.243: icmp_seq=60 ttl=64 time=0.621 ms
64 bytes from 10.207.228.243: icmp_seq=61 ttl=64 time=0.508 ms
64 bytes from 10.207.228.243: icmp_seq=62 ttl=64 time=0.591 ms
64 bytes from 10.207.228.243: icmp_seq=63 ttl=64 time=0.272 ms
64 bytes from 10.207.228.243: icmp_seq=64 ttl=64 time=0.617 ms
64 bytes from 10.207.228.243: icmp_seq=65 ttl=64 time=0.606 ms
64 bytes from 10.207.228.243: icmp_seq=66 ttl=64 time=0.596 ms
^C
--- 10.207.228.243 ping statistics ---
66 packets transmitted, 66 received, 0% packet loss, time 65855ms
rtt min/avg/max/mdev = 0.163/0.488/0.894/0.164 ms

I then waited for the timeout and restarted the snap.multipass.multipassd.service service:

$ journalctl -e --no-pager -u snap.multipass.multipassd.service

mar 11 11:03:27 betterthanamac systemd[1]: Started Service for snap application multipass.multipassd.
mar 11 11:03:29 betterthanamac multipassd[638]: Unable to determine subnet for the mpqemubr0 subnet
mar 11 11:03:29 betterthanamac multipassd[638]: Using AppArmor support
mar 11 11:03:29 betterthanamac multipassd[638]: Failed to enable AppArmor: AppArmor is not enabled
mar 11 11:03:29 betterthanamac multipassd[638]: Starting dnsmasq
mar 11 11:03:29 betterthanamac multipassd[638]: [766] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-interface=lo --interface=mpqemubr0 --listen-address=10.207.228.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.leases --dhcp-hostsfile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts --dhcp-range 10.207.228.2,10.207.228.254,infinite --conf-file=/var/snap/multipass/common/data/multipassd/network/dnsmasq-nDujuA.conf
mar 11 11:03:29 betterthanamac dnsmasq[766]: started, version 2.80 cachesize 150
mar 11 11:03:29 betterthanamac dnsmasq[766]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
mar 11 11:03:29 betterthanamac dnsmasq-dhcp[766]: DHCP, IP range 10.207.228.2 -- 10.207.228.254, lease time infinite
mar 11 11:03:29 betterthanamac dnsmasq-dhcp[766]: DHCP, sockets bound exclusively to interface mpqemubr0
mar 11 11:03:29 betterthanamac dnsmasq[766]: using local addresses only for domain multipass
mar 11 11:03:29 betterthanamac dnsmasq[766]: reading /etc/resolv.conf
mar 11 11:03:29 betterthanamac dnsmasq[766]: using local addresses only for domain multipass
mar 11 11:03:29 betterthanamac dnsmasq[766]: using nameserver 192.168.1.1#53
mar 11 11:03:29 betterthanamac dnsmasq[766]: read /etc/hosts - 5 addresses
mar 11 11:03:29 betterthanamac dnsmasq-dhcp[766]: read /var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts
mar 11 11:03:29 betterthanamac multipassd[638]: [767] started: iptables-nft --wait -t filter --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: [770] started: iptables-nft --wait -t nat --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: [772] started: iptables-nft --wait -t mangle --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: [773] started: iptables-nft --wait -t raw --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: [774] started: iptables-legacy --wait -t filter --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: [775] started: iptables-legacy --wait -t nat --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: [777] started: iptables-legacy --wait -t mangle --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: [779] started: iptables-legacy --wait -t raw --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: Using iptables-nft for firewall rules.
mar 11 11:03:29 betterthanamac multipassd[638]: [781] started: iptables-nft --wait -t filter --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:03:29 betterthanamac multipassd[638]: [782] started: iptables-nft --wait -t nat --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:03:29 betterthanamac multipassd[638]: [783] started: iptables-nft --wait -t mangle --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:03:29 betterthanamac multipassd[638]: [784] started: iptables-nft --wait -t raw --list-rules
mar 11 11:03:29 betterthanamac multipassd[638]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:03:29 betterthanamac multipassd[638]: [785] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [793] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [794] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol tcp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [795] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [796] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [797] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol tcp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [798] started: iptables-nft --wait -t mangle --insert POSTROUTING --out-interface mpqemubr0 --protocol udp --dport 68 --jump CHECKSUM --checksum-fill --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [800] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 224.0.0.0/24 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [801] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 255.255.255.255/32 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [802] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol tcp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [804] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol udp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [805] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --jump MASQUERADE --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [806] started: iptables-nft --wait -t filter --insert FORWARD --destination 10.207.228.0/24 --out-interface mpqemubr0 --match conntrack --ctstate RELATED,ESTABLISHED --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [808] started: iptables-nft --wait -t filter --insert FORWARD --source 10.207.228.0/24 --in-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [809] started: iptables-nft --wait -t filter --insert FORWARD --in-interface mpqemubr0 --out-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [810] started: iptables-nft --wait -t filter --append FORWARD --in-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: [813] started: iptables-nft --wait -t filter --append FORWARD --out-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:03:29 betterthanamac multipassd[638]: Cannot retrieve headers for https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz: Host cdimage.ubuntu.com not found
mar 11 11:03:29 betterthanamac multipassd[638]: Could not update manifest: failed to download from 'https://cdimage.ubuntu.com/ubuntu-core/16/stable/current/ubuntu-core-16-amd64.img.xz': Host cdimage.ubuntu.com not found
mar 11 11:03:29 betterthanamac multipassd[638]: Cannot retrieve headers for https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img: Host cloud-images.ubuntu.com not found
mar 11 11:03:29 betterthanamac multipassd[638]: Could not update manifest: failed to download from 'https://cloud-images.ubuntu.com/buildd/releases/bionic/release/bionic-server-cloudimg-amd64-disk.img': Host cloud-images.ubuntu.com not found
mar 11 11:03:29 betterthanamac multipassd[638]: Error getting https://codeload.github.com/canonical/multipass-workflows/zip/refs/heads/main: Host codeload.github.com not found - trying cache.
mar 11 11:03:29 betterthanamac multipassd[638]: gRPC listening on unix:/var/snap/multipass/common/multipass_socket, SSL:on
mar 11 11:03:29 betterthanamac multipassd[638]: QIODevice::write (QFile, "/var/snap/multipass/common/cache/multipassd/vault/multipassd-image-records.json"): device not open
mar 11 11:03:29 betterthanamac multipassd[638]: Starting Multipass 1.8.0
mar 11 11:03:29 betterthanamac multipassd[638]: Daemon arguments: /snap/multipass/6130/bin/multipassd --verbosity debug --logger platform
mar 11 11:03:31 betterthanamac dnsmasq[766]: reading /etc/resolv.conf
mar 11 11:03:31 betterthanamac dnsmasq[766]: using local addresses only for domain multipass
mar 11 11:03:31 betterthanamac dnsmasq[766]: using nameserver 192.168.1.1#53
mar 11 11:03:32 betterthanamac dnsmasq[766]: reading /etc/resolv.conf
mar 11 11:03:32 betterthanamac dnsmasq[766]: using local addresses only for domain multipass
mar 11 11:03:32 betterthanamac dnsmasq[766]: using nameserver 192.168.1.1#53
mar 11 11:04:14 betterthanamac multipassd[638]: [2553] started: /snap/multipass/6130/bin/check_kvm_support
mar 11 11:04:15 betterthanamac multipassd[638]: [2560] started: qemu-system-x86_64 --version
mar 11 11:04:29 betterthanamac multipassd[638]: [3260] started: qemu-img info --output=json /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:04:29 betterthanamac multipassd[638]: [3268] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:04:29 betterthanamac multipassd[638]: [3273] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
mar 11 11:04:29 betterthanamac multipassd[638]: [3277] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:04:29 betterthanamac multipassd[638]: process working dir '/snap/multipass/6130/qemu'
mar 11 11:04:29 betterthanamac multipassd[638]: process program 'qemu-system-x86_64'
mar 11 11:04:29 betterthanamac multipassd[638]: process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:8f:62:a8, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
mar 11 11:04:29 betterthanamac multipassd[638]: [3298] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.ZWfCoP
mar 11 11:04:30 betterthanamac multipassd[638]: process state changed to Starting
mar 11 11:04:30 betterthanamac multipassd[638]: process state changed to Running
mar 11 11:04:30 betterthanamac multipassd[638]: [3307] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:8f:62:a8 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso
mar 11 11:04:30 betterthanamac multipassd[638]: process started
mar 11 11:04:30 betterthanamac multipassd[638]: Waiting for SSH to be up
mar 11 11:04:30 betterthanamac multipassd[638]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 4}, "package": "Debian 1:4.2-3ubuntu6.18"}, "capabilities": ["oob"]}}
mar 11 11:04:30 betterthanamac multipassd[638]: QMP: {"return": {}}
mar 11 11:04:38 betterthanamac multipassd[638]: QMP: {"timestamp": {"seconds": 1646996678, "microseconds": 929119}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[23]/virtio-backend"}}
mar 11 11:04:41 betterthanamac dnsmasq-dhcp[766]: DHCPDISCOVER(mpqemubr0) 52:54:00:8f:62:a8
mar 11 11:04:41 betterthanamac dnsmasq-dhcp[766]: DHCPOFFER(mpqemubr0) 10.207.228.243 52:54:00:8f:62:a8
mar 11 11:04:41 betterthanamac dnsmasq-dhcp[766]: DHCPREQUEST(mpqemubr0) 10.207.228.243 52:54:00:8f:62:a8
mar 11 11:04:41 betterthanamac dnsmasq-dhcp[766]: DHCPACK(mpqemubr0) 10.207.228.243 52:54:00:8f:62:a8 pilot
mar 11 11:05:14 betterthanamac multipassd[638]: QMP: {"timestamp": {"seconds": 1646996714, "microseconds": 743967}, "event": "RTC_CHANGE", "data": {"offset": 1}}
mar 11 11:07:56 betterthanamac multipassd[638]: [4356] started: /snap/multipass/6130/bin/check_kvm_support
mar 11 11:07:56 betterthanamac multipassd[638]: process working dir '/snap/multipass/6130/qemu'
mar 11 11:07:56 betterthanamac multipassd[638]: process program 'qemu-system-x86_64'
mar 11 11:07:56 betterthanamac multipassd[638]: process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:8f:62:a8, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
mar 11 11:07:56 betterthanamac multipassd[638]: QProcess: Destroyed while process ("qemu-system-x86_64") is still running.
mar 11 11:07:56 betterthanamac multipassd[638]: process error occurred Crashed program: qemu-system-x86_64; error: Process crashed
mar 11 11:07:56 betterthanamac multipassd[638]: process state changed to NotRunning
mar 11 11:07:56 betterthanamac multipassd[638]: error: program: qemu-system-x86_64; error: Process crashed
mar 11 11:07:56 betterthanamac multipassd[638]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:07:56 betterthanamac multipassd[638]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:07:56 betterthanamac multipassd[638]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:07:56 betterthanamac multipassd[638]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:07:56 betterthanamac multipassd[638]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:07:56 betterthanamac multipassd[638]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:07:57 betterthanamac systemd[1]: snap.multipass.multipassd.service: Main process exited, code=dumped, status=11/SEGV
mar 11 11:08:27 betterthanamac systemd[1]: snap.multipass.multipassd.service: State 'stop-sigterm' timed out. Killing.
mar 11 11:08:27 betterthanamac systemd[1]: snap.multipass.multipassd.service: Killing process 766 (dnsmasq) with signal SIGKILL.
mar 11 11:08:27 betterthanamac systemd[1]: snap.multipass.multipassd.service: Failed with result 'core-dump'.
mar 11 11:08:27 betterthanamac systemd[1]: snap.multipass.multipassd.service: Consumed 38.217s CPU time.
mar 11 11:08:27 betterthanamac systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 1.
mar 11 11:08:27 betterthanamac systemd[1]: Stopped Service for snap application multipass.multipassd.
mar 11 11:08:27 betterthanamac systemd[1]: snap.multipass.multipassd.service: Consumed 38.217s CPU time.
mar 11 11:08:27 betterthanamac systemd[1]: Started Service for snap application multipass.multipassd.
mar 11 11:08:27 betterthanamac multipassd[4422]: Using AppArmor support
mar 11 11:08:27 betterthanamac multipassd[4422]: Failed to enable AppArmor: AppArmor is not enabled
mar 11 11:08:27 betterthanamac multipassd[4422]: Starting dnsmasq
mar 11 11:08:27 betterthanamac multipassd[4422]: [4466] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-interface=lo --interface=mpqemubr0 --listen-address=10.207.228.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.leases --dhcp-hostsfile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts --dhcp-range 10.207.228.2,10.207.228.254,infinite --conf-file=/var/snap/multipass/common/data/multipassd/network/dnsmasq-RAXnZS.conf
mar 11 11:08:27 betterthanamac dnsmasq[4466]: started, version 2.80 cachesize 150
mar 11 11:08:27 betterthanamac dnsmasq[4466]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
mar 11 11:08:27 betterthanamac dnsmasq-dhcp[4466]: DHCP, IP range 10.207.228.2 -- 10.207.228.254, lease time infinite
mar 11 11:08:27 betterthanamac dnsmasq-dhcp[4466]: DHCP, sockets bound exclusively to interface mpqemubr0
mar 11 11:08:27 betterthanamac dnsmasq[4466]: using local addresses only for domain multipass
mar 11 11:08:27 betterthanamac dnsmasq[4466]: reading /etc/resolv.conf
mar 11 11:08:27 betterthanamac dnsmasq[4466]: using local addresses only for domain multipass
mar 11 11:08:27 betterthanamac dnsmasq[4466]: using nameserver 192.168.1.1#53
mar 11 11:08:27 betterthanamac dnsmasq[4466]: read /etc/hosts - 5 addresses
mar 11 11:08:27 betterthanamac dnsmasq-dhcp[4466]: read /var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts
mar 11 11:08:27 betterthanamac multipassd[4422]: [4467] started: iptables-nft --wait -t filter --list-rules
mar 11 11:08:27 betterthanamac multipassd[4422]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:27 betterthanamac multipassd[4422]: Using iptables-nft for firewall rules.
mar 11 11:08:27 betterthanamac multipassd[4422]: [4468] started: iptables-nft --wait -t filter --list-rules
mar 11 11:08:27 betterthanamac multipassd[4422]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:27 betterthanamac multipassd[4422]: [4469] started: sh -c iptables-nft --wait -t filter --delete INPUT -i mpqemubr0 -p tcp -m tcp --dport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4471] started: sh -c iptables-nft --wait -t filter --delete INPUT -i mpqemubr0 -p udp -m udp --dport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4473] started: sh -c iptables-nft --wait -t filter --delete INPUT -i mpqemubr0 -p udp -m udp --dport 67 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4475] started: sh -c iptables-nft --wait -t filter --delete FORWARD -i mpqemubr0 -o mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4477] started: sh -c iptables-nft --wait -t filter --delete FORWARD -s 10.207.228.0/24 -i mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4479] started: sh -c iptables-nft --wait -t filter --delete FORWARD -d 10.207.228.0/24 -o mpqemubr0 -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4481] started: sh -c iptables-nft --wait -t filter --delete FORWARD -i mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j REJECT --reject-with icmp-port-unreachable
mar 11 11:08:27 betterthanamac multipassd[4422]: [4483] started: sh -c iptables-nft --wait -t filter --delete FORWARD -o mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j REJECT --reject-with icmp-port-unreachable
mar 11 11:08:27 betterthanamac multipassd[4422]: [4485] started: sh -c iptables-nft --wait -t filter --delete OUTPUT -o mpqemubr0 -p tcp -m tcp --sport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4487] started: sh -c iptables-nft --wait -t filter --delete OUTPUT -o mpqemubr0 -p udp -m udp --sport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4489] started: sh -c iptables-nft --wait -t filter --delete OUTPUT -o mpqemubr0 -p udp -m udp --sport 67 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:27 betterthanamac multipassd[4422]: [4491] started: iptables-nft --wait -t nat --list-rules
mar 11 11:08:27 betterthanamac multipassd[4422]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:27 betterthanamac multipassd[4422]: [4492] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE
mar 11 11:08:27 betterthanamac multipassd[4422]: [4494] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -p udp -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE --to-ports 1024-65535
mar 11 11:08:27 betterthanamac multipassd[4422]: [4496] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -p tcp -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE --to-ports 1024-65535
mar 11 11:08:27 betterthanamac multipassd[4422]: [4498] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 -d 255.255.255.255/32 -m comment --comment "generated for Multipass network mpqemubr0" -j RETURN
mar 11 11:08:27 betterthanamac multipassd[4422]: [4500] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 -d 224.0.0.0/24 -m comment --comment "generated for Multipass network mpqemubr0" -j RETURN
mar 11 11:08:27 betterthanamac multipassd[4422]: [4502] started: iptables-nft --wait -t mangle --list-rules
mar 11 11:08:27 betterthanamac multipassd[4422]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:27 betterthanamac multipassd[4422]: [4503] started: sh -c iptables-nft --wait -t mangle --delete POSTROUTING -o mpqemubr0 -p udp -m udp --dport 68 -m comment --comment "generated for Multipass network mpqemubr0" -j CHECKSUM --checksum-fill
mar 11 11:08:27 betterthanamac multipassd[4422]: [4505] started: iptables-nft --wait -t raw --list-rules
mar 11 11:08:27 betterthanamac multipassd[4422]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:27 betterthanamac multipassd[4422]: [4506] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4507] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4508] started: iptables-nft --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol tcp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4509] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4510] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4511] started: iptables-nft --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol tcp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4512] started: iptables-nft --wait -t mangle --insert POSTROUTING --out-interface mpqemubr0 --protocol udp --dport 68 --jump CHECKSUM --checksum-fill --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4513] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 224.0.0.0/24 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4515] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 255.255.255.255/32 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4516] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol tcp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4517] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol udp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4518] started: iptables-nft --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --jump MASQUERADE --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4519] started: iptables-nft --wait -t filter --insert FORWARD --destination 10.207.228.0/24 --out-interface mpqemubr0 --match conntrack --ctstate RELATED,ESTABLISHED --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4520] started: iptables-nft --wait -t filter --insert FORWARD --source 10.207.228.0/24 --in-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4521] started: iptables-nft --wait -t filter --insert FORWARD --in-interface mpqemubr0 --out-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4522] started: iptables-nft --wait -t filter --append FORWARD --in-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:27 betterthanamac multipassd[4422]: [4523] started: iptables-nft --wait -t filter --append FORWARD --out-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:29 betterthanamac multipassd[4422]: gRPC listening on unix:/var/snap/multipass/common/multipass_socket, SSL:on
mar 11 11:08:29 betterthanamac multipassd[4422]: [4551] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:08:29 betterthanamac multipassd[4422]: Starting Multipass 1.8.0
mar 11 11:08:29 betterthanamac multipassd[4422]: Daemon arguments: /snap/multipass/6130/bin/multipassd --verbosity debug --logger platform
mar 11 11:08:38 betterthanamac multipassd[4422]: Received signal 15 (Terminated)
mar 11 11:08:38 betterthanamac multipassd[4422]: Goodbye!
mar 11 11:08:38 betterthanamac systemd[1]: Stopping Service for snap application multipass.multipassd...
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [warning] [Qt] "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/5"
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [warning] [Qt] "Object does not exist at path “/org/freedesktop/NetworkManager/ActiveConnection/1”"
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [iptables-nft] [4573] started: iptables-nft --wait -t filter --list-rules
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [warning] [iptables-nft] # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4574] started: sh -c iptables-nft --wait -t filter --delete INPUT -i mpqemubr0 -p tcp -m tcp --dport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4576] started: sh -c iptables-nft --wait -t filter --delete INPUT -i mpqemubr0 -p udp -m udp --dport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4578] started: sh -c iptables-nft --wait -t filter --delete INPUT -i mpqemubr0 -p udp -m udp --dport 67 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4580] started: sh -c iptables-nft --wait -t filter --delete FORWARD -i mpqemubr0 -o mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4582] started: sh -c iptables-nft --wait -t filter --delete FORWARD -s 10.207.228.0/24 -i mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4585] started: sh -c iptables-nft --wait -t filter --delete FORWARD -d 10.207.228.0/24 -o mpqemubr0 -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4589] started: sh -c iptables-nft --wait -t filter --delete FORWARD -i mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j REJECT --reject-with icmp-port-unreachable
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4592] started: sh -c iptables-nft --wait -t filter --delete FORWARD -o mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j REJECT --reject-with icmp-port-unreachable
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4594] started: sh -c iptables-nft --wait -t filter --delete OUTPUT -o mpqemubr0 -p tcp -m tcp --sport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4596] started: sh -c iptables-nft --wait -t filter --delete OUTPUT -o mpqemubr0 -p udp -m udp --sport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4598] started: sh -c iptables-nft --wait -t filter --delete OUTPUT -o mpqemubr0 -p udp -m udp --sport 67 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [iptables-nft] [4600] started: iptables-nft --wait -t nat --list-rules
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [warning] [iptables-nft] # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4601] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4603] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -p udp -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE --to-ports 1024-65535
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4605] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -p tcp -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE --to-ports 1024-65535
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4607] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 -d 255.255.255.255/32 -m comment --comment "generated for Multipass network mpqemubr0" -j RETURN
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4609] started: sh -c iptables-nft --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 -d 224.0.0.0/24 -m comment --comment "generated for Multipass network mpqemubr0" -j RETURN
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [iptables-nft] [4611] started: iptables-nft --wait -t mangle --list-rules
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [warning] [iptables-nft] # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [sh] [4612] started: sh -c iptables-nft --wait -t mangle --delete POSTROUTING -o mpqemubr0 -p udp -m udp --dport 68 -m comment --comment "generated for Multipass network mpqemubr0" -j CHECKSUM --checksum-fill
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [iptables-nft] [4614] started: iptables-nft --wait -t raw --list-rules
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [warning] [iptables-nft] # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:38 betterthanamac multipass.multipassd[4422]: [debug] [dnsmasq] terminating
mar 11 11:08:39 betterthanamac multipass.multipassd[4422]: [info] [dnsmasq] failed to terminate nicely, killing
mar 11 11:08:39 betterthanamac systemd[1]: snap.multipass.multipassd.service: Deactivated successfully.
mar 11 11:08:39 betterthanamac systemd[1]: Stopped Service for snap application multipass.multipassd.
mar 11 11:08:39 betterthanamac systemd[1]: Started Service for snap application multipass.multipassd.
mar 11 11:08:40 betterthanamac multipassd[4619]: Unable to determine subnet for the mpqemubr0 subnet
mar 11 11:08:40 betterthanamac multipassd[4619]: Using AppArmor support
mar 11 11:08:40 betterthanamac multipassd[4619]: Failed to enable AppArmor: AppArmor is not enabled
mar 11 11:08:40 betterthanamac multipassd[4619]: Starting dnsmasq
mar 11 11:08:40 betterthanamac multipassd[4619]: [4671] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-interface=lo --interface=mpqemubr0 --listen-address=10.207.228.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.leases --dhcp-hostsfile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts --dhcp-range 10.207.228.2,10.207.228.254,infinite --conf-file=/var/snap/multipass/common/data/multipassd/network/dnsmasq-Msofkw.conf
mar 11 11:08:40 betterthanamac dnsmasq[4671]: started, version 2.80 cachesize 150
mar 11 11:08:40 betterthanamac dnsmasq[4671]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
mar 11 11:08:40 betterthanamac dnsmasq-dhcp[4671]: DHCP, IP range 10.207.228.2 -- 10.207.228.254, lease time infinite
mar 11 11:08:40 betterthanamac dnsmasq-dhcp[4671]: DHCP, sockets bound exclusively to interface mpqemubr0
mar 11 11:08:40 betterthanamac dnsmasq[4671]: using local addresses only for domain multipass
mar 11 11:08:40 betterthanamac dnsmasq[4671]: reading /etc/resolv.conf
mar 11 11:08:40 betterthanamac dnsmasq[4671]: using local addresses only for domain multipass
mar 11 11:08:40 betterthanamac dnsmasq[4671]: using nameserver 192.168.1.1#53
mar 11 11:08:40 betterthanamac dnsmasq[4671]: read /etc/hosts - 5 addresses
mar 11 11:08:40 betterthanamac dnsmasq-dhcp[4671]: read /var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts
mar 11 11:08:40 betterthanamac multipassd[4619]: [4672] started: iptables-nft --wait -t filter --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:40 betterthanamac multipassd[4619]: [4673] started: iptables-nft --wait -t nat --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:40 betterthanamac multipassd[4619]: [4674] started: iptables-nft --wait -t mangle --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:40 betterthanamac multipassd[4619]: [4675] started: iptables-nft --wait -t raw --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:08:40 betterthanamac multipassd[4619]: [4676] started: iptables-legacy --wait -t filter --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: Using iptables-legacy for firewall rules.
mar 11 11:08:40 betterthanamac multipassd[4619]: [4677] started: iptables-legacy --wait -t filter --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: [4678] started: iptables-legacy --wait -t nat --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: [4679] started: iptables-legacy --wait -t mangle --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: [4680] started: iptables-legacy --wait -t raw --list-rules
mar 11 11:08:40 betterthanamac multipassd[4619]: [4681] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4682] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4683] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol tcp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4684] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4685] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4686] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol tcp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4687] started: iptables-legacy --wait -t mangle --insert POSTROUTING --out-interface mpqemubr0 --protocol udp --dport 68 --jump CHECKSUM --checksum-fill --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4688] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 224.0.0.0/24 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4689] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 255.255.255.255/32 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4690] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol tcp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4691] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol udp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4692] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --jump MASQUERADE --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4693] started: iptables-legacy --wait -t filter --insert FORWARD --destination 10.207.228.0/24 --out-interface mpqemubr0 --match conntrack --ctstate RELATED,ESTABLISHED --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4694] started: iptables-legacy --wait -t filter --insert FORWARD --source 10.207.228.0/24 --in-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4695] started: iptables-legacy --wait -t filter --insert FORWARD --in-interface mpqemubr0 --out-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4696] started: iptables-legacy --wait -t filter --append FORWARD --in-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:40 betterthanamac multipassd[4619]: [4697] started: iptables-legacy --wait -t filter --append FORWARD --out-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:08:41 betterthanamac multipassd[4619]: gRPC listening on unix:/var/snap/multipass/common/multipass_socket, SSL:on
mar 11 11:08:41 betterthanamac multipassd[4619]: [4724] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:08:41 betterthanamac multipassd[4619]: Starting Multipass 1.8.0
mar 11 11:08:41 betterthanamac multipassd[4619]: Daemon arguments: /snap/multipass/6130/bin/multipassd --verbosity debug --logger platform
mar 11 11:08:42 betterthanamac multipassd[4619]: [4760] started: /snap/multipass/6130/bin/check_kvm_support
mar 11 11:08:42 betterthanamac multipassd[4619]: process working dir '/snap/multipass/6130/qemu'
mar 11 11:08:42 betterthanamac multipassd[4619]: process program 'qemu-system-x86_64'
mar 11 11:08:42 betterthanamac multipassd[4619]: process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:8f:62:a8, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
mar 11 11:08:42 betterthanamac multipassd[4619]: [4765] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.WNzNbM
mar 11 11:08:42 betterthanamac multipassd[4619]: process state changed to Starting
mar 11 11:08:42 betterthanamac multipassd[4619]: process state changed to Running
mar 11 11:08:42 betterthanamac multipassd[4619]: [4768] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:8f:62:a8 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso
mar 11 11:08:42 betterthanamac multipassd[4619]: process started
mar 11 11:08:42 betterthanamac multipassd[4619]: Waiting for SSH to be up
mar 11 11:08:42 betterthanamac multipassd[4619]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 4}, "package": "Debian 1:4.2-3ubuntu6.18"}, "capabilities": ["oob"]}}
mar 11 11:08:42 betterthanamac multipassd[4619]: QMP: {"return": {}}
mar 11 11:08:49 betterthanamac multipassd[4619]: QMP: {"timestamp": {"seconds": 1646996929, "microseconds": 732474}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[23]/virtio-backend"}}

And then performed multipass start pilot and same behaviour, the machine hangs in starting state and eventually timesout:

$ multipass start pilot

start failed: The following errors occurred:                                    
pilot: timed out waiting for response

After I retry:

$ multipass start pilot

[2022-03-11T11:07:56.853] [error] [pilot] process error occurred Crashed program: qemu-system-x86_64; error: Process crashed
[2022-03-11T11:07:56.854] [error] [pilot] error: program: qemu-system-x86_64; error: Process crashed
start failed: cannot connect to the multipass socket                            
Please ensure multipassd is running and '/var/snap/multipass/common/multipass_socket' is accessible

I need to restart the snap.multipass.multipassd.service service to try again:

$ journalctl -e --no-pager -u snap.multipass.multipassd.service

mar 11 11:16:20 betterthanamac multipassd[4619]: QProcess: Destroyed while process ("qemu-system-x86_64") is still running.
mar 11 11:16:20 betterthanamac multipassd[4619]: process error occurred Crashed program: qemu-system-x86_64; error: Process crashed
mar 11 11:16:20 betterthanamac multipassd[4619]: process state changed to NotRunning
mar 11 11:16:20 betterthanamac multipassd[4619]: error: program: qemu-system-x86_64; error: Process crashed
mar 11 11:16:20 betterthanamac multipassd[4619]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:16:20 betterthanamac multipassd[4619]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:16:20 betterthanamac multipassd[4619]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:16:20 betterthanamac multipassd[4619]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:16:20 betterthanamac multipassd[4619]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:16:20 betterthanamac multipassd[4619]: QObject::connect(multipass::Process, Unknown): invalid null parameter
mar 11 11:16:21 betterthanamac systemd[1]: snap.multipass.multipassd.service: Main process exited, code=dumped, status=11/SEGV
mar 11 11:16:51 betterthanamac systemd[1]: snap.multipass.multipassd.service: State 'stop-sigterm' timed out. Killing.
mar 11 11:16:51 betterthanamac systemd[1]: snap.multipass.multipassd.service: Killing process 4671 (dnsmasq) with signal SIGKILL.
mar 11 11:16:51 betterthanamac systemd[1]: snap.multipass.multipassd.service: Failed with result 'core-dump'.
mar 11 11:16:51 betterthanamac systemd[1]: snap.multipass.multipassd.service: Consumed 16.194s CPU time.
mar 11 11:16:51 betterthanamac systemd[1]: snap.multipass.multipassd.service: Scheduled restart job, restart counter is at 1.
mar 11 11:16:51 betterthanamac systemd[1]: Stopped Service for snap application multipass.multipassd.
mar 11 11:16:51 betterthanamac systemd[1]: snap.multipass.multipassd.service: Consumed 16.194s CPU time.
mar 11 11:16:51 betterthanamac systemd[1]: Started Service for snap application multipass.multipassd.
mar 11 11:16:51 betterthanamac multipassd[6302]: Using AppArmor support
mar 11 11:16:51 betterthanamac multipassd[6302]: Failed to enable AppArmor: AppArmor is not enabled
mar 11 11:16:51 betterthanamac multipassd[6302]: Starting dnsmasq
mar 11 11:16:51 betterthanamac multipassd[6302]: [6347] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-interface=lo --interface=mpqemubr0 --listen-address=10.207.228.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.leases --dhcp-hostsfile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts --dhcp-range 10.207.228.2,10.207.228.254,infinite --conf-file=/var/snap/multipass/common/data/multipassd/network/dnsmasq-deaQjJ.conf
mar 11 11:16:51 betterthanamac dnsmasq[6347]: started, version 2.80 cachesize 150
mar 11 11:16:51 betterthanamac dnsmasq[6347]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
mar 11 11:16:51 betterthanamac dnsmasq-dhcp[6347]: DHCP, IP range 10.207.228.2 -- 10.207.228.254, lease time infinite
mar 11 11:16:51 betterthanamac dnsmasq-dhcp[6347]: DHCP, sockets bound exclusively to interface mpqemubr0
mar 11 11:16:51 betterthanamac dnsmasq[6347]: using local addresses only for domain multipass
mar 11 11:16:51 betterthanamac dnsmasq[6347]: reading /etc/resolv.conf
mar 11 11:16:51 betterthanamac dnsmasq[6347]: using local addresses only for domain multipass
mar 11 11:16:51 betterthanamac dnsmasq[6347]: using nameserver 192.168.1.1#53
mar 11 11:16:51 betterthanamac dnsmasq[6347]: read /etc/hosts - 5 addresses
mar 11 11:16:51 betterthanamac dnsmasq-dhcp[6347]: read /var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts
mar 11 11:16:51 betterthanamac multipassd[6302]: [6348] started: iptables-nft --wait -t filter --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:16:51 betterthanamac multipassd[6302]: [6349] started: iptables-nft --wait -t nat --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:16:51 betterthanamac multipassd[6302]: [6350] started: iptables-nft --wait -t mangle --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:16:51 betterthanamac multipassd[6302]: [6351] started: iptables-nft --wait -t raw --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:16:51 betterthanamac multipassd[6302]: [6352] started: iptables-legacy --wait -t filter --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: Using iptables-legacy for firewall rules.
mar 11 11:16:51 betterthanamac multipassd[6302]: [6353] started: iptables-legacy --wait -t filter --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: [6354] started: sh -c iptables-legacy --wait -t filter --delete INPUT -i mpqemubr0 -p tcp -m tcp --dport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6356] started: sh -c iptables-legacy --wait -t filter --delete INPUT -i mpqemubr0 -p udp -m udp --dport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6358] started: sh -c iptables-legacy --wait -t filter --delete INPUT -i mpqemubr0 -p udp -m udp --dport 67 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6360] started: sh -c iptables-legacy --wait -t filter --delete FORWARD -i mpqemubr0 -o mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6362] started: sh -c iptables-legacy --wait -t filter --delete FORWARD -s 10.207.228.0/24 -i mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6364] started: sh -c iptables-legacy --wait -t filter --delete FORWARD -d 10.207.228.0/24 -o mpqemubr0 -m conntrack --ctstate RELATED,ESTABLISHED -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6366] started: sh -c iptables-legacy --wait -t filter --delete FORWARD -i mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j REJECT --reject-with icmp-port-unreachable
mar 11 11:16:51 betterthanamac multipassd[6302]: [6368] started: sh -c iptables-legacy --wait -t filter --delete FORWARD -o mpqemubr0 -m comment --comment "generated for Multipass network mpqemubr0" -j REJECT --reject-with icmp-port-unreachable
mar 11 11:16:51 betterthanamac multipassd[6302]: [6370] started: sh -c iptables-legacy --wait -t filter --delete OUTPUT -o mpqemubr0 -p tcp -m tcp --sport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6372] started: sh -c iptables-legacy --wait -t filter --delete OUTPUT -o mpqemubr0 -p udp -m udp --sport 53 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6374] started: sh -c iptables-legacy --wait -t filter --delete OUTPUT -o mpqemubr0 -p udp -m udp --sport 67 -m comment --comment "generated for Multipass network mpqemubr0" -j ACCEPT
mar 11 11:16:51 betterthanamac multipassd[6302]: [6376] started: iptables-legacy --wait -t nat --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: [6377] started: sh -c iptables-legacy --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE
mar 11 11:16:51 betterthanamac multipassd[6302]: [6379] started: sh -c iptables-legacy --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -p udp -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE --to-ports 1024-65535
mar 11 11:16:51 betterthanamac multipassd[6302]: [6381] started: sh -c iptables-legacy --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 ! -d 10.207.228.0/24 -p tcp -m comment --comment "generated for Multipass network mpqemubr0" -j MASQUERADE --to-ports 1024-65535
mar 11 11:16:51 betterthanamac multipassd[6302]: [6383] started: sh -c iptables-legacy --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 -d 255.255.255.255/32 -m comment --comment "generated for Multipass network mpqemubr0" -j RETURN
mar 11 11:16:51 betterthanamac multipassd[6302]: [6385] started: sh -c iptables-legacy --wait -t nat --delete POSTROUTING -s 10.207.228.0/24 -d 224.0.0.0/24 -m comment --comment "generated for Multipass network mpqemubr0" -j RETURN
mar 11 11:16:51 betterthanamac multipassd[6302]: [6387] started: iptables-legacy --wait -t mangle --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: [6388] started: sh -c iptables-legacy --wait -t mangle --delete POSTROUTING -o mpqemubr0 -p udp -m udp --dport 68 -m comment --comment "generated for Multipass network mpqemubr0" -j CHECKSUM --checksum-fill
mar 11 11:16:51 betterthanamac multipassd[6302]: [6390] started: iptables-legacy --wait -t raw --list-rules
mar 11 11:16:51 betterthanamac multipassd[6302]: [6391] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:51 betterthanamac multipassd[6302]: [6392] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6393] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol tcp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6394] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6395] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6396] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol tcp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6397] started: iptables-legacy --wait -t mangle --insert POSTROUTING --out-interface mpqemubr0 --protocol udp --dport 68 --jump CHECKSUM --checksum-fill --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6398] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 224.0.0.0/24 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6399] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 255.255.255.255/32 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6400] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol tcp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6401] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol udp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6402] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --jump MASQUERADE --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6403] started: iptables-legacy --wait -t filter --insert FORWARD --destination 10.207.228.0/24 --out-interface mpqemubr0 --match conntrack --ctstate RELATED,ESTABLISHED --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6404] started: iptables-legacy --wait -t filter --insert FORWARD --source 10.207.228.0/24 --in-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6405] started: iptables-legacy --wait -t filter --insert FORWARD --in-interface mpqemubr0 --out-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6406] started: iptables-legacy --wait -t filter --append FORWARD --in-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:52 betterthanamac multipassd[6302]: [6407] started: iptables-legacy --wait -t filter --append FORWARD --out-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:16:53 betterthanamac multipassd[6302]: gRPC listening on unix:/var/snap/multipass/common/multipass_socket, SSL:on
mar 11 11:16:53 betterthanamac multipassd[6302]: [6435] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:16:53 betterthanamac multipassd[6302]: Starting Multipass 1.8.0
mar 11 11:16:53 betterthanamac multipassd[6302]: Daemon arguments: /snap/multipass/6130/bin/multipassd --verbosity debug --logger platform

These are my iptable rules. Please note that I performed sudo iptables -F, restarted the system and them these were added by both Docker and multipass (I change none):

$ sudo iptables -L -v

Chain INPUT (policy ACCEPT 17033 packets, 19M bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     tcp  --  mpqemubr0 any     anywhere             anywhere             tcp dpt:domain /* generated for Multipass network mpqemubr0 */
    0     0 ACCEPT     udp  --  mpqemubr0 any     anywhere             anywhere             udp dpt:domain /* generated for Multipass network mpqemubr0 */
    0     0 ACCEPT     udp  --  mpqemubr0 any     anywhere             anywhere             udp dpt:bootps /* generated for Multipass network mpqemubr0 */

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  mpqemubr0 mpqemubr0  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */
    0     0 ACCEPT     all  --  mpqemubr0 any     10.207.228.0/24      anywhere             /* generated for Multipass network mpqemubr0 */
    0     0 ACCEPT     all  --  any    mpqemubr0  anywhere             10.207.228.0/24      ctstate RELATED,ESTABLISHED /* generated for Multipass network mpqemubr0 */
  116 39188 DOCKER-USER  all  --  any    any     anywhere             anywhere            
  116 39188 DOCKER-ISOLATION-STAGE-1  all  --  any    any     anywhere             anywhere            
    0     0 ACCEPT     all  --  any    docker0  anywhere             anywhere             ctstate RELATED,ESTABLISHED
    0     0 DOCKER     all  --  any    docker0  anywhere             anywhere            
    0     0 ACCEPT     all  --  docker0 !docker0  anywhere             anywhere            
    0     0 ACCEPT     all  --  docker0 docker0  anywhere             anywhere            
    0     0 REJECT     all  --  mpqemubr0 any     anywhere             anywhere             /* generated for Multipass network mpqemubr0 */ reject-with icmp-port-unreachable
    0     0 REJECT     all  --  any    mpqemubr0  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */ reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT 11654 packets, 1532K bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     tcp  --  any    mpqemubr0  anywhere             anywhere             tcp spt:domain /* generated for Multipass network mpqemubr0 */
    0     0 ACCEPT     udp  --  any    mpqemubr0  anywhere             anywhere             udp spt:domain /* generated for Multipass network mpqemubr0 */
    0     0 ACCEPT     udp  --  any    mpqemubr0  anywhere             anywhere             udp spt:bootps /* generated for Multipass network mpqemubr0 */

Chain DOCKER (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain DOCKER-ISOLATION-STAGE-1 (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DOCKER-ISOLATION-STAGE-2  all  --  docker0 !docker0  anywhere             anywhere            
  116 39188 RETURN     all  --  any    any     anywhere             anywhere            

Chain DOCKER-ISOLATION-STAGE-2 (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       all  --  any    docker0  anywhere             anywhere            
    0     0 RETURN     all  --  any    any     anywhere             anywhere            

Chain DOCKER-USER (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  116 39188 RETURN     all  --  any    any     anywhere             anywhere       
RafaelMoreira1180778 commented 2 years ago

Some more debugging:

I tried with sudo (for good measure) and this is what happened:

$ sudo multipass launch -vvvv -c 2 -m 3G -d 10G -n pilot

One quick question before we launch … Would you like to help                    
the Multipass developers, by sending anonymous usage data?
This includes your operating system, which images you use,
the number of instances, their properties and how long you use them.
We’d also like to measure Multipass’s speed.

Send usage data (yes/no/Later)? no
[2022-03-11T11:23:05.582] [debug] [/snap/multipass/6130/bin/check_kvm_support] [7336] started: /snap/multipass/6130/bin/check_kvm_support 
[2022-03-11T11:23:05.644] [debug] [qemu-system-x86_64] [7345] started: qemu-system-x86_64 --version
[2022-03-11T11:23:05.686] [debug] [qemu-img] [7348] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-11T11:23:05.693] [debug] [qemu-img] [7353] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
[2022-03-11T11:23:05.725] [debug] [qemu-img] [7357] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-11T11:23:05.748] [debug] [pilot] process working dir '/snap/multipass/6130/qemu'
[2022-03-11T11:23:05.749] [info] [pilot] process program 'qemu-system-x86_64'   
[2022-03-11T11:23:05.749] [info] [pilot] process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:a6:a7:06, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
[2022-03-11T11:23:05.751] [debug] [qemu-system-x86_64] [7376] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.EVhrQP
[2022-03-11T11:23:05.793] [info] [pilot] process state changed to Starting      
[2022-03-11T11:23:05.794] [info] [pilot] process state changed to Running       
[2022-03-11T11:23:05.794] [debug] [qemu-system-x86_64] [7385] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:a6:a7:06 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso
[2022-03-11T11:23:05.794] [info] [pilot] process started                        
launch failed: The following errors occurred:                                   
pilot: timed out waiting for response

And the logs:

$ journalctl -n 1000 --no-pager -u snap.multipass.multipassd.service

mar 11 11:21:16 betterthanamac systemd[1]: Started Service for snap application multipass.multipassd.
mar 11 11:21:16 betterthanamac multipassd[6893]: Unable to determine subnet for the mpqemubr0 subnet
mar 11 11:21:16 betterthanamac multipassd[6893]: Using AppArmor support
mar 11 11:21:16 betterthanamac multipassd[6893]: Failed to enable AppArmor: AppArmor is not enabled
mar 11 11:21:16 betterthanamac multipassd[6893]: Starting dnsmasq
mar 11 11:21:16 betterthanamac multipassd[6893]: [6946] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-interface=lo --interface=mpqemubr0 --listen-address=10.207.228.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.leases --dhcp-hostsfile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts --dhcp-range 10.207.228.2,10.207.228.254,infinite --conf-file=/var/snap/multipass/common/data/multipassd/network/dnsmasq-uqKuKn.conf
mar 11 11:21:16 betterthanamac dnsmasq[6946]: started, version 2.80 cachesize 150
mar 11 11:21:16 betterthanamac dnsmasq[6946]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
mar 11 11:21:16 betterthanamac dnsmasq-dhcp[6946]: DHCP, IP range 10.207.228.2 -- 10.207.228.254, lease time infinite
mar 11 11:21:16 betterthanamac dnsmasq-dhcp[6946]: DHCP, sockets bound exclusively to interface mpqemubr0
mar 11 11:21:16 betterthanamac dnsmasq[6946]: using local addresses only for domain multipass
mar 11 11:21:16 betterthanamac dnsmasq[6946]: reading /etc/resolv.conf
mar 11 11:21:16 betterthanamac dnsmasq[6946]: using local addresses only for domain multipass
mar 11 11:21:16 betterthanamac dnsmasq[6946]: using nameserver 192.168.1.1#53
mar 11 11:21:16 betterthanamac dnsmasq[6946]: read /etc/hosts - 5 addresses
mar 11 11:21:16 betterthanamac dnsmasq-dhcp[6946]: read /var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts
mar 11 11:21:16 betterthanamac multipassd[6893]: [6947] started: iptables-nft --wait -t filter --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:21:16 betterthanamac multipassd[6893]: [6948] started: iptables-nft --wait -t nat --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:21:16 betterthanamac multipassd[6893]: [6949] started: iptables-nft --wait -t mangle --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:21:16 betterthanamac multipassd[6893]: [6950] started: iptables-nft --wait -t raw --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 11:21:16 betterthanamac multipassd[6893]: [6951] started: iptables-legacy --wait -t filter --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: Using iptables-legacy for firewall rules.
mar 11 11:21:16 betterthanamac multipassd[6893]: [6952] started: iptables-legacy --wait -t filter --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: [6953] started: iptables-legacy --wait -t nat --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: [6954] started: iptables-legacy --wait -t mangle --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: [6955] started: iptables-legacy --wait -t raw --list-rules
mar 11 11:21:16 betterthanamac multipassd[6893]: [6956] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6957] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6958] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol tcp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6959] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6960] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6961] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol tcp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6962] started: iptables-legacy --wait -t mangle --insert POSTROUTING --out-interface mpqemubr0 --protocol udp --dport 68 --jump CHECKSUM --checksum-fill --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6963] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 224.0.0.0/24 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6964] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 255.255.255.255/32 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6965] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol tcp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6966] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol udp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6967] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --jump MASQUERADE --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6968] started: iptables-legacy --wait -t filter --insert FORWARD --destination 10.207.228.0/24 --out-interface mpqemubr0 --match conntrack --ctstate RELATED,ESTABLISHED --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6969] started: iptables-legacy --wait -t filter --insert FORWARD --source 10.207.228.0/24 --in-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6970] started: iptables-legacy --wait -t filter --insert FORWARD --in-interface mpqemubr0 --out-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6971] started: iptables-legacy --wait -t filter --append FORWARD --in-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:16 betterthanamac multipassd[6893]: [6972] started: iptables-legacy --wait -t filter --append FORWARD --out-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 11:21:17 betterthanamac multipassd[6893]: gRPC listening on unix:/var/snap/multipass/common/multipass_socket, SSL:on
mar 11 11:21:17 betterthanamac multipassd[6893]: Starting Multipass 1.8.0
mar 11 11:21:17 betterthanamac multipassd[6893]: Daemon arguments: /snap/multipass/6130/bin/multipassd --verbosity debug --logger platform
mar 11 11:23:05 betterthanamac multipassd[6893]: [7336] started: /snap/multipass/6130/bin/check_kvm_support
mar 11 11:23:05 betterthanamac multipassd[6893]: [7345] started: qemu-system-x86_64 --version
mar 11 11:23:05 betterthanamac multipassd[6893]: [7348] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:23:05 betterthanamac multipassd[6893]: [7353] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
mar 11 11:23:05 betterthanamac multipassd[6893]: [7357] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 11:23:05 betterthanamac multipassd[6893]: process working dir '/snap/multipass/6130/qemu'
mar 11 11:23:05 betterthanamac multipassd[6893]: process program 'qemu-system-x86_64'
mar 11 11:23:05 betterthanamac multipassd[6893]: process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:a6:a7:06, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso'
mar 11 11:23:05 betterthanamac multipassd[6893]: [7376] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.EVhrQP
mar 11 11:23:05 betterthanamac multipassd[6893]: process state changed to Starting
mar 11 11:23:05 betterthanamac multipassd[6893]: process state changed to Running
mar 11 11:23:05 betterthanamac multipassd[6893]: [7385] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-1023bb7604b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:a6:a7:06 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/pilot/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/pilot/cloud-init-config.iso
mar 11 11:23:05 betterthanamac multipassd[6893]: process started
mar 11 11:23:05 betterthanamac multipassd[6893]: Waiting for SSH to be up
mar 11 11:23:05 betterthanamac multipassd[6893]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 4}, "package": "Debian 1:4.2-3ubuntu6.18"}, "capabilities": ["oob"]}}
mar 11 11:23:05 betterthanamac multipassd[6893]: QMP: {"return": {}}
mar 11 11:23:14 betterthanamac multipassd[6893]: QMP: {"timestamp": {"seconds": 1646997794, "microseconds": 453872}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[23]/virtio-backend"}}
mar 11 11:23:17 betterthanamac dnsmasq-dhcp[6946]: DHCPDISCOVER(mpqemubr0) 52:54:00:a6:a7:06
mar 11 11:23:17 betterthanamac dnsmasq-dhcp[6946]: DHCPOFFER(mpqemubr0) 10.207.228.219 52:54:00:a6:a7:06
mar 11 11:23:17 betterthanamac dnsmasq-dhcp[6946]: DHCPREQUEST(mpqemubr0) 10.207.228.219 52:54:00:a6:a7:06
mar 11 11:23:17 betterthanamac dnsmasq-dhcp[6946]: DHCPACK(mpqemubr0) 10.207.228.219 52:54:00:a6:a7:06 pilot
mar 11 11:23:50 betterthanamac multipassd[6893]: QMP: {"timestamp": {"seconds": 1646997830, "microseconds": 520810}, "event": "RTC_CHANGE", "data": {"offset": 1}}

While I was running a ping 10.207.227.219. After the command timed-out I kep the ping open and it is still going, but opening a new terminal gives me this:

$ ping 10.207.227.219

PING 10.207.227.219 (10.207.227.219) 56(84) bytes of data.
From 10.207.192.1 icmp_seq=1 Destination Host Unreachable
From 10.207.192.1 icmp_seq=2 Destination Host Unreachable
From 10.207.192.1 icmp_seq=3 Destination Host Unreachable
From 10.207.192.1 icmp_seq=4 Destination Host Unreachable
From 10.207.192.1 icmp_seq=5 Destination Host Unreachable
From 10.207.192.1 icmp_seq=6 Destination Host Unreachable
From 10.207.192.1 icmp_seq=7 Destination Host Unreachable
From 10.207.192.1 icmp_seq=8 Destination Host Unreachable
From 10.207.192.1 icmp_seq=9 Destination Host Unreachable
From 10.207.192.1 icmp_seq=10 Destination Host Unreachable
From 10.207.192.1 icmp_seq=11 Destination Host Unreachable
From 10.207.192.1 icmp_seq=12 Destination Host Unreachable
From 10.207.192.1 icmp_seq=13 Destination Host Unreachable
From 10.207.192.1 icmp_seq=14 Destination Host Unreachable
From 10.207.192.1 icmp_seq=15 Destination Host Unreachable
From 10.207.192.1 icmp_seq=16 Destination Host Unreachable
From 10.207.192.1 icmp_seq=17 Destination Host Unreachable

While the first ping is still going with:

64 bytes from 10.207.228.219: icmp_seq=520 ttl=64 time=0.568 ms
64 bytes from 10.207.228.219: icmp_seq=521 ttl=64 time=0.578 ms
64 bytes from 10.207.228.219: icmp_seq=522 ttl=64 time=0.584 ms
64 bytes from 10.207.228.219: icmp_seq=523 ttl=64 time=0.612 ms
64 bytes from 10.207.228.219: icmp_seq=524 ttl=64 time=0.299 ms
64 bytes from 10.207.228.219: icmp_seq=525 ttl=64 time=0.306 ms
64 bytes from 10.207.228.219: icmp_seq=526 ttl=64 time=0.596 ms
64 bytes from 10.207.228.219: icmp_seq=527 ttl=64 time=0.627 ms
64 bytes from 10.207.228.219: icmp_seq=528 ttl=64 time=0.590 ms
64 bytes from 10.207.228.219: icmp_seq=529 ttl=64 time=0.302 ms
64 bytes from 10.207.228.219: icmp_seq=530 ttl=64 time=0.607 ms
64 bytes from 10.207.228.219: icmp_seq=531 ttl=64 time=0.648 ms
64 bytes from 10.207.228.219: icmp_seq=532 ttl=64 time=0.600 ms
64 bytes from 10.207.228.219: icmp_seq=533 ttl=64 time=0.416 ms
64 bytes from 10.207.228.219: icmp_seq=534 ttl=64 time=0.619 ms
64 bytes from 10.207.228.219: icmp_seq=535 ttl=64 time=0.303 ms
64 bytes from 10.207.228.219: icmp_seq=536 ttl=64 time=0.620 ms
64 bytes from 10.207.228.219: icmp_seq=537 ttl=64 time=0.648 ms
64 bytes from 10.207.228.219: icmp_seq=538 ttl=64 time=0.579 ms
64 bytes from 10.207.228.219: icmp_seq=539 ttl=64 time=0.618 ms
64 bytes from 10.207.228.219: icmp_seq=540 ttl=64 time=0.584 ms
64 bytes from 10.207.228.219: icmp_seq=541 ttl=64 time=0.245 ms
64 bytes from 10.207.228.219: icmp_seq=542 ttl=64 time=0.556 ms
64 bytes from 10.207.228.219: icmp_seq=543 ttl=64 time=0.621 ms
64 bytes from 10.207.228.219: icmp_seq=544 ttl=64 time=0.597 ms
Saviq commented 2 years ago

@RafaelMoreira1180778 ah you may be hit by #2366 - please try a different name for the instance as I think there may be a stale DHCP lease.

RafaelMoreira1180778 commented 2 years ago

Still same problem :(

$ sudo multipass launch -vvvv -c 2 -m 3G -d 10G -n master     

[2022-03-11T12:23:07.982] [debug] [/snap/multipass/6130/bin/check_kvm_support] [37095] started: /snap/multipass/6130/bin/check_kvm_support 
[2022-03-11T12:23:08.018] [debug] [qemu-system-x86_64] [37102] started: qemu-system-x86_64 --version
[2022-03-11T12:23:08.055] [debug] [qemu-img] [37105] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-11T12:23:08.066] [debug] [qemu-img] [37110] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
[2022-03-11T12:23:08.105] [debug] [qemu-img] [37116] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-11T12:23:08.162] [debug] [master] process working dir '/snap/multipass/6130/qemu'
[2022-03-11T12:23:08.162] [info] [master] process program 'qemu-system-x86_64'  
[2022-03-11T12:23:08.162] [info] [master] process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-95771c1140b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:fc:28:24, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/master/cloud-init-config.iso'
[2022-03-11T12:23:08.165] [debug] [qemu-system-x86_64] [37133] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.klNuVF
[2022-03-11T12:23:08.205] [info] [master] process state changed to Starting     
[2022-03-11T12:23:08.206] [info] [master] process state changed to Running      
[2022-03-11T12:23:08.206] [debug] [qemu-system-x86_64] [37142] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-95771c1140b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:fc:28:24 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/master/cloud-init-config.iso
[2022-03-11T12:23:08.206] [info] [master] process started                       
launch failed: The following errors occurred:                                   
master: timed out waiting for response
mar 11 12:22:43 betterthanamac systemd[1]: Started Service for snap application multipass.multipassd.
mar 11 12:22:43 betterthanamac multipassd[36774]: Unable to determine subnet for the mpqemubr0 subnet
mar 11 12:22:43 betterthanamac multipassd[36774]: Using AppArmor support
mar 11 12:22:43 betterthanamac multipassd[36774]: Failed to enable AppArmor: AppArmor is not enabled
mar 11 12:22:43 betterthanamac multipassd[36774]: Starting dnsmasq
mar 11 12:22:43 betterthanamac multipassd[36774]: [36865] started: dnsmasq --keep-in-foreground --strict-order --bind-interfaces --pid-file --domain=multipass --local=/multipass/ --except-interface=lo --interface=mpqemubr0 --listen-address=10.207.228.1 --dhcp-no-override --dhcp-authoritative --dhcp-leasefile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.leases --dhcp-hostsfile=/var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts --dhcp-range 10.207.228.2,10.207.228.254,infinite --conf-file=/var/snap/multipass/common/data/multipassd/network/dnsmasq-vacOgC.conf
mar 11 12:22:43 betterthanamac dnsmasq[36865]: started, version 2.80 cachesize 150
mar 11 12:22:43 betterthanamac dnsmasq[36865]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify dumpfile
mar 11 12:22:43 betterthanamac dnsmasq-dhcp[36865]: DHCP, IP range 10.207.228.2 -- 10.207.228.254, lease time infinite
mar 11 12:22:43 betterthanamac dnsmasq-dhcp[36865]: DHCP, sockets bound exclusively to interface mpqemubr0
mar 11 12:22:43 betterthanamac dnsmasq[36865]: using local addresses only for domain multipass
mar 11 12:22:43 betterthanamac dnsmasq[36865]: reading /etc/resolv.conf
mar 11 12:22:43 betterthanamac dnsmasq[36865]: using local addresses only for domain multipass
mar 11 12:22:43 betterthanamac dnsmasq[36865]: using nameserver 192.168.1.1#53
mar 11 12:22:43 betterthanamac dnsmasq[36865]: read /etc/hosts - 5 addresses
mar 11 12:22:43 betterthanamac dnsmasq-dhcp[36865]: read /var/snap/multipass/common/data/multipassd/network/dnsmasq.hosts
mar 11 12:22:43 betterthanamac multipassd[36774]: [36871] started: iptables-nft --wait -t filter --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 12:22:43 betterthanamac multipassd[36774]: [36872] started: iptables-nft --wait -t nat --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 12:22:43 betterthanamac multipassd[36774]: [36873] started: iptables-nft --wait -t mangle --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 12:22:43 betterthanamac multipassd[36774]: [36874] started: iptables-nft --wait -t raw --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 11 12:22:43 betterthanamac multipassd[36774]: [36875] started: iptables-legacy --wait -t filter --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: Using iptables-legacy for firewall rules.
mar 11 12:22:43 betterthanamac multipassd[36774]: [36876] started: iptables-legacy --wait -t filter --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: [36877] started: iptables-legacy --wait -t nat --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: [36878] started: iptables-legacy --wait -t mangle --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: [36879] started: iptables-legacy --wait -t raw --list-rules
mar 11 12:22:43 betterthanamac multipassd[36774]: [36880] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36881] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol udp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36882] started: iptables-legacy --wait -t filter --insert INPUT --in-interface mpqemubr0 --protocol tcp --dport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36883] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 67 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36884] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol udp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36885] started: iptables-legacy --wait -t filter --insert OUTPUT --out-interface mpqemubr0 --protocol tcp --sport 53 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36886] started: iptables-legacy --wait -t mangle --insert POSTROUTING --out-interface mpqemubr0 --protocol udp --dport 68 --jump CHECKSUM --checksum-fill --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36887] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 224.0.0.0/24 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36888] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 --destination 255.255.255.255/32 --jump RETURN --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36889] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol tcp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36890] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --protocol udp --jump MASQUERADE --to-ports 1024-65535 --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36891] started: iptables-legacy --wait -t nat --insert POSTROUTING --source 10.207.228.0/24 ! --destination 10.207.228.0/24 --jump MASQUERADE --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36892] started: iptables-legacy --wait -t filter --insert FORWARD --destination 10.207.228.0/24 --out-interface mpqemubr0 --match conntrack --ctstate RELATED,ESTABLISHED --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36893] started: iptables-legacy --wait -t filter --insert FORWARD --source 10.207.228.0/24 --in-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36894] started: iptables-legacy --wait -t filter --insert FORWARD --in-interface mpqemubr0 --out-interface mpqemubr0 --jump ACCEPT --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36895] started: iptables-legacy --wait -t filter --append FORWARD --in-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:43 betterthanamac multipassd[36774]: [36896] started: iptables-legacy --wait -t filter --append FORWARD --out-interface mpqemubr0 --jump REJECT --reject-with icmp-port-unreachable --match comment --comment generated for Multipass network mpqemubr0
mar 11 12:22:45 betterthanamac multipassd[36774]: gRPC listening on unix:/var/snap/multipass/common/multipass_socket, SSL:on
mar 11 12:22:45 betterthanamac multipassd[36774]: Starting Multipass 1.8.0
mar 11 12:22:45 betterthanamac multipassd[36774]: Daemon arguments: /snap/multipass/6130/bin/multipassd --verbosity debug --logger platform
mar 11 12:23:07 betterthanamac multipassd[36774]: [37095] started: /snap/multipass/6130/bin/check_kvm_support
mar 11 12:23:08 betterthanamac multipassd[36774]: [37102] started: qemu-system-x86_64 --version
mar 11 12:23:08 betterthanamac multipassd[36774]: [37105] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 12:23:08 betterthanamac multipassd[36774]: [37110] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img 10737418240
mar 11 12:23:08 betterthanamac multipassd[36774]: [37116] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img
mar 11 12:23:08 betterthanamac multipassd[36774]: process working dir '/snap/multipass/6130/qemu'
mar 11 12:23:08 betterthanamac multipassd[36774]: process program 'qemu-system-x86_64'
mar 11 12:23:08 betterthanamac multipassd[36774]: process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-95771c1140b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:fc:28:24, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 2, -m, 3072M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/master/cloud-init-config.iso'
mar 11 12:23:08 betterthanamac multipassd[36774]: [37133] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.klNuVF
mar 11 12:23:08 betterthanamac multipassd[36774]: process state changed to Starting
mar 11 12:23:08 betterthanamac multipassd[36774]: process state changed to Running
mar 11 12:23:08 betterthanamac multipassd[36774]: [37142] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-95771c1140b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:fc:28:24 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/master/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 2 -m 3072M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/master/cloud-init-config.iso
mar 11 12:23:08 betterthanamac multipassd[36774]: process started
mar 11 12:23:08 betterthanamac multipassd[36774]: Waiting for SSH to be up
mar 11 12:23:08 betterthanamac multipassd[36774]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 4}, "package": "Debian 1:4.2-3ubuntu6.18"}, "capabilities": ["oob"]}}
mar 11 12:23:08 betterthanamac multipassd[36774]: QMP: {"return": {}}
mar 11 12:23:16 betterthanamac multipassd[36774]: QMP: {"timestamp": {"seconds": 1647001396, "microseconds": 803739}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[23]/virtio-backend"}}
mar 11 12:23:19 betterthanamac dnsmasq-dhcp[36865]: DHCPDISCOVER(mpqemubr0) 52:54:00:fc:28:24
mar 11 12:23:19 betterthanamac dnsmasq-dhcp[36865]: DHCPOFFER(mpqemubr0) 10.207.228.116 52:54:00:fc:28:24
mar 11 12:23:19 betterthanamac dnsmasq-dhcp[36865]: DHCPREQUEST(mpqemubr0) 10.207.228.116 52:54:00:fc:28:24
mar 11 12:23:19 betterthanamac dnsmasq-dhcp[36865]: DHCPACK(mpqemubr0) 10.207.228.116 52:54:00:fc:28:24 master
mar 11 12:23:50 betterthanamac multipassd[36774]: QMP: {"timestamp": {"seconds": 1647001430, "microseconds": 527428}, "event": "RTC_CHANGE", "data": {"offset": 1}}

At this point I wonder if it can be a problem with AppArmor, since I do not have it enabled. I will follow the Arch Wiki and work on getting it enabled and test again, to check if that makes any differece at all.

Saviq commented 2 years ago

Doubt AppArmor would be the problem… But I still can't see what's wrong. The instance is up, properly coming up with an IP… After it times out, if you find the IP from the logs, you can't ping/ssh to it?

How long does it stay at Starting…?

RafaelMoreira1180778 commented 2 years ago

Hello @Saviq. It might be a problem with Endevour OS. I took a different approach and I installed Multipass from "scratch" which compiles and runs multipass without the need of snapd.

I have qemu and libvirtd setup and I can launch virtual machines, I also have virt-manager setup.

When using multipass now I get the same effect:

$ time sudo multipass -vvvv launch

[2022-03-14T10:36:26.352] [debug] [/usr/bin/check_kvm_support] [15088] started: /usr/bin/check_kvm_support 
[2022-03-14T10:36:26.414] [debug] [qemu-system-x86_64] [15093] started: qemu-system-x86_64 --version
[2022-03-14T10:36:26.694] [debug] [qemu-img] [15098] started: qemu-img info /var/lib/multipassd/.cache/multipassd/vault/images/focal-20220308/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-14T10:36:26.700] [debug] [qemu-img] [15103] started: qemu-img resize /var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/ubuntu-20.04-server-cloudimg-amd64.img 5368709120
[2022-03-14T10:36:27.021] [debug] [qemu-img] [15107] started: qemu-img snapshot -l /var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-14T10:36:27.052] [debug] [vast-tomcat] process working dir ''          
[2022-03-14T10:36:27.052] [info] [vast-tomcat] process program 'qemu-system-x86_64'
[2022-03-14T10:36:27.052] [info] [vast-tomcat] process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-2e6f241e03e,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:01:f2:ba, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 1, -m, 1024M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/cloud-init-config.iso'
[2022-03-14T10:36:27.053] [debug] [qemu-system-x86_64] [15123] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.wglsdK
[2022-03-14T10:36:27.090] [info] [vast-tomcat] process state changed to Starting
[2022-03-14T10:36:27.091] [info] [vast-tomcat] process state changed to Running 
[2022-03-14T10:36:27.091] [debug] [qemu-system-x86_64] [15131] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-2e6f241e03e,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:01:f2:ba -device virtio-scsi-pci,id=scsi0 -drive file=/var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 1 -m 1024M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/cloud-init-config.iso
[2022-03-14T10:36:27.091] [info] [vast-tomcat] process started                  
launch failed: The following errors occurred:                                   
vast-tomcat: timed out waiting for response

sudo multipass -vvvv launch  0,09s user 0,15s system 0% cpu 5:01,74 total
$ journalctl -n 500 --no-pager /usr/bin/multipassd

mar 14 10:36:10 atlas multipassd[14987]: Using AppArmor support
mar 14 10:36:10 atlas multipassd[14987]: Failed to enable AppArmor: AppArmor is not enabled
mar 14 10:36:11 atlas multipassd[14987]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 14 10:36:11 atlas multipassd[14987]: Using iptables-nft for firewall rules.
mar 14 10:36:11 atlas multipassd[14987]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 14 10:36:11 atlas multipassd[14987]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 14 10:36:11 atlas multipassd[14987]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 14 10:36:11 atlas multipassd[14987]: # Warning: iptables-legacy tables present, use iptables-legacy to see them
mar 14 10:36:12 atlas multipassd[14987]: gRPC listening on unix:/run/multipass_socket, SSL:on
mar 14 10:36:12 atlas multipassd[14987]: causal-cat is deleted but has incompatible state 2, resetting state to 0 (stopped)
mar 14 10:36:12 atlas multipassd[14987]: Starting Multipass 1.8.0-dev.0+gf46229f6
mar 14 10:36:12 atlas multipassd[14987]: Daemon arguments: /usr/bin/multipassd
mar 14 10:36:27 atlas multipassd[14987]: process program 'qemu-system-x86_64'
mar 14 10:36:27 atlas multipassd[14987]: process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-2e6f241e03e,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:01:f2:ba, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 1, -m, 1024M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/lib/multipassd/.local/share/multipassd/vault/instances/vast-tomcat/cloud-init-config.iso'
mar 14 10:36:27 atlas multipassd[14987]: process state changed to Starting
mar 14 10:36:27 atlas multipassd[14987]: process state changed to Running
mar 14 10:36:27 atlas multipassd[14987]: process started
$ sudo iptables -L

# Warning: iptables-legacy tables present, use iptables-legacy to see them
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps /* generated for Multipass network mpqemubr0 */

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */
ACCEPT     all  --  10.185.110.0/24      anywhere             /* generated for Multipass network mpqemubr0 */
ACCEPT     all  --  anywhere             10.185.110.0/24      ctstate RELATED,ESTABLISHED /* generated for Multipass network mpqemubr0 */
REJECT     all  --  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */ reject-with icmp-port-unreachable
REJECT     all  --  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */ reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp spt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp spt:bootps /* generated for Multipass network mpqemubr0 */
$ sudo iptables-legacy -L

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
$ sudo systemctl status libvirtd.service

● libvirtd.service - Virtualization daemon
     Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; disabled; vendor preset: disabled)
     Active: active (running) since Mon 2022-03-14 10:48:12 WET; 1s ago
TriggeredBy: ● libvirtd-ro.socket
             ● libvirtd.socket
             ● libvirtd-admin.socket
       Docs: man:libvirtd(8)
             https://libvirt.org
   Main PID: 16490 (libvirtd)
      Tasks: 19 (limit: 32768)
     Memory: 6.3M
        CPU: 157ms
     CGroup: /system.slice/libvirtd.service
             └─16490 /usr/bin/libvirtd --timeout 120

mar 14 10:48:12 atlas systemd[1]: Starting Virtualization daemon...
mar 14 10:48:12 atlas systemd[1]: Started Virtualization daemon.

I have set the libvirtd as a driver with $ sudo multipass set local.driver=libvirt.

When the supposed machine is launching I cannot see the machine itself in virt-manager, and that is weird since my connection to qemu shows up and running there.

I will try and spread this info between a few forums, to see if anyone has any clue of what is happening. Must be an weird bug with my install or some package.

RafaelMoreira1180778 commented 2 years ago

Hello, st this point I gave up on multipass. Maybe if I distro hop again I will reuse it. For K8s local development I am using Kubernetes In Docker (kind). It does the job and does not have this sad behavior.

Saviq commented 2 years ago

Ah @RafaelMoreira1180778 now I see, Docker and Multipass may not play well together, since both modify networking and iptables, there's likely somewhere that they conflict.

Saviq commented 2 years ago

See #1866 for reference. The problem was nftables and iptables conflicting, and we've fixed that. Which version of Multipass did you have installed?

https://github.com/canonical/multipass/issues/1866#issuecomment-754181699

RafaelMoreira1180778 commented 2 years ago

Hi, I tried with all versions, currently installed is:

$ multipass --version
multipass   1.9.0-rc.433+g6c22b9e4
multipassd  1.9.0-rc.433+g6c22b9e4

And snapd:

$ snap --version 
snap         2.55.2-1
snapd        2.55.2-1
series       16
endeavouros  -
kernel       5.16.16-arch1-1

Docker is not running:

$ systemctl status docker.socket 
○ docker.socket - Docker Socket for the API
     Loaded: loaded (/usr/lib/systemd/system/docker.socket; enabled; vendor preset: disabled)
     Active: inactive (dead) since Mon 2022-03-28 10:31:18 WEST; 57s ago
   Triggers: ● docker.service
     Listen: /run/docker.sock (Stream)
        CPU: 1ms

mar 28 10:26:57 atlas systemd[1]: Starting Docker Socket for the API...
mar 28 10:26:57 atlas systemd[1]: Listening on Docker Socket for the API.
mar 28 10:31:18 atlas systemd[1]: docker.socket: Deactivated successfully.
mar 28 10:31:18 atlas systemd[1]: Closed Docker Socket for the API.

And I flushed the iptables:

$ sudo iptables -F

$ sudo iptables -L 
# Warning: iptables-legacy tables present, use iptables-legacy to see them
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps /* generated for Multipass network mpqemubr0 */

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */
ACCEPT     all  --  10.240.180.0/24      anywhere             /* generated for Multipass network mpqemubr0 */
ACCEPT     all  --  anywhere             10.240.180.0/24      ctstate RELATED,ESTABLISHED /* generated for Multipass network mpqemubr0 */
REJECT     all  --  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */ reject-with icmp-port-unreachable
REJECT     all  --  anywhere             anywhere             /* generated for Multipass network mpqemubr0 */ reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp spt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp spt:domain /* generated for Multipass network mpqemubr0 */
ACCEPT     udp  --  anywhere             anywhere             udp spt:bootps /* generated for Multipass network mpqemubr0 */

$ sudo iptables-legacy -L 
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  

And still exact same behavior:

$ sudo multipass -vvvv launch 
[2022-03-28T10:35:34.253] [debug] [qemu-system-x86_64] [11813] started: qemu-system-x86_64 --version
[2022-03-28T10:35:34.523] [debug] [qemu-img] [11817] started: qemu-img info /var/snap/multipass/common/cache/multipassd/vault/images/focal-20220322/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-28T10:35:34.528] [debug] [qemu-img] [11822] started: qemu-img resize /var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/ubuntu-20.04-server-cloudimg-amd64.img 5368709120
[2022-03-28T10:35:34.850] [debug] [qemu-img] [11826] started: qemu-img snapshot -l /var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/ubuntu-20.04-server-cloudimg-amd64.img
[2022-03-28T10:35:34.877] [debug] [unbroken-grouper] process working dir '/snap/multipass/6683/qemu'
[2022-03-28T10:35:34.877] [info] [unbroken-grouper] process program 'qemu-system-x86_64'
[2022-03-28T10:35:34.877] [info] [unbroken-grouper] process arguments '--enable-kvm, -cpu, host, -nic, tap,ifname=tap-6eba52efc0b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:28:dc:42, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 1, -m, 1024M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/cloud-init-config.iso'
[2022-03-28T10:35:34.879] [debug] [qemu-system-x86_64] [11841] started: qemu-system-x86_64 -nographic -dump-vmstate /tmp/multipassd.yteScD
[2022-03-28T10:35:34.908] [info] [unbroken-grouper] process state changed to Starting
[2022-03-28T10:35:34.909] [info] [unbroken-grouper] process state changed to Running
[2022-03-28T10:35:34.909] [debug] [qemu-system-x86_64] [11851] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-6eba52efc0b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:28:dc:42 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 1 -m 1024M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/cloud-init-config.iso
[2022-03-28T10:35:34.909] [info] [unbroken-grouper] process started             
launch failed: The following errors occurred:                                   
unbroken-grouper: timed out waiting for response

Network interfaces:

$ ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:d8:61:89:2d:44 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 94:e6:f7:a5:ae:7e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.138/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
       valid_lft 2864sec preferred_lft 2864sec
    inet6 2001:818:e795:1400:54db:a8ad:56ef:1bb1/64 scope global dynamic noprefixroute 
       valid_lft 86395sec preferred_lft 3595sec
    inet6 fe80::859d:6842:b5b1:822f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
8: mpqemubr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 52:54:00:7a:2b:6e brd ff:ff:ff:ff:ff:ff
    inet 10.240.180.1/24 brd 10.240.180.255 scope global mpqemubr0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe7a:2b6e/64 scope link 
       valid_lft forever preferred_lft forever
10: tap-6eba52efc0b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master mpqemubr0 state UP group default qlen 1000
    link/ether be:a6:9f:4f:ca:9b brd ff:ff:ff:ff:ff:ff
    inet6 fe80::bca6:9fff:fe4f:ca9b/64 scope link 
       valid_lft forever preferred_lft forever

As you can see, no Docker network interface is present. I honestly do not know why this is happening. I can ping the supposed instance while it is "starting" and even after the launch process times out I can still ping it:

$ ping -n 10.240.180.195
PING 10.240.180.195 (10.240.180.195) 56(84) bytes of data.
64 bytes from 10.240.180.195: icmp_seq=1 ttl=64 time=0.386 ms
64 bytes from 10.240.180.195: icmp_seq=2 ttl=64 time=0.679 ms
64 bytes from 10.240.180.195: icmp_seq=3 ttl=64 time=0.609 ms
64 bytes from 10.240.180.195: icmp_seq=4 ttl=64 time=0.240 ms
64 bytes from 10.240.180.195: icmp_seq=5 ttl=64 time=0.680 ms
64 bytes from 10.240.180.195: icmp_seq=6 ttl=64 time=0.614 ms
64 bytes from 10.240.180.195: icmp_seq=7 ttl=64 time=0.633 ms
^C
--- 10.240.180.195 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6088ms
rtt min/avg/max/mdev = 0.240/0.548/0.680/0.156 ms

These are the multipass logs:

$ sudo snap logs -f multipass
2022-03-28T10:35:34+01:00 multipassd[10995]: [11851] started: qemu-system-x86_64 --enable-kvm -cpu host -nic tap,ifname=tap-6eba52efc0b,script=no,downscript=no,model=virtio-net-pci,mac=52:54:00:28:dc:42 -device virtio-scsi-pci,id=scsi0 -drive file=/var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/ubuntu-20.04-server-cloudimg-amd64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 1 -m 1024M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/snap/multipass/common/data/multipassd/vault/instances/unbroken-grouper/cloud-init-config.iso
2022-03-28T10:35:34+01:00 multipassd[10995]: process started
2022-03-28T10:35:34+01:00 multipassd[10995]: Waiting for SSH to be up
2022-03-28T10:35:34+01:00 multipassd[10995]: QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 4}, "package": "Debian 1:4.2-3ubuntu6.21"}, "capabilities": ["oob"]}}
2022-03-28T10:35:34+01:00 multipassd[10995]: QMP: {"return": {}}
2022-03-28T10:35:43+01:00 multipassd[10995]: QMP: {"timestamp": {"seconds": 1648460143, "microseconds": 929632}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[22]/virtio-backend"}}
2022-03-28T10:35:46+01:00 dnsmasq-dhcp[11051]: DHCPDISCOVER(mpqemubr0) 52:54:00:28:dc:42
2022-03-28T10:35:46+01:00 dnsmasq-dhcp[11051]: DHCPOFFER(mpqemubr0) 10.240.180.195 52:54:00:28:dc:42
2022-03-28T10:35:46+01:00 dnsmasq-dhcp[11051]: DHCPREQUEST(mpqemubr0) 10.240.180.195 52:54:00:28:dc:42
2022-03-28T10:35:46+01:00 dnsmasq-dhcp[11051]: DHCPACK(mpqemubr0) 10.240.180.195 52:54:00:28:dc:42 unbroken-grouper
2022-03-28T10:36:19+01:00 multipassd[10995]: QMP: {"timestamp": {"seconds": 1648460179, "microseconds": 547274}, "event": "RTC_CHANGE", "data": {"offset": 1}}
RafaelMoreira1180778 commented 2 years ago

@Saviq Another thing I noticed:

$ multipass networks
networks failed: The networks feature is not implemented on this backend.

$ multipass get local.driver
qemu

And the networks:

$ ip address 
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 00:d8:61:89:2d:44 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 94:e6:f7:a5:ae:7e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.138/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
       valid_lft 2819sec preferred_lft 2819sec
    inet6 2001:818:e795:1400:54db:a8ad:56ef:1bb1/64 scope global dynamic noprefixroute 
       valid_lft 86382sec preferred_lft 3582sec
    inet6 fe80::859d:6842:b5b1:822f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
5: mpqemubr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 52:54:00:4c:0c:48 brd ff:ff:ff:ff:ff:ff
    inet 10.185.110.1/24 brd 10.185.110.255 scope global mpqemubr0
       valid_lft forever preferred_lft forever
    inet6 fe80::5054:ff:fe4c:c48/64 scope link 
       valid_lft forever preferred_lft forever
6: tap-6277763c921: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master mpqemubr0 state UP group default qlen 1000
    link/ether 7e:60:dc:0b:ed:b3 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::7c60:dcff:fe0b:edb3/64 scope link 
       valid_lft forever preferred_lft forever
Saviq commented 2 years ago

@RafaelMoreira1180778 that's expected, we've not yet implemented bridging on the qemu driver on Linux. You could try the lxd driver, however (sudo snap install lxd; sudo lxd init --auto; sudo multipass set local.driver=lxd), which could help with the networking issue as well as expose networking support.

Etherealflux commented 2 years ago

I'm having this problem on MacOS 12.3. Immediately after installing Docker, my Multipass instance lost internet connectivity.

I'm not sure what information would be helpful, so please let me know if there's anything I should show!

jfuqua7 commented 1 year ago

I'm having the same problem on Windows 11. Multipass was working fine...installed Docker Desktop, now everything hangs.

jfuqua7 commented 1 year ago

Docker does some weird networking stuff. On windows go look at the following file and find the duplicates. C:\Windows\System32\drivers\etc\hosts.ics Delete all the duplicates and let multipass recreate them. Not sure where comparable file is in MacOS

corysus commented 1 year ago

I had this problem with Ubuntu 22.04.1 (5.15.0-67-generic) server and latest multipass 1.11.0 and lxd 5.11, problem is something with docker iptable rule, you can try to add this to iptables and see does this work for you:  sudo iptables -I DOCKER-USER -j ACCEPT

willzhang commented 1 year ago

I have same problem with Ubuntu 22.04.2 server and latest multipass 1.11.0.

I install kubernetes with containerd in host, when i delete kubernetes cluster and reboot host, the instance can ping and access internet network.

image

yizh7963 commented 7 months ago

I had this problem with Ubuntu 22.04.1 (5.15.0-67-generic) server and latest multipass 1.11.0 and lxd 5.11, problem is something with docker iptable rule, you can try to add this to iptables and see does this work for you: sudo iptables -I DOCKER-USER -j ACCEPT

It works for me. Ubuntu 23.10 (6.5.0-17-generic) desktop and multipass 1.13.1