canonical / multipass

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

More Multipass Socket issues on M1 Mac #3387

Closed computershateme closed 9 months ago

computershateme commented 9 months ago

DESCRIBE THE BUG Unable to use Multipass after either (1) a random period of time passes (2) I follow the instructions in the Mac section of “Expose Multipass to your network”

TO REPRODUCE There are times that it randomly loses connection to the socket never to recover. It will also happen after completing and putting in either my hostname or ip address

$ sudo /usr/libexec/PlistBuddy \ -c "Add :ProgramArguments: string --address" \ -c "Add :ProgramArguments: string :51001" \ /Library/LaunchDaemons/com.canonical.multipassd.plist $ sudo launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist $ sudo launchctl load /Library/LaunchDaemons/com.canonical.multipassd.plist

EXPECTED BEHAVIOR I would expect to continue to be able to use my instances

LOGS [2024-01-26T18:09:16.474] [debug] [qemu-system-aarch64] [77838] started: qemu-system-aarch64 --version [2024-01-26T18:09:39.128] [debug] [image vault] Verifying hash "1072e90dd339fd7ba1e82b6c1c3b03183287ca4a6da52c04eaeb0e5653a59bc7" [2024-01-26T18:09:44.943] [debug] [qemu-img] [78005] started: qemu-img info --output=json /var/root/Library/Caches/multipassd/qemu/vault/images/mantic-20240125/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:09:44.958] [debug] [qemu-img] [78006] started: qemu-img amend -o compat=1.1 /var/root/Library/Caches/multipassd/qemu/vault/images/mantic-20240125/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:09:44.964] [debug] [qemu-img] [78007] started: qemu-img info /var/root/Library/Caches/multipassd/qemu/vault/images/mantic-20240125/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:09:44.972] [debug] [qemu-img] [78008] started: qemu-img resize /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img 107374182400 [2024-01-26T18:09:44.979] [debug] [qemu-img] [78009] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:09:44.984] [debug] [qemu-img] [78010] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:09:44.988] [debug] [guaranteed-surfbird] process working dir '' [2024-01-26T18:09:44.988] [info] [guaranteed-surfbird] process program 'qemu-system-aarch64' [2024-01-26T18:09:44.988] [info] [guaranteed-surfbird] process arguments '-machine, virt,gic-version=3, -accel, hvf, -drive, file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on, -cpu, host, -nic, vmnet-shared,model=virtio-net-pci,mac=52:54:00:28:37:b6, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 4, -m, 10240M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/cloud-init-config.iso' [2024-01-26T18:09:44.990] [debug] [qemu-system-aarch64] [78011] started: qemu-system-aarch64 -machine virt,gic-version=3 -nographic -dump-vmstate /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/multipassd.IDuArM [2024-01-26T18:09:45.023] [info] [guaranteed-surfbird] process state changed to Starting [2024-01-26T18:09:45.024] [info] [guaranteed-surfbird] process state changed to Running [2024-01-26T18:09:45.024] [debug] [qemu-system-aarch64] [78012] started: qemu-system-aarch64 -machine virt,gic-version=3 -accel hvf -drive file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on -cpu host -nic vmnet-shared,model=virtio-net-pci,mac=52:54:00:28:37:b6 -device virtio-scsi-pci,id=scsi0 -drive file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img,if=none,format=qcow2,discard=unmap,id=hda -device scsi-hd,drive=hda,bus=scsi0.0 -smp 4 -m 10240M -qmp stdio -chardev null,id=char0 -serial chardev:char0 -nographic -cdrom /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/cloud-init-config.iso [2024-01-26T18:09:45.024] [info] [guaranteed-surfbird] process started [2024-01-26T18:09:45.025] [debug] [guaranteed-surfbird] Waiting for SSH to be up [2024-01-26T18:09:45.051] [debug] [guaranteed-surfbird] QMP: {"QMP": {"version": {"qemu": {"micro": 0, "minor": 0, "major": 8}, "package": ""}, "capabilities": ["oob"]}}

[2024-01-26T18:09:45.146] [debug] [guaranteed-surfbird] QMP: {"return": {}}

[2024-01-26T18:10:00.037] [debug] [guaranteed-surfbird] QMP: {"timestamp": {"seconds": 1706310600, "microseconds": 37639}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[9]/virtio-backend"}}

[2024-01-26T18:10:04.326] [debug] [ssh session] Executing '[ -e /var/lib/cloud/instance/boot-finished ]' [2024-01-26T18:10:06.526] [debug] [ssh session] Executing '[ -e /var/lib/cloud/instance/boot-finished ]' [2024-01-26T18:10:07.631] [debug] [ssh session] Executing '[ -e /var/lib/cloud/instance/boot-finished ]' [2024-01-26T18:10:08.768] [debug] [ssh session] Executing '[ -e /var/lib/cloud/instance/boot-finished ]' [2024-01-26T18:10:09.949] [debug] [ssh session] Executing '[ -e /var/lib/cloud/instance/boot-finished ]' [2024-01-26T18:10:37.155] [debug] [guaranteed-surfbird] QMP: {"timestamp": {"seconds": 1706310637, "microseconds": 155617}, "event": "RTC_CHANGE", "data": {"offset": 0, "qom-path": "/machine/unattached/device[7]"}}

[2024-01-26T18:15:03.985] [debug] [primary] QMP: {"timestamp": {"seconds": 1706310903, "microseconds": 985729}, "event": "RTC_CHANGE", "data": {"offset": 1, "qom-path": "/machine/unattached/device[4]"}}

[2024-01-26T18:19:48.508] [debug] [async task] fetch manifest periodically [2024-01-26T18:19:48.517] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:21:38.978] [debug] [guaranteed-surfbird] QMP: {"timestamp": {"seconds": 1706311298, "microseconds": 978543}, "event": "RTC_CHANGE", "data": {"offset": 1, "qom-path": "/machine/unattached/device[7]"}}

[2024-01-26T18:26:02.992] [debug] [primary] QMP: {"timestamp": {"seconds": 1706311562, "microseconds": 992218}, "event": "RTC_CHANGE", "data": {"offset": 1, "qom-path": "/machine/unattached/device[4]"}}

[2024-01-26T18:26:21.967] [debug] [daemon] Rebooting guaranteed-surfbird [2024-01-26T18:26:21.996] [debug] [ssh session] Executing 'sudo systemctl stop ssh' [2024-01-26T18:26:22.277] [debug] [ssh session] Executing 'sudo reboot' [2024-01-26T18:26:22.295] [debug] [guaranteed-surfbird] Waiting for SSH to be up [2024-01-26T18:26:59.678] [debug] [guaranteed-surfbird] QMP: {"timestamp": {"seconds": 1706311619, "microseconds": 678374}, "event": "RESET", "data": {"guest": true, "reason": "guest-reset"}}

[2024-01-26T18:26:59.678] [info] [guaranteed-surfbird] VM restarting [2024-01-26T18:26:59.679] [debug] [guaranteed-surfbird] Waiting for SSH to be up [2024-01-26T18:27:35.962] [debug] [ssh session] Executing 'wall The system is going down for poweroff now' [2024-01-26T18:27:36.056] [debug] [guaranteed-surfbird] QMP: {"return": {}}

[2024-01-26T18:27:36.056] [debug] [guaranteed-surfbird] QMP: {"timestamp": {"seconds": 1706311656, "microseconds": 56520}, "event": "POWERDOWN"}

[2024-01-26T18:27:36.056] [info] [guaranteed-surfbird] VM powering down [2024-01-26T18:27:38.975] [debug] [guaranteed-surfbird] QMP: {"timestamp": {"seconds": 1706311658, "microseconds": 975474}, "event": "RTC_CHANGE", "data": {"offset": 1, "qom-path": "/machine/unattached/device[7]"}}

[2024-01-26T18:27:39.773] [debug] [guaranteed-surfbird] QMP: {"timestamp": {"seconds": 1706311659, "microseconds": 773501}, "event": "SHUTDOWN", "data": {"guest": true, "reason": "guest-shutdown"}}

[2024-01-26T18:27:39.773] [info] [guaranteed-surfbird] VM shut down [2024-01-26T18:27:39.845] [info] [guaranteed-surfbird] process state changed to NotRunning [2024-01-26T18:27:39.845] [info] [guaranteed-surfbird] process finished with exit code 0 [2024-01-26T18:27:55.701] [debug] [ssh session] Executing 'wall The system is going down for poweroff now' [2024-01-26T18:27:55.787] [debug] [ssh session] Executing 'echo $PWD/Home' [2024-01-26T18:27:55.819] [debug] [ssh session] Executing 'findmnt --type fuse.sshfs | grep -E '^/home/ubuntu/Home +:/Users/work'' [2024-01-26T18:27:55.827] [info] [sshfs-mount-handler] Stopping mount "Home" in instance 'primary' [2024-01-26T18:27:55.831] [info] [sshfs-mount-handler] Mount "Home" in instance 'primary' has stopped [2024-01-26T18:27:55.831] [debug] [primary] QMP: {"return": {}} {"timestamp": {"seconds": 1706311675, "microseconds": 831693}, "event": "POWERDOWN"}

[2024-01-26T18:27:59.525] [debug] [primary] QMP: {"timestamp": {"seconds": 1706311679, "microseconds": 525732}, "event": "SHUTDOWN", "data": {"guest": true, "reason": "guest-shutdown"}}

[2024-01-26T18:27:59.525] [info] [primary] VM shut down [2024-01-26T18:27:59.711] [info] [primary] process state changed to NotRunning [2024-01-26T18:27:59.711] [info] [primary] process finished with exit code 0 [2024-01-26T18:30:40.406] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-26T18:30:40.406] [info] [daemon] Goodbye! [2024-01-26T18:30:49.934] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1 [2024-01-26T18:30:49.935] [debug] [blueprint provider] Loading "charm-dev" v1 [2024-01-26T18:30:49.936] [debug] [blueprint provider] Loading "docker" v1 [2024-01-26T18:30:49.936] [debug] [blueprint provider] Loading "jellyfin" v1 [2024-01-26T18:30:49.937] [debug] [blueprint provider] Loading "minikube" v1 [2024-01-26T18:30:49.937] [debug] [blueprint provider] Loading "ros-noetic" v1 [2024-01-26T18:30:49.938] [debug] [blueprint provider] Loading "ros2-humble" v1 [2024-01-26T18:30:49.947] [info] [rpc] gRPC listening on :51001 [2024-01-26T18:30:49.947] [debug] [async task] fetch manifest periodically [2024-01-26T18:30:49.950] [debug] [qemu-img] [84988] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:30:49.952] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:30:49.974] [debug] [qemu-img] [84989] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:30:49.982] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-26T18:30:49.984] [debug] [qemu-img] [84990] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:30:49.992] [debug] [qemu-img] [84991] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:30:49.999] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-26T18:30:49.999] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address :51001 --address :51001 [2024-01-26T18:30:50.191] [debug] [update] Latest Multipass release available is version 1.13.0 [2024-01-26T18:33:21.261] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-26T18:33:21.261] [info] [daemon] Goodbye! [2024-01-26T18:33:21.720] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1 [2024-01-26T18:33:21.721] [debug] [blueprint provider] Loading "charm-dev" v1 [2024-01-26T18:33:21.722] [debug] [blueprint provider] Loading "docker" v1 [2024-01-26T18:33:21.722] [debug] [blueprint provider] Loading "jellyfin" v1 [2024-01-26T18:33:21.723] [debug] [blueprint provider] Loading "minikube" v1 [2024-01-26T18:33:21.723] [debug] [blueprint provider] Loading "ros-noetic" v1 [2024-01-26T18:33:21.723] [debug] [blueprint provider] Loading "ros2-humble" v1 [2024-01-26T18:33:21.729] [info] [rpc] gRPC listening on :51001 [2024-01-26T18:33:21.729] [debug] [async task] fetch manifest periodically [2024-01-26T18:33:21.733] [debug] [qemu-img] [85808] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:33:21.733] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:33:21.741] [debug] [qemu-img] [85809] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:33:21.748] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-26T18:33:21.751] [debug] [qemu-img] [85810] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:33:21.759] [debug] [qemu-img] [85811] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:33:21.767] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-26T18:33:21.767] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address :51001 --address :51001 [2024-01-26T18:33:22.036] [debug] [update] Latest Multipass release available is version 1.13.0 [2024-01-26T18:34:58.148] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-26T18:34:58.148] [info] [daemon] Goodbye! [2024-01-26T18:35:07.479] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1 [2024-01-26T18:35:07.480] [debug] [blueprint provider] Loading "charm-dev" v1 [2024-01-26T18:35:07.480] [debug] [blueprint provider] Loading "docker" v1 [2024-01-26T18:35:07.481] [debug] [blueprint provider] Loading "jellyfin" v1 [2024-01-26T18:35:07.481] [debug] [blueprint provider] Loading "minikube" v1 [2024-01-26T18:35:07.482] [debug] [blueprint provider] Loading "ros-noetic" v1 [2024-01-26T18:35:07.482] [debug] [blueprint provider] Loading "ros2-humble" v1 [2024-01-26T18:35:07.487] [info] [rpc] gRPC listening on :51001 [2024-01-26T18:35:07.487] [debug] [async task] fetch manifest periodically [2024-01-26T18:35:07.491] [debug] [qemu-img] [86402] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:35:07.492] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:35:07.503] [debug] [qemu-img] [86403] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:35:07.511] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-26T18:35:07.514] [debug] [qemu-img] [86404] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:35:07.522] [debug] [qemu-img] [86405] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:35:07.530] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-26T18:35:07.530] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address :51001 [2024-01-26T18:35:07.802] [debug] [update] Latest Multipass release available is version 1.13.0 [2024-01-26T18:50:07.475] [debug] [async task] fetch manifest periodically [2024-01-26T18:50:07.480] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:54:11.258] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-26T18:54:11.259] [info] [daemon] Goodbye! [2024-01-26T18:54:11.797] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1 [2024-01-26T18:54:11.798] [debug] [blueprint provider] Loading "charm-dev" v1 [2024-01-26T18:54:11.799] [debug] [blueprint provider] Loading "docker" v1 [2024-01-26T18:54:11.799] [debug] [blueprint provider] Loading "jellyfin" v1 [2024-01-26T18:54:11.800] [debug] [blueprint provider] Loading "minikube" v1 [2024-01-26T18:54:11.800] [debug] [blueprint provider] Loading "ros-noetic" v1 [2024-01-26T18:54:11.800] [debug] [blueprint provider] Loading "ros2-humble" v1 [2024-01-26T18:54:11.807] [info] [rpc] gRPC listening on :51001 [2024-01-26T18:54:11.807] [debug] [async task] fetch manifest periodically [2024-01-26T18:54:11.811] [debug] [qemu-img] [92724] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:54:11.812] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:54:11.837] [debug] [qemu-img] [92725] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:54:11.846] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-26T18:54:11.848] [debug] [qemu-img] [92726] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:54:11.857] [debug] [qemu-img] [92727] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:54:11.865] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-26T18:54:11.865] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address .:51001 [2024-01-26T18:54:12.111] [debug] [update] Latest Multipass release available is version 1.13.0 [2024-01-26T18:57:14.813] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-26T18:57:14.813] [info] [daemon] Goodbye! [2024-01-26T18:57:28.601] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1 [2024-01-26T18:57:28.602] [debug] [blueprint provider] Loading "charm-dev" v1 [2024-01-26T18:57:28.603] [debug] [blueprint provider] Loading "docker" v1 [2024-01-26T18:57:28.603] [debug] [blueprint provider] Loading "jellyfin" v1 [2024-01-26T18:57:28.604] [debug] [blueprint provider] Loading "minikube" v1 [2024-01-26T18:57:28.604] [debug] [blueprint provider] Loading "ros-noetic" v1 [2024-01-26T18:57:28.605] [debug] [blueprint provider] Loading "ros2-humble" v1 [2024-01-26T18:57:28.611] [info] [rpc] gRPC listening on :51001 [2024-01-26T18:57:28.612] [debug] [async task] fetch manifest periodically [2024-01-26T18:57:28.615] [debug] [qemu-img] [93777] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:57:28.616] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:57:28.625] [debug] [qemu-img] [93778] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:57:28.646] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-26T18:57:28.649] [debug] [qemu-img] [93779] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:57:28.657] [debug] [qemu-img] [93780] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:57:28.667] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-26T18:57:28.667] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address :51001 [2024-01-26T18:57:29.000] [debug] [update] Latest Multipass release available is version 1.13.0 [2024-01-26T18:59:30.324] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-26T18:59:30.325] [info] [daemon] Goodbye! [2024-01-26T18:59:41.529] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1 [2024-01-26T18:59:41.530] [debug] [blueprint provider] Loading "charm-dev" v1 [2024-01-26T18:59:41.530] [debug] [blueprint provider] Loading "docker" v1 [2024-01-26T18:59:41.531] [debug] [blueprint provider] Loading "jellyfin" v1 [2024-01-26T18:59:41.531] [debug] [blueprint provider] Loading "minikube" v1 [2024-01-26T18:59:41.532] [debug] [blueprint provider] Loading "ros-noetic" v1 [2024-01-26T18:59:41.532] [debug] [blueprint provider] Loading "ros2-humble" v1 [2024-01-26T18:59:41.542] [info] [rpc] gRPC listening on .local:51001 [2024-01-26T18:59:41.542] [debug] [async task] fetch manifest periodically [2024-01-26T18:59:41.546] [debug] [qemu-img] [94541] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:59:41.547] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T18:59:41.596] [debug] [qemu-img] [94542] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T18:59:41.604] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-26T18:59:41.606] [debug] [qemu-img] [94543] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:59:41.617] [debug] [qemu-img] [94544] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T18:59:41.629] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-26T18:59:41.629] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address :51001 [2024-01-26T18:59:41.847] [debug] [update] Latest Multipass release available is version 1.13.0 [2024-01-26T19:03:50.207] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-26T19:03:50.208] [info] [daemon] Goodbye! [2024-01-26T19:04:01.056] [debug] [blueprint provider] Loading "anbox-cloud-appliance" v1 [2024-01-26T19:04:01.056] [debug] [blueprint provider] Loading "charm-dev" v1 [2024-01-26T19:04:01.056] [debug] [blueprint provider] Loading "docker" v1 [2024-01-26T19:04:01.057] [debug] [blueprint provider] Loading "jellyfin" v1 [2024-01-26T19:04:01.057] [debug] [blueprint provider] Loading "minikube" v1 [2024-01-26T19:04:01.057] [debug] [blueprint provider] Loading "ros-noetic" v1 [2024-01-26T19:04:01.057] [debug] [blueprint provider] Loading "ros2-humble" v1 [2024-01-26T19:04:01.061] [info] [rpc] gRPC listening on .local:51001 [2024-01-26T19:04:01.061] [debug] [async task] fetch manifest periodically [2024-01-26T19:04:01.063] [debug] [qemu-img] [96040] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T19:04:01.063] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-26T19:04:01.081] [debug] [qemu-img] [96041] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/primary/ubuntu-22.04-server-cloudimg-arm64.img [2024-01-26T19:04:01.086] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-26T19:04:01.088] [debug] [qemu-img] [96042] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T19:04:01.093] [debug] [qemu-img] [96043] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img [2024-01-26T19:04:01.099] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-26T19:04:01.099] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd --verbosity debug --address :51001 [2024-01-26T19:04:01.313] [debug] [update] Latest Multipass release available is version 1.13.0 [2024-01-26T19:19:01.444] [debug] [async task] fetch manifest periodically [2024-01-26T19:19:01.453] [info] [VMImageHost] Did not find any supported products in "appliance" . . . . . [2024-01-27T11:39:54.806] [info] [daemon] Received signal 15 (Terminated: 15) [2024-01-27T11:39:54.894] [info] [daemon] Goodbye!

NOTE Then, after opening a terminal and launching sudo /Library/Application\ Support/com.canonical.multipass/bin/multipassd, these are the logs from the Terminal application

[2024-01-27T23:15:34.391] [info] [rpc] gRPC listening on unix:/var/run/multipass_socket [2024-01-27T23:15:34.392] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-27T23:15:34.461] [info] [sshfs-mount-handler] initializing mount /Users/work => Home in 'primary' [2024-01-27T23:15:34.481] [info] [daemon] Starting Multipass 1.13.0+mac [2024-01-27T23:15:34.481] [info] [daemon] Daemon arguments: /Library/Application Support/com.canonical.multipass/bin/multipassd [2024-01-27T23:19:41.734] [info] [guaranteed-surfbird] process program 'qemu-system-aarch64' [2024-01-27T23:19:41.734] [info] [guaranteed-surfbird] process arguments '-machine, virt,gic-version=3, -accel, hvf, -drive, file=/Library/Application Support/com.canonical.multipass/bin/../Resources/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on, -cpu, host, -nic, vmnet-shared,model=virtio-net-pci,mac=52:54:00:28:37:b6, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/ubuntu-23.10-server-cloudimg-arm64.img,if=none,format=qcow2,discard=unmap,id=hda, -device, scsi-hd,drive=hda,bus=scsi0.0, -smp, 4, -m, 10240M, -qmp, stdio, -chardev, null,id=char0, -serial, chardev:char0, -nographic, -cdrom, /var/root/Library/Application Support/multipassd/qemu/vault/instances/guaranteed-surfbird/cloud-init-config.iso' [2024-01-27T23:19:41.907] [info] [guaranteed-surfbird] process state changed to Starting [2024-01-27T23:19:41.909] [info] [guaranteed-surfbird] process state changed to Running [2024-01-27T23:19:41.909] [info] [guaranteed-surfbird] process started [2024-01-27T23:30:33.982] [info] [VMImageHost] Did not find any supported products in "appliance" [2024-01-27T23:45:33.966] [info] [VMImageHost] Did not find any supported products in "appliance"

ADDITIONAL INFO

Name: primary State: Stopped Snapshots: 0 IPv4: -- Release: -- Image hash: dddfb1741f16 (Ubuntu 22.04 LTS) CPU(s): -- Load: -- Disk usage: -- Memory usage: -- Mounts: /Users/work => Home UID map: 501:default GID map: 20:default

Name: guaranteed-surfbird State: Running Snapshots: 0 IPv4: 192.168.69.35 10.6.30.1 Release: Ubuntu 23.10 Image hash: 1072e90dd339 (Ubuntu 23.10) CPU(s): 4 Load: 0.62 0.18 0.06 Disk usage: 3.8GiB out of 96.8GiB Memory usage: 496.7MiB out of 9.7GiB Mounts: --

ADDITIONAL CONTEXT A. Things I have tried that are NOT helpful

  1. sudo launchctl unload /Library/LaunchDaemons/com.canonical.multipassd.plist then sudo launchctl load -w /Library/LaunchDaemons/com.canonical.multipassd.plist

  2. sudo killall -9 multipassd

  3. sudo launchctl bootout system/com.canonical.multipassd then sudo launchctl load -w /Library/LaunchDaemons/com.canonical.multipassd.plist

  4. deleted the contents of /var/db/dhcpd_leases

  5. sudo killall -9 sshd

  6. sudo launchctl bootout system/com.openssh.sshd then sudo launchctl bootstrap system/com.openssh.sshd

  7. sudo launchctl unload /System/Library/LaunchDaemons/ssh.plist then sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

  8. sudo launchctl kickstart -k system/com.openssh.sshd

  9. sudo launchctl kickstart -k system/com.canonical.multipassd

  10. /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/libexec/bootpd then /usr/libexec/ApplicationFirewall/socketfilterfw --unblock /usr/libexec/bootpd

  11. Rebooting my computer

  12. Giving all available permissions to Multipass

  13. Turned off “allow in background” slider in settings

B. Things I have tried which ARE helpful Open a new terminal and sudo /Library/Application Support/com.canonical.multipass/bin/multipassd (problem with this is that the second I close the terminal that is running the new daemon the message returns to “launch failed: cannot connect to the multipass socket”

  1. Completely uninstalling and then reinstalling Multipass (which causes all of my instances to be lost)
georgeliao commented 9 months ago

Hi, @computershateme thanks for reporting this.

(1) a random period of time passes

This one looks like the notorious firewall issue (https://github.com/canonical/multipass/issues/2387), can you try something there and let us know?

(2) I follow the instructions in the Mac section of “Expose Multipass to your network”

Can you share more context of your case? Did you also have the mutipass client and daemon on the same machine?

computershateme commented 9 months ago

Hi, @computershateme thanks for reporting this.

(1) a random period of time passes

This one looks like the notorious firewall issue (https://github.com/canonical/multipass/issues/2387), can you try something there and let us know?

I have tried a few of these with no luck but see that there are a few more that I can try. I'll keep you posted on this one

(2) I follow the instructions in the Mac section of “Expose Multipass to your network”

Can you share more context of your case? Did you also have the mutipass client and daemon on the same machine?

Yes my client and daemon are on the same mac m1. What I did was follow the directions in that little box. First I plugged in the ip address of the mac mini where it has the < > in the formula. I hit enter, boot out the daemon and then loaded it again to get the socket warning. I uninstalled and then reinstalled and tried using the hostname of the Mac mini with .local at the end instead of the ip address then restarted the daemon as instructed and again got the socket warning

georgeliao commented 9 months ago

Hi @computershateme

  1. The https://multipass.run/docs/how-to-use-multipass-remotely-a-preview page is an experimental feature. It used to work before but later things have changed after the apple firewall issue.
  2. May I ask the state of your multipass before the adding the address? You mentioned that it randomly loses connection, was it already in a bad state?
townsend2010 commented 9 months ago

Hi @computershateme!

Just following up to see if there any more details you can provide like what @georgeliao asked for? Otherwise, we will close this issue soon. Thanks!

computershateme commented 9 months ago

I'm sorry I haven't gotten a chance to look further into this (I'm on vacation for one more week) so we can close the case for now. If I continue to have problems when I get home and have had a chance to complete the recommended troubleshooting steps, I will reopen the case.Thank you Sent from my iPhoneOn Feb 9, 2024, at 9:39 AM, Chris Townsend @.***> wrote: Hi @computershateme! Just following up to see if there any more details you can provide like what @georgeliao asked for? Otherwise, we will close this issue soon. Thanks!

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

townsend2010 commented 9 months ago

Hi @computershateme,

Thank you for the reply! Sure, I will close this, but please feel free to reopen later if you need to.