canonical / multipass

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

Multipass times out starting/launching instances #3583

Open ananyaaaaww opened 1 month ago

ananyaaaaww commented 1 month ago

17211365108254868818114205872505 I had previously installed multipass in my system yesterday. It worked well for some minutes, and then again after opening it today, it was not working, When launching the instance this is the error i am getting even after repetitive trails : launch failed: The following errors occurred: primary: timed out waiting for response

Things which I have tried doing are : 1) uninstalled and reinstalled multipass some 3-4 times using brew as well as package installer. 2) checked with firewall settings 3) tallied the system settings with others whereas all the other peers are able to work in multipass smoothly. 4) did some network troubleshooting which some of the links said.

Please can you suggest a proper fixing to this. Thankyou in advance!

sharder996 commented 1 month ago

Hi @ananyaaaaww, Would you be able to provide the logs from your machine? Specifically, around executing multipass launch or multipass start.

georgeliao commented 1 month ago

@quzhixue-Kimi I think your issue might be something different. Hence, I moved it to a separate issue.

shivanand-patil commented 1 month ago

Hi @ananyaaaaww, Would you be able to provide the logs from your machine? Specifically, around executing multipass launch or multipass start.

posting on behalf @ananyaaaaww

❯ multipass launch
launch failed: The following errors occurred:
principal-elephant: timed out waiting for response

logs

[2024-07-26T20:31:34.988] [debug] [qemu-system-aarch64] [79530] started: qemu-system-aarch64 --version
[2024-07-26T20:31:35.011] [debug] [qemu-img] [79531] started: qemu-img info /var/root/Library/Caches/multipassd/qemu/vault/images/noble-20240725/ubuntu-24.04-server-cloudimg-arm64.img
[2024-07-26T20:31:35.027] [debug] [qemu-img] [79532] started: qemu-img resize /var/root/Library/Application Support/multipassd/qemu/vault/instances/principal-elephant/ubuntu-24.04-server-cloudimg-arm64.img 5368709120
[2024-07-26T20:31:35.039] [debug] [qemu-img] [79541] started: qemu-img snapshot -l /var/root/Library/Application Support/multipassd/qemu/vault/instances/principal-elephant/ubuntu-24.04-server-cloudimg-arm64.img
[2024-07-26T20:31:35.048] [debug] [qemu-img] [79542] started: qemu-img amend -o compat=1.1 /var/root/Library/Application Support/multipassd/qemu/vault/instances/principal-elephant/ubuntu-24.04-server-cloudimg-arm64.img
[2024-07-26T20:31:35.060] [debug] [principal-elephant] process working dir ''
[2024-07-26T20:31:35.060] [info] [principal-elephant] process program 'qemu-system-aarch64'
[2024-07-26T20:31:35.060] [info] [principal-elephant] 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:fb:f4:4d, -device, virtio-scsi-pci,id=scsi0, -drive, file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/principal-elephant/ubuntu-24.04-server-cloudimg-arm64.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/root/Library/Application Support/multipassd/qemu/vault/instances/principal-elephant/cloud-init-config.iso'
[2024-07-26T20:31:35.062] [debug] [qemu-system-aarch64] [79543] started: qemu-system-aarch64 -machine virt,gic-version=3 -nographic -dump-vmstate /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/multipassd.QmNjnJ
[2024-07-26T20:31:35.103] [info] [principal-elephant] process state changed to Starting
[2024-07-26T20:31:35.104] [info] [principal-elephant] process state changed to Running
[2024-07-26T20:31:35.104] [debug] [qemu-system-aarch64] [79544] 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:fb:f4:4d -device virtio-scsi-pci,id=scsi0 -drive file=/var/root/Library/Application Support/multipassd/qemu/vault/instances/principal-elephant/ubuntu-24.04-server-cloudimg-arm64.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/root/Library/Application Support/multipassd/qemu/vault/instances/principal-elephant/cloud-init-config.iso
[2024-07-26T20:31:35.104] [info] [principal-elephant] process started
[2024-07-26T20:31:35.105] [debug] [principal-elephant] Waiting for SSH to be up
[2024-07-26T20:31:35.128] [debug] [principal-elephant] QMP: {"QMP": {"version": {"qemu": {"micro": 1, "minor": 2, "major": 8}, "package": ""}, "capabilities": ["oob"]}}

[2024-07-26T20:31:35.157] [debug] [principal-elephant] QMP: {"return": {}}

[2024-07-26T20:31:45.508] [debug] [principal-elephant] QMP: {"timestamp": {"seconds": 1722006105, "microseconds": 508502}, "event": "NIC_RX_FILTER_CHANGED", "data": {"path": "/machine/unattached/device[6]/virtio-backend"}}

[2024-07-26T20:32:27.107] [debug] [principal-elephant] QMP: {"timestamp": {"seconds": 1722006147, "microseconds": 107527}, "event": "RTC_CHANGE", "data": {"offset": 0, "qom-path": "/machine/unattached/device[4]"}}

[2024-07-26T20:37:46.991] [debug] [elevating-escolar] QMP: {"timestamp": {"seconds": 1722006466, "microseconds": 991463}, "event": "RTC_CHANGE", "data": {"offset": 1, "qom-path": "/machine/unattached/device[4]"}}

[2024-07-26T20:38:16.988] [debug] [infallible-planthopper] QMP: {"timestamp": {"seconds": 1722006496, "microseconds": 983746}, "event": "RTC_CHANGE", "data": {"offset": 1, "qom-path": "/machine/unattached/device[4]"}}

[2024-07-26T20:38:45.981] [debug] [node-02] QMP: {"timestamp": {"seconds": 1722006525, "microseconds": 981438}, "event": "RTC_CHANGE", "data": {"offset": 1, "qom-path": "/machine/unattached/device[4]"}}
❯ multipass ls
Name                     State             IPv4             Image
elevating-escolar        Unknown           --               Ubuntu 22.04 LTS
infallible-planthopper   Unknown           --               Ubuntu 24.04 LTS
node-02                  Unknown           --               Ubuntu 22.04 LTS
principal-elephant       Unknown           --               Ubuntu 24.04 LTS

System details:

Mac M3 Pro Sonoma 14.5

sharder996 commented 1 month ago

Can you confirm that your firewall is not enabled. It appears that Multipass is unable to connect with the instance.