-
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 machine start
fails after reboot (recurrence of #10824 but with the applehv
provider.)
#21288
Comments
As with #10824, I can confirm that simply shimming podman with a pre-check that creates |
Ahh, there's no attempt to create the podman temporary directory if it's missing. The qemu provider does it in Edit: Revised to build against HEAD not stable. Also noticed --- machine.go.orig 2024-01-17 22:17:52
+++ machine.go 2024-01-17 22:19:07
@@ -572,6 +572,11 @@
return machine.ErrVMAlreadyRunning
}
+ _, err = m.getRuntimeDir()
+ if err != nil {
+ return err
+ }
+
// TODO handle returns from startHostNetworking
forwardSock, forwardState, err := m.startHostNetworking()
if err != nil { |
Care to open a PR to fix? |
Hi @rhatdan , I tested the fix with
So I'm now on commit 2ba3605 of the podman main branch:
Stopping the machine, restarting the laptop and starting up the machine worked a few times, but today I got the same error again:
My vfkit is this:
Maybe this bug should be reopened? |
OK the error message is the same as in #21442 , but as described there, my |
Issue Description
It appears that the previous issue (#10824) which seemed to be specific to the qemu machine provider is now reoccurring with the
applehv
machine provider. Once youpodman machine init
andpodman machine start
, if you then reboot the host,$TMPDIR
is purged, and the paths in.config/containers/podman/machine/applehv/podman-machine-default.json
referring to thepodman
subdirectory of$TMPDIR
become invalid. As requested in the previous ticket, I've triedpodman machine stop
before rebooting. The result is the same.Steps to reproduce the issue
Steps to reproduce the issue
applehv
provider via.config/containers/containers.conf
.podman machine init --now
(orinit
+start
.)podman machine stop
(optionally.)podman machine start
.Describe the results you received
podman --log-level=debug machine start
returns a failure to start gvproxy due to missing path. Output below:Describe the results you expected
podman machine start
returns successfully.podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Host is macOS Sonoma (14.3).
Host architecture is aarch64/arm64.
The variant is the Apple M3 Pro which necessitated the use of the
applehv
provider (due to upstream qemu issues with EDK2 and the shim.)Additional information
No response
The text was updated successfully, but these errors were encountered: