No path provided for ovmf_vars file in QEMU config with podman machine #20361
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Issue Description
podman machine init
on macOS (Apple Silicon, QEMU provider) results in the following line in the config:This then fails to start because
podman-machine-default_ovmf_vars.fd
is in.local/share/containers/podman/machine/qemu
, which is not the working directory when qemu is launched.Commit is: b5fec41
Steps to reproduce the issue
Steps to reproduce the issue
podman machine init --now
Describe the results you received
The command exits during the start phase with:
Describe the results you expected
The VM to start.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
The issue appears to be because
addArchOptions
in the qemu provider (pkg/machine/qemu/options_darwin_arm64.go
) is called fromsetNewMachineCMD
(pkg/machine//qemu/config.go
) early on. This expects to create the option based on the path of the image file, but the path of the image file has not yet been set and is"testing"
.It is set by the time that the file is created, in
prepare
and so the file is created in the correct location, it just isn't referenced with a full path.I am not sure what the right fix is here, I suspect it's either:
prepare
, when the file is created.I am not quite sufficiently familiar with the structure of this code yet to make either change and be sure that I haven't broken something else.
The text was updated successfully, but these errors were encountered: