-
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 start
stuck when running the second time using applehv on macos silicon M2
#21160
Comments
I can confirm that this is happening to me as well on an M1 Max.
|
This is beling looked into, we are thinking there is an issue in fcos. |
@baude PTAL |
I added some additional information above regarding the grub menu entries. During the first successful run it contains one entry, where as for the second run it contains two entries. |
Brent and I were digging into this and what we were concluding is that the ultimate cause is filesystem corruption - which doesn't always happen immediately, but is pretty reliably triggered by the |
Yeah, from the kernel logs:
It's notable that the entire content is zeroed here. But, this needs more debugging. |
This fixes it for me crc-org/vfkit#76 |
Thanks a lot. |
This depends on crc-org/vfkit#78 and is an alternative to crc-org/vfkit#76 that I like better for fixing containers#21160 It looks like at least UTM switched to NVMe for Linux guests by default for example. [NO NEW TESTS NEEDED] Signed-off-by: Colin Walters <[email protected]>
@johannesmarx the patch has been back ported to |
@anjannath Thanks a lot, I'll do and post an update here |
You also might need the fix that is part of: containers/gvisor-tap-vsock#309 as that resolves a race condition with the user-mode network stack. |
@anjannath I did @gbraad how would I get this fix for my setup? |
@johannesmarx did you delete your existing podman machine and start a new one, since the previous one was already stuck you'd need to start anew, remove the existing with |
@anjannath Yes, I did stop, remove and re-created the machine as you described. |
Can you check the version of vfkit that you have installed? This must be 0.5.0_2 or 0.5.1 |
Hi @cfergeau I upgraded
Now my initial use-case works.
What about your mentioning about gvisor-tap-vsock - would I also require it to fix the issue above? How would I install it? Thanks a lot |
Grab https://github.com/containers/gvisor-tap-vsock/releases/download/v0.7.2/gvproxy-darwin and replace the binary at |
@cfergeau thanks a lot - when will |
Next release of Podman will be 5.0 some time in February. |
I upgraded to podman desktop 1.7.0 and podman 4.9.0 and it now seems to work:
I just created a machine with applehv, stopped it and restarted it. Was I just lucky ??? |
@fabricepipart1a for me it's still not 100% working. It stopped working for me after rebooting. |
Might be a stupid question but ... did you edit the containers.conf file (which I did) or did you set the env var to switch to applehv? |
Hi @fabricepipart1a, as described in step 4 to reproduce the issue, I ended up using |
Then, there must be a difference between our setups.
|
I'm on the latest versions available via brew for podman & vfkit (not using Podman Desktop like you did as far as I see):
I tried it with the same machine settings you used (besides rootful, I used rootless) but it stopped working after a reboot. So for me, nothing changed, waiting for the podman 5.0.0 release. |
I assume this works with 5.0 |
Yes, it's working now 👍 |
Issue Description
I'm using podman with the applehv provider (due to issues using qemu and following suggestions of #20776 ) on an M2 mac. Initializing the machine works correctly and starting that initial machine also works including executing the
quay.io/podman/hello
container.When I stop the machine and start it again, the VM gets stuck and cannot be used anymore. Any consecutive try to start it fails/gets stuck
Thanks a lot. Happy to provide any additional information you might need.
Steps to reproduce the issue
Steps to reproduce the issue
brew tap cfergeau/crc
brew install vfkit
brew install podman
export CONTAINERS_MACHINE_PROVIDER=applehv
(or add the entryprovider="applehv"
in the[machine]
section of~/.config/containers/containers.conf
which does not make any difference)podman machine init
podman machine start
podman run quay.io/podman/hello
works ✅ using VM TYPE = applehvpodman machine stop
podman machine start
gets stuck ❌Describe the results you received
I'm only able to start and stop podman machine one single time.
Describe the results you expected
I should be able to start and stop podman machine (as often as I like).
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
none
Additional information
What I additional noticed and manage to capture is that on the first startup, grub contains one entry and on the second run it contains to entries (not sure though, if this is relevant)
First run of
podman machine start
✅Grub config for the entry
Second run of
podman machine start
❌Grub config for the entry
ostree:0
Grub config for the entry
ostree:1
The text was updated successfully, but these errors were encountered: