-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 VM not starting on Arm mac #21096
Comments
I have a feeling this is a QEMU issue, but I'm not 100% sure here |
@userbradley you can find workarounds discussed in another issue #21088 (comment) It is not a Podman issue per se, but probably it is worth to keep one of these issues open for others to have references to the workaround. |
I have the same issue, and also tried some methods discussed in #21088 (comment), none of them works, but i found a clue in qemu issue 1990, which point to a edk2 firmware: edk2-aarch64-code.fd.bz2, I download it extract the file edk2-aarch64-code.fd ,and then replace the one in /opt/homebrew/share/qemu, then remove the old podman machine, and run the "podman machine init" and "podman machine start", and the vm started as expected. |
TLDR: "i want something i can just run to patch it"
|
Could this be QEMU's DNS not working on macOS? |
Anyway, I am running in the same issue here, can you print QEMU debug information? |
that's how you Temp fix it until EDk2 is fixed currently QEMU is not yet depending on the FIXED version of EDK2 |
This fixed the issue on M3 MacBook Pro... Thanks |
Having the same problem, including asynchronous exception in qemu when starting a machine with --log-level DEBUG.
|
Nice hack. Tested and working on M1 with success after reinstalling |
The Nice Hack didn't work for me. |
Could it be that you are using homebrew and that your homebrew was brought to your Apple Silicon mac from an older Intel machine via backup restore? Podman will download x86_64, when you are running app compiled for the Intel platform, so, it could be that you have launched Intel app of Podman via Rosetta2. |
i think it's because you need to clear the local cache from qemu which i might have forgot in the script above else it's "downloading but not really" the qcow image from your already corrupted cache and you're cycling back again @carlca |
Could you tell me how to "clear the qemu cache". I did search but didn't find anything that worked... |
iirc i found the file name on disk with the exact name in your error that it's extracting in a subfolder named "cache" so i deleted it the error you have:
i would try to find that file on disk. i'm not on a computer anymore but i found it by looking into qemu folders probably saw someone in all the link above mentioning it but i'm sure it's in a cache folder with qcow2 extension |
Thanks for the reply tebeco. I use |
1 similar comment
Thanks for the reply tebeco. I use |
@carlca Could you provide output of Here is a sample from my machine, which indicates, that it's a homebrew installation for arm64 arch
|
Interesting! I'm not aware of been given a choice of architecture when I first installed
|
@carlca It looks like official Podman package. Please try reinstalling latest for your actual arch from https://github.com/containers/podman/releases/. For macos there are 2 packages, one for amd64 and one for arm64 and they have some settings builtin during compile time w/o future checks in runtime. So, it is important to install the right one. |
Thanks arixmkii - it's all sorted and working now 😃 |
Thank you, this solution helped on m1pro |
for anyone reading it I think it got fixed BTW brew update
brew upgrade
podman machine stop
podman machine rm
podman machine init
podman machine start Looking carefully at the date we can see the qcow2 image is now dated 28/01, the previous one I had was around 04/01 (yes my screenshot should otherwise because i didn't screened the first time) |
podman 5.0 now uses the apple hypervisor and no longer support qemu |
Issue Description
I was cleaning up and did a
podman machine rm
and then created a new machine, and now it wont start. It hangs with the belowWhen running
podman machine start
I get the belowAnd running with debug, the quemu VM hangs:
![image](https://private-user-images.githubusercontent.com/41597815/293100965-664d8ef0-aadd-4636-987b-805dc4f0c87c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5NTUwMDMsIm5iZiI6MTcyMTk1NDcwMywicGF0aCI6Ii80MTU5NzgxNS8yOTMxMDA5NjUtNjY0ZDhlZjAtYWFkZC00NjM2LTk4N2ItODA1ZGM0ZjBjODdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI2VDAwNDUwM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdjNzQ2YjAzODdlNjE1NWQxMjBhNGQ2NWJkYjYzOWU5YWU2N2IyYzg3YTk0ZTI1MjQzOTFhYzA4YmViYzhhMjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.b6uJNZgXzQcf4TtIoTHvfHs1zF8Q3VIHAu52JwMbau8)
I've tried the below
#10824 (comment)
But this has not worked.
Steps to reproduce the issue
Delete Podman VM on ARM mac
Create new one
Describe the results you received
Podman machine hangs with image posted above
Describe the results you expected
Podman machine runs
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
The text was updated successfully, but these errors were encountered: