-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman machine init
intermittently fails on M1 Mac with exit status 1
#13900
Comments
Okay, I had some time to dig into this further this morning. I added some printf's throughout the init command and zero'ed in on the SSH key generation as the command that was failing. Specifically here. I looked at the command that gets invoked:
I can't see anything odd with that command and that command runs fine when run directly in the shell. The other thing I noticed is that in the |
Is there any documentation on the "ignition file"? It looks like if that is provided the key generation is skipped. That might provide me a means to work around this issue until it gets tracked down. |
@baude is there documentation on the ignition file itself? I saw the cli arg to pass it in but I can't find any documentation on the actual content of that file. |
no there is not ... we dont envision people messing with an individual ignition file. But we added support for providing one. |
A friendly reminder that this issue had no activity for 30 days. |
For me this happened after reinstalling podman. The solution was to run:
Likely the bug was that |
@lajoie @baude @ashley-cui @vrothberg still an issue? |
I haven't seen it on my M2. @benoitf have you ? |
no, I don't as well. I think issues are mostly on Windows for 'init' command where WSL is not fully/correctly setup so machine is not imported. But on macOS I don't face issues around the |
Thanks! Since the issue is very old and we cannot reproduce anymore, I will close it. |
Did you uninstall and reinstall podman when trying to reproduce? |
@vrothberg - I just had the same issue. Recently I've moved from my Intel-based MacBook to the new one (with M1), and I rsync'ed my The solution from this comment helps, but I think podman should check it and ask - cheers, |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am working on a script to set up various bits of tooling including podman. When the script runs
podman machine init
fails withexit status 1
about 95% of the time but will occasionally succeed. When I run the same command in the same shell that the script ran, it succeeds almost every time but will occasionally fail withexit status 1
. Running the command with debug logging provides no additional output.Thinking there might be something odd with the environment in the subshell that the script commands were running in I capture the environment before run
podman machine init
and compared it to the environment of the shell that ran the script. They were identical other than expected differences in PWD, PS1, and SHLVL.Podman is installed via homebrew but coreutils is not (i.e., it's not issues #12379 and #12329).
Steps to reproduce the issue:
brew install podman
podman machine init
Describe the results you received:
Received exit status 1 after
Extracting compressed file
but prior toImage resized.
being displayed.Describe the results you expected:
For the container engine VM to initialize properly
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:no output as container engine VM won't init
Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
M1 Pro Macbook running MacOS 12.3.1
Here is the related snippet of the tooling setup script
The text was updated successfully, but these errors were encountered: