-
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
QEMU Error Initializing Podman on M1 Mac - 'qemu exited unexpectedly with exit code -1' #16262
Comments
What MacOS and qemu versions are you using? |
This looks like a Rosettta issue. Please make sure you are not using Rosetta with your Homebrew install. |
MacOS: macOS Monterey 12.5 with an M1 Max chip. Near as I can tell I do use Rosetta in my Homebrew install. I'm not sure exactly which website I used to do that setup when I first got this computer, but it's akin to the instructions found here. I installed podman using my duplicate |
Using Rosetta with Podman will not work on M1. |
Ah, sorry I misread your comment. I will look into re-installing Homebrew, though my initial attempts are not going well. I believe I've managed to get |
Is there a command that tells me if my homebrew is using Rosetta? I found an article that says upgrading brew should do it. So I did:
and finally:
In my humble opinion this issue should be reopened. The instructions still do not work for M1 silicon. If there is a workaround, it should be clearly noted on the installation page. EDIT: I followed the instructions in this youtube video to uninstall Rosetta. Also had to uninstall/reinstall Homebrew and all the things I had already installed with brew. Then I tried the instructions again and podman machine started up successfully. I'm so happy. I've been trying to do that for two years. |
I didn't uninstall Rosetta, but I did have to uninstall and reinstall brew :/ # make backup list of brew apps
brew bundle dump
# uninstall brew
PATH=/usr/local/bin:$PATH arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
# ensure arm terminal
env /usr/bin/arch -arm64 /bin/zsh --login
# reinstall brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# install previous packages from bundle dump
brew bundle install --file=/path/to/Brewfile |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I am trying to initialize a podman machine/container, but it fails at
podman machine start
. I have a 2021 Mac Pro with an M1 Max chip.Steps to reproduce the issue:
Install podman:
brew install podman
Initialize with
podman machine init
Which has the following output:
podman machine start
Describe the results you received:
Running the above creates the following error:
Describe the results you expected:
The podman machine to successfully start.
Additional information you deem important (e.g. issue happens only occasionally):
I ran through the various solutions detailed in issue #14303 to no avail. None of those users indicated this specific error, and can't find an instance of anyone encountering this error aside from this stack overflow post.
I'm not seeing anybody post this error on the qemu issue page, and thought I would start with making an issue here.
Output of
podman version
:I followed up with
podman --version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info 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.):
The text was updated successfully, but these errors were encountered: