-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 start
stuck "Waiting for VM" indefinitely with qemu synchronous exception MacOS M3
#20776
Comments
podman machine start
stuck "Waiting for VM" indefinitely with qemu synchronous exceptionpodman machine start
stuck "Waiting for VM" indefinitely with qemu synchronous exception MacOS M3
I had this issue; updating qemu from 8.1.3_1 to 8.1.3_2 via |
Updating to qemu 8.1.3_2 resulted in a different exception and hang:
|
Reading through some other issues I've found this workaround: podman 4.7.2 |
Unfortunately no such luck on my end. |
podman 4.8.8 |
I didn't have any luck doing this initially either; then I absolutely nuked everything:
Re-ran it all from scratch today, starting with podman only and then running podman desktop afterwards:
podman 4.8.0 I have a max, you have a pro, but one other person with a pro reported success so double-checking everything might be worth a shot? I tried similar steps before but skipped the |
@jaydorsey I have the same specs and followed your instructions. I am still unable to get the VM to run: EDIT: |
This worked for me as well!
|
One thing of maybe note: It worked great yesterday. I let my machine go to sleep, logged back on today, and the whole thing was locked up again list it was. Podman said it wasn't running, but it actually was, I can't delete images or machines, everything was essentially responsive. I tried force-quitting everything and restarting with no luck I need to try a restart/reboot of my computer later to see if that fixes it but it didn't seem to work after I let my computer sleep (or perhaps some other unrelated reason, like a crash) |
And now I'm seeming to have problems with volumes and my VM is somehow back in a "Currently starting" state. Can't stop, or remove it. 👎 |
I have tried all steps as above, but still stuck on Waiting for VM ... if i log out the errors, thats what i get back: podman --log-level=debug machine start |
Also stuck on Waiting for VM. Has anyone found a work-around without using podman-desktop? |
M3 Pro I have intermittently been able to get it to work between sessions of removing everything, re-installing, deleting and recreating machines. Once it decides to work, it is fine until the mac goes to sleep while the QEMU machine is running. On recovery from sleep, the podman machine shows as running, but it's not accessible. From then on the issues remains until some series of uninstalling and reinstalling, deleting and recreating machines finally works. I have not yet figured it out. The specific problem seems to be with EDIT: Steps that seem to make it work again:
|
I have tried all the methods, but all do not work. |
Is this not a result of this issue tracked on the qemu project, which is the result of a bug even further upstream? |
I agree with @herblet. Also see the fix employed by Lima: lima-vm/lima#2061 What worked for me:
|
These links don't work anymore. I am on M3 Max. Changing memory on init didn't work. Uninstalling everything, and installing podman-desktop worked.
Start podman-desktop, init and start podman machine. I disabled "Machine with root privileges:", but it probably doesn't matter. |
This works for me. |
Was having the same issue, but this worked for me. Not sure I like having to run an installer from within a cask, since this installation is controlled outside of brew |
I have the same issue on my M1 and these instructions does not work for me. =( |
I've been having this issue on/off. What got it working consistently for me is very similar to @FullofQuarks If you already have
Instead of installing |
You could try this with the apple hypervisor, which we plan to move with to see if it works better. Qemu has proven to be not as stable as we like. If you have a recent Podman, I believe you can do.
|
@rhatdan Just tried your suggestion and now I'm getting this error:
Not sure what this means 😓 |
installed vfkit via this doc: https://github.com/crc-org/vfkit |
Sadly, this hasn't worked for me (Apple M2 Pro). I get "Error: Command execution failed with exit code 125" |
I'm experiencing this on M1 pro as well, a downgrade of qemu to 8.1.3 helped, so I'll stick to it for a time being. |
Same for me, just had the same problem on a M1 PRO after updating to podman 4.9.0. After several uninstalls, restarts and reinstalls I finally got it to work and the podman machine to start up correctly. |
Hi @lestex Can you share how you downgraded qemu back to 8.1.3? I tried running this on my macOS but didn't work:
:( |
For what it's worth, since this is an issue related to the qemu build available in brew, the discussion is better suited for this homebrew issue: Homebrew/homebrew-core#159971 |
Removing everything, and installing dmg podman-desktop worked for me.
Now you can go back to developing |
@macports users: Stay with QEMU v8.0.5; do not update to v8.2.0. Cross reference: https://trac.macports.org/ticket/67731#comment:25 |
Hi @benz0li how are you? Can you share the brew install instructions for this QEMU specific version v8.0.5? I got mine upgraded to latest 8.2.0 and now it is no longer working due this "Waiting for VM" issue. The command below will not work, correct?
|
@andremayer I am using MacPorts and not Homebrew. |
Along with the comment here: #20776 (comment) this is what I've done and worked on my side for M3. If you are on M1/M2, the recommended path is to update to Podman 4.9. 1 - Remove everything podman and qemu to get a clean environment:
2 - Reinstall using
3 - Install patched EDK2
Now you should be able to do You can then reinstall Podman Desktop (either brew or Podman Desktop website) The situation should get better with the upcoming release of QEMU 8.2.1 Note: If you are on M1/M2, you should be fine with the latest release of Podman 4.9. If not, please raise it! |
I am using a M1 with Podman 4.9 installed via brew. I am still seeing the issue. I have not tried to patch qemu like suggested as above. I did make sure to remove my old vm and re-ran |
@slemeur @fuzzball81 Please check HFS+/APFS compression of |
@benz0li I am using homebrew but checked as you have recommended and got the following |
Like here #21088 (comment) |
I had the same issue on Mac M1 Pro. "Waiting for VM". Got it working by reverting to qemu 8.1.3. It started using latest podman 4.9.0.
Edit: |
I can confirm using the 8.1.3 version of qemu does allow the VM to start on a M1 on macOS 14.3 with podman 4.9. |
QEMU 8.2.1 has been released and is available in brew. Hopefully this fixes this issue. |
Can confirm that the update to QEMU 8.2.1 fixed the issue!! |
Hey All, Just did the following to make this work without downgrading (Thanks @cfergeau and @robahtou for the mention's): Remove the Machine:
Upgrade to the latest QEMU:
Re-Init your Podman Machine:
Start your Podman Machine:
This worked for me on M1, M2 and M3! 🥳 |
just want to update my issue, after upgrading QEMU to 8.2.1, the problem seems go away, tried using now i can pull and operate as usual
|
I don't know what you saw exactly, but while it's true applehv will create a 100GB disk image, it is a sparse image, and it won't use 100GB on disk unless it's filled.
|
@cfergeau so the system prompt me with warning that i had low free space after initiating |
Turns out podman did not create sparse files when extracting its disk images, but that's been solved in the |
I followed @benoitschipper's guide, fixed the problem. One more step I had to do is that I uninstalled homebrew and then install it back. The reason is that I migrated my Mac system from previous Intel cpu Mac Book Pro to a new M3 Mac Book Pro. When I ran the |
podman 5.0 no longer supports qemu on macos and uses the apple hypervisor by default. |
Issue Description
With a fresh install via homebrew, I cannot start a machine and it hangs indefinitely at
Waiting for VM
. Running with debug shows that qemu hits aSynchronous Exeception at 0x00000000BC308000
.Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
VM fails to start.
Describe the results you expected
VM starts.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
The text was updated successfully, but these errors were encountered: