How does multipass connect to instances? #3660
-
I have been using Multipass for a couple of years and it recently stopped working. On MacOS Sonoma 14.6.1 (M1) with Multipass 1.14.0 and qemu, I am having the same issues as this and this. I have tried debugging steps such as following the network troubleshooting guide, checking my firewall, and downgrading to 1.13.1. Rather than opening another issue on this problem, I wanted to ask for clarification that the troubleshooting guide does not explicitly provide so I can further understand this, as this could be the fault of my system. Multipass launch times out for me. When you run a command such as multipass launch <instance>, and it waits for an SSH connection, under what interface and ip does it know to check for a connection on? Can this be configured? Thanks for the clarification (in advance). I would be happy to further debug and discuss this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @zenarcher007, I am sorry that you are facing this problem. Multipass relies on the instance having an IP on the default interface, to connect to through SSH. Launches/starts won't complete without it. There are 3 main possible reasons for that:
If we go a little beyond, there are similar situations where:
People experience all these situations, with different causes, and report timeouts + state unknown in very different scenarios, so we are trying to improve the troubleshoot documentation for this and hope to make it available soon. There are a few things that you can do to figure out which is your case. Given your observations, I am excluding firewall-related issues and others.
If you're in situation 2: as you've found in the QEMU command line, this all rests on top of Apple's If you're in situation 1: you can try to run the QEMU command line that Multipass logs but without If you are in situation 3: one thing that may help is to delete |
Beta Was this translation helpful? Give feedback.
Hi @zenarcher007, it is a DHCP issue caused by the macOS firewall. Surprising as it is, Apple's firewall blocks its own bootp process from giving out DHCP addresses. I excluded that from my reply because you said you had checked the firewall and I thought you were aware of this problem.
See #2387 for info on this topic. You can find a couple of commands at the top that usually fix it for most people, though they need you to be admin on your machine and you may need to repeat them after reboots.