-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS M1 Limactl start hangs on Waiting for essential requirement 3 of 5: sshfs binary to be installed (Could not connect to 127.0.0.1:48100 (127.0.0.1). - connect (111: Connection refused)
)
#503
Comments
Please provide :
|
Yes Akihiro-san, here they are. Happy New Year btw, it looks like the download of sshfs has failed, when I do a |
Looks like a proxy issue |
Could not connect to 127.0.0.1:48100 (127.0.0.1). - connect (111: Connection refused)
)
Thanks much @AkihiroSuda I did go into the lima default and there does seem to be a problem with the networking. I can't find the documentation on how this is supposed to be set up by default, but getting into the default container with the limactl command and I tried:
Looking at the network with
I can see it has a network at 192.168.5.15
Which all seems correct given https://github.com/lima-vm/lima/blob/master/docs/network.md |
It certainly looks like some proxy interference, but Lima is supposed to rewrite all proxy reference to @richtong Can you check if any proxy environment variables are set? $ env | grep -i proxy | sort
$ cat /etc/environment Also, are you aware of a proxy running on your host on port |
Lima adds all of your public keys to the authorized keys file inside the VM, so you can connect to it with any of them. This is typically not needed, and you can disable this by setting |
Got it @jandubois ok, your point about a proxy on 48100 was well taken and make me think that I should try a reboot, which worked, it started successfully. May need to put this into the README.md somewhere that after an installation a reboot is needed. I'm not sure why. There was nothing on port there judging from lsof in either guest or in MacOS before the reboot, but env definitely had proxy set. However on reboot the two commands came out very differently, so in the lima guest there is no proxy set so
|
Can you share how they looked before your reboot? Assuming you did have proxy settings pointing to 127.0.0.1, I still don't understand why they wouldn't get translated. |
I just took another look at the code, and the replacement logic is only applied to values from the host environment, but not from to the system proxy settings (nor the I'll fix the code to always apply the translation, but I would still really like to understand where these proxy settings came from. |
For me, I think that the new Apple Private Relay feature was causing problems as I was also getting a hang-up and proxy issues that were resolved when I turned private relay off on my computer. FWIW. |
yes they were pointed at 127.0.0.1:48100 |
Ah good point, I didn't check the private relay stuff. |
@m-housh Were you using both private relay and a proxy at the same time? I've enabled just "private proxy", and everything continues to work fine for me. |
@richtong In that case I assume this setting came from your system proxy settings, which Lima didn't properly translate. This should be fixed by #508, so I'm going to close this issue. @m-housh If you have a reproducible failure with "private relay" please open a separate issue for that, as it seems independent of this one. |
OK here is what I see, it has to do with if NordVPN is running when
So the last time it worked for me, I didn't notice this as I usually have NordVPN running in the background at startup. |
@richtong I cannot reproduce this. Can you explain exactly what you do to run NordVPN? I've installed the latest NordVPN app from the App store, ran it, and did a "Quick Connect". I can still create a new default VM with Lima while the VPN is running... |
Going to re-open the issue until we understand the failure mode with NordVPN. |
Yes I'm not quite sure on NordVPN or why it's not reproducible. When I look at the nord installation i don't see anything obvious but I have seen that it does cause certain other things to fail. If you let me know what I should look for I will. |
I’m getting the same problem, but I don’t have Private Relay or any VPN or proxy. Also an M1 Mac. I had installed lima early this year and played with it a bit, but then didn’t use it until yesterday. Today I decided to I’m on macOS Ventura 13.0; any known compatibility problems? |
@snej
|
@AkihiroSuda I didn’t see any errors in the I don’t know how to look at files in the guest without starting it, and I can’t start it. |
You can just run |
Interestingly, the
|
Maybe this has something to do with it? Ubuntu 21.10 (Impish Indri) reaches End of Life on July 14 2022
OK, by deleting the instance and starting a new one I’ve picked up the current template, which uses release 22.10. It’s still downloading, but I assume it won’t have this issue. [Update: it successfully started. Whew!] Not sure what the best solution for this is. Scan the log for this error and report it to the user? Preflight ubuntu-ports to make sure the distro is still supported? |
I have MacOS Monterey on an M1 Macbook, but I think the problem has something to do with my .ssh file, I get this warning, about a gpg key in .ssh not being in ssh format (why is Lima going through my .ssh I'm confused about that), but here is the output. I have confirmed I have 4.6.1 of the slirp and it get's past requirement 1 anyway, but hangs on the sshfs binary to be installed.
I'm a noob so confused about what magic lima is doing to get the first image bootstrapped.
? Creating an instance "default" Proceed with the default configuration
INFO[0003] Attempting to download the image from "~/Downloads/impish-server-cloudimg-arm64.img" digest=
INFO[0003] Attempting to download the image from "https://cloud-images.ubuntu.com/impish/current/impish-server-cloudimg-arm64.img" digest=
INFO[0003] Using cache "/Users/rich/Library/Caches/lima/download/by-url-sha256/a9f81252e41821dac2357ea4c9b5a5a1c71526b41bc4473d6365fa3594b86dd9/data"
INFO[0003] Attempting to download the nerdctl archive from "https://github.com/containerd/nerdctl/releases/download/v0.15.0/nerdctl-full-0.15.0-linux-arm64.tar.gz" digest="sha256:dd8639ce868bab394467576f55375c4b40a8288badb579d2e30c3487da6004ea"
INFO[0003] Using cache "/Users/rich/Library/Caches/lima/download/by-url-sha256/e1229ceee50fc4392d95361c97a8746e6f6fbd872da89c050af58054d5730c56/data"
WARN[0003] [hostagent] public key "/Users/rich/.ssh/[email protected]" doesn't seem to be in ssh format
INFO[0004] [hostagent] Starting QEMU (hint: to watch the boot progress, see "/Users/rich/.lima/default/serial.log")
INFO[0004] SSH Local Port: 60022
INFO[0004] [hostagent] Waiting for the essential requirement 1 of 5: "ssh"
INFO[0049] [hostagent] The essential requirement 1 of 5 is satisfied
INFO[0049] [hostagent] Waiting for the essential requirement 2 of 5: "user session is ready for ssh"
INFO[0049] [hostagent] The essential requirement 2 of 5 is satisfied
INFO[0049] [hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed"
INFO[0090] [hostagent] Waiting for the essential requirement 3 of 5: "sshfs binary to be installed"
The text was updated successfully, but these errors were encountered: