You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I noticed it's not possible to update between Podman Version 4.x -> 5.x on Windows. Specifically 4.7.2/4.3 -> 5.2.5 .
On all machines nearly every podman command results in the following message:
> podman machine info
Error: failed to get machines unable to load machine config file: "json: cannot unmarshal string into Go struct field MachineConfig.ImagePath of type define.VMFile"
The problem can be solved by deleting the .config/containers/podman/machine/wsl/podman-machine-default.json. A podman machine reset does not resolve the problem.
Interestingly the JSON file has a Version key which is with 5.x lower than with 4.x .
userid0x0
changed the title
Podman windows Update - unable to load machine config file - MachineConfig.ImagePath
Update Podman on Windows - unable to load machine config file - MachineConfig.ImagePath
Nov 8, 2024
The backend for the podman machine commands has seen extensive rewrites. Configuration files have changed format and VMs from Podman 4.x and earlier are no longer usable. podman machine VMs must be recreated with Podman 5.
Issue Description
Hi,
I noticed it's not possible to update between Podman Version 4.x -> 5.x on Windows. Specifically 4.7.2/4.3 -> 5.2.5 .
On all machines nearly every podman command results in the following message:
The problem can be solved by deleting the
.config/containers/podman/machine/wsl/podman-machine-default.json
. Apodman machine reset
does not resolve the problem.Interestingly the JSON file has a Version key which is with 5.x lower than with 4.x .
Steps to reproduce the issue
Steps to reproduce the issue
podman machine init
podman machine info
Workaround
.config/containers/podman/machine/wsl/podman-machine-default.json
wsl --unregister podman-machine-default
podman machine init
Describe the results you received
It looks like the format of the json file changed. The
Version
key is not incremented but decremented.Describe the results you expected
Either a proper error message or the option to migrate e.g. using
podman machine reset
or similar.podman info output
Windows 10
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
podman-machine-default.json with 4.x
podman-machine-default.json with 5.2.5
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: