
양조 업그레이드 후 Podman 기계가 더 이상 작동하지 않습니다.
podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: qemu exited unexpectedly with exit code 1, stderr: qemu-system-aarch64: -drive file=/opt/homebrew/Cellar/qemu/8.0.2/share/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on: Could not open '/opt/homebrew/Cellar/qemu/8.0.2/share/qemu/edk2-aarch64-code.fd': No such file or directory
이 오류를 어떻게 해결합니까?
답변1
문제는 구성된 시스템에 사용된 경로가 올바르지 않다는 것입니다.
ls /opt/homebrew/Cellar/qemu/8.0.2/
ls: /opt/homebrew/Cellar/qemu/8.0.2/: No such file or directory
ls /opt/homebrew/Cellar/qemu/
8.0.3/
머신의 구성을 편집하면 디스크 이미지 경로를 업데이트할 수 있습니다.
podman machine inspect podman-machine-default | jq .[].ConfigPath
{
"Path": "/Users/aaron/.config/containers/podman/machine/qemu/podman-machine-default.json"
}
잘못된 구성을 찾으십시오.
jq .CmdLine ~/.config/containers/podman/machine/qemu/podman-machine-default.json | grep qemu\/8
"file=/opt/homebrew/Cellar/qemu/8.0.2/share/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on",
구성 파일 편집
nvim ~/.config/containers/podman/machine/qemu/podman-machine-default.json
새로운 올바른 버전 번호로 경로를 업데이트하십시오. 8.0.2
-> 에서8.0.3
jq .CmdLine ~/.config/containers/podman/machine/qemu/podman-machine-default.json | grep qemu\/8
"file=/opt/homebrew/Cellar/qemu/8.0.3/share/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on",
내 경우에는 모든 것이 올바르게 작동하도록 시작하고 중지하고 다시 시작해야 했습니다.
❯ podman machine set --rootful
❯ podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Mounting volume... /Users/aaron:/Users/aaron
Error: exit status 255
❯ podman machine list
NAME VM TYPE CREATED LAST UP CPUS MEMORY DISK SIZE
podman-machine-default qemu 4 weeks ago Currently running 3 3.221GB 107.4GB
❯ podman machine stop
Waiting for VM to exit...
Machine "podman-machine-default" stopped successfully
❯ podman machine set --rootful
❯ podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Mounting volume... /Users/aaron:/Users/aaron
Mounting volume... /private/tmp:/private/tmp
Mounting volume... /var/folders/:/var/folders/
API forwarding listening on: /var/run/docker.sock
Docker API clients default to this address. You do not need to set DOCKER_HOST.
Machine "podman-machine-default" started successfully