-
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
fails on M1 Macbook Air with exit status 1
#12379
Comments
@ashley-cui @baude PTAL |
It's working for me, but I'm on Darwin Kernel Version 20.6.0. Let me update the the mac and see if it still works |
The failure is with |
Ah sorry forgot to copy all the lines from my terminal, but init works as well for me. Let me try installing coreutils and seeing if that breaks anything... Update: Still unable to reproduce:
@kopiczko, can you do a |
I think your problem might be related to having rosetta installed? I believe I saw this once before where brew got confused or something confused brew about what architecture it was on. |
@kopiczko can you verify that the path that is being reported in the error actually exists? |
@baude I run it, if it helps. I'm using nix, not brew though, but i reproduced every step and i have 1:1 problem.
I'm sorry, there was something wrong with data i sent before.
|
@baude apologies, I deleted my comment and later noticed your reply; you're basically correct. My issue was that I had very recently migrated from an Intel Mac and hadn't set up the separate aarch64 Homebrew install - so I ended up with x86_64 copies of qemu and podman. Everything worked once I corrected that, so my issue wasn't the one described here. |
Thanks @Luap99 I think it's #12329 as I have Answering other questions just in case: @ashley-cui
@baude just in case:
|
Not sure if I'm seeing the same or similar problem. I also had
|
No it probably won't as I think nix installs coreutils as a dependency. |
Removing |
Confirmed. Everything works with |
It'd be nice if podman supported GNU Coreutils on mac, or at least documented that it didn't/gave a better error. That said, I imagine this doesn't need to be run often, so the workaround is effective for now. |
@DesantBucie did you manage to get a working Nix setup for this? I get the same error as you had above only I am running the ´podman machine start´ command |
@momrak Not at all. I also tried to download from release, but it's the same error.
|
@momrak Steps to reproduce
Not really beautiful but it works :v. Also you probably need to install |
m1's require a patched version of qemu in brew for a little while. if you have a different version of qemu installed, it is likely the issue |
Thank you both @baude and @DesantBucie @DesantBucie nice! So you only used the default qemu from nix, not a patched one from brew or similar? Do you know if the patch is only present in the brew version of this @baude ? In that case it could have been interesting to try and make the same patch available for m1 macs using nix |
I used qemu 6.1.0, gvproxy 0.3 and podman 3.4.4 all from unstable channel. |
I got it working now as well, but with a slightly different approach
Also changed the actual machines qemu config so that the file it looks for uses a abs path
So this is also not a very good solution, hehe. @baude do you know if there is a way to set some location for qemu to look for the edk2-file in similar to the helper_binaries_dir? Then maybe one could do something in the nix derivation in order to fix it. Not sure if this is possible or a good idea though |
There is not a way to do this currently in podman. |
Why is this issue closed when it isn't fixed? I'm running M1 Max, installed podman as usual,
|
@michaelkrasa This is probably due to running qemu x86-64 instead of aarch64. I had this issue when running qemu from pkgsrc. |
I was having the same problem. My guess is that since my podman machine(along with the entire brew apps stack) is migrated from old Intel MacBook, so the image was Intel based, on which the Qemu bin was located in
Everything works like a charm. |
It just never works, no matter what I try :( jwildeboer@JHWMBA ~ % brew remove podman-desktop To restart podman after an upgrade: |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
brew install podman && podman machine init
on M1 Macbook AirDescribe the results you received:
I don't see any flags increasing verbosity for the
machine init
command.Subsequent call results in:
Trying to start the machine:
Trying to SSH:
When deleting:
Describe the results you expected:
Having running usable podman VM on Apple Silicon.
Additional information you deem important (e.g. issue happens only occasionally):
N/A
Output of
podman version
:podman version
errors because it can't connect to the vm:Output of
podman info --debug
: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/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: