Open chevdor opened 1 year ago
does podman --log-level=debug ...
reveal anything
I ran again into the issue the last days. It worked today so I cannot tell anymore.
I have this issue every day. I used to experience https://github.com/containers/podman/issues/17403 but since upgrading and recreating my VM it seems I have a different issue. Whereas #17403 would present as machine start
not working at all or only once in a long while, this issue seems fixable by just killing the VM and trying again.
The debug logs don't reveal a lot:
INFO[0000] podman filtering at log level debug
DEBU[0000] Using Podman machine with `qemu` virtualization provider
Starting machine "podman-machine-default"
[/usr/local/opt/podman/libexec/podman/gvproxy -listen-qemu unix:///var/folders/_j/ltwgd27d71g5n15hg52z8ny80000gp/T/podman/qmp_podman-machine-default.sock -pid-file /var/folders/_j/ltwgd27d71g5n15hg52z8ny80000gp/T/podman/podman-machine-default_proxy.pid -ssh-port 62983 -forward-sock /Users/Z002KR6/.local/share/containers/podman/machine/qemu/podman.sock -forward-dest /run/user/502/podman/podman.sock -forward-user core -forward-identity /Users/Z002KR6/.ssh/podman-machine-default --debug]
DEBU[0000] qemu cmd: [/usr/local/bin/qemu-system-x86_64 -m 2048 -smp 1 -fw_cfg name=opt/com.coreos/config,file=/Users/Z002KR6/.config/containers/podman/machine/qemu/podman-machine-default.ign -qmp unix:/var/folders/_j/ltwgd27d71g5n15hg52z8ny80000gp/T/podman/qmp_podman-machine-default.sock,server=on,wait=off -netdev socket,id=vlan,fd=3 -device virtio-net-pci,netdev=vlan,mac=5a:94:ef:e4:0c:ee -device virtio-serial -chardev socket,path=/var/folders/_j/ltwgd27d71g5n15hg52z8ny80000gp/T/podman/podman-machine-default_ready.sock,server=on,wait=off,id=apodman-machine-default_ready -device virtserialport,chardev=apodman-machine-default_ready,name=org.fedoraproject.port.0 -pidfile /var/folders/_j/ltwgd27d71g5n15hg52z8ny80000gp/T/podman/podman-machine-default_vm.pid -machine q35,accel=hvf:tcg -cpu host -virtfs local,path=/Users,mount_tag=vol0,security_model=none -virtfs local,path=/private,mount_tag=vol1,security_model=none -virtfs local,path=/var/folders,mount_tag=vol2,security_model=none -drive if=virtio,file=/Users/Z002KR6/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-38.20230902.2.0-qemu.x86_64.qcow2]
Waiting for VM ...
Error: machine did not transition into running state
DEBU[0027] Shutting down engines
The qemu console shows the VM booting up normally. It finishes pretty quickly. Some time after the VM is up and healthy, podman gives up and shows the above message.
I'm having the same issue as above. Recreating the VM doesn't help, and the delay-workaround in [ https://github.com/containers/podman/issues/17403#issuecomment-1536636874] doesn't work anymore.
I ran into same issue recently. podman debug log prints:
INFO[0000] podman filtering at log level debug
DEBU[0000] Using Podman machine with `qemu` virtualization provider
Starting machine "podman-machine-default"
[/opt/homebrew/opt/podman/libexec/podman/gvproxy -listen-qemu unix:///var/folders/52/32qxwg251tvcdtqbk8c6ll0w0000gp/T/podman/qmp_podman-machine-default.sock -pid-file /var/folders/52/32qxwg251tvcdtqbk8c6ll0w0000gp/T/podman/podman-machine-default_proxy.pid -ssh-port 49852 -forward-sock /Users/violin/.local/share/containers/podman/machine/qemu/podman.sock -forward-dest /run/user/502/podman/podman.sock -forward-user core -forward-identity /Users/violin/.ssh/podman-machine-default --debug]
DEBU[0000] qemu cmd: [/opt/homebrew/bin/qemu-system-aarch64 -m 2048 -smp 1 -fw_cfg name=opt/com.coreos/config,file=/Users/violin/.config/containers/podman/machine/qemu/podman-machine-default.ign -qmp unix:/var/folders/52/32qxwg251tvcdtqbk8c6ll0w0000gp/T/podman/qmp_podman-machine-default.sock,server=on,wait=off -netdev socket,id=vlan,fd=3 -device virtio-net-pci,netdev=vlan,mac=5a:94:ef:e4:0c:ee -device virtio-serial -chardev socket,path=/var/folders/52/32qxwg251tvcdtqbk8c6ll0w0000gp/T/podman/podman-machine-default_ready.sock,server=on,wait=off,id=apodman-machine-default_ready -device virtserialport,chardev=apodman-machine-default_ready,name=org.fedoraproject.port.0 -pidfile /var/folders/52/32qxwg251tvcdtqbk8c6ll0w0000gp/T/podman/podman-machine-default_vm.pid -accel hvf -accel tcg -cpu host -M virt,highmem=on -drive file=/opt/homebrew/share/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on -drive file=/Users/violin/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw -virtfs local,path=/Users,mount_tag=vol0,security_model=none -virtfs local,path=/private,mount_tag=vol1,security_model=none -virtfs local,path=/var/folders,mount_tag=vol2,security_model=none -drive if=virtio,file=/Users/violin/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-38.20230722.2.1-qemu.aarch64.qcow2]
Waiting for VM ...
Error: machine did not transition into running state
DEBU[0029] Shutting down engines
And qemu terminal prints:
It seems that podman didn't login into qemu linux .
My podman version is latest 4.7.0, qemu version is 8.1.1
I'm also hitting this issue
also experiencing this on MacOS x86
Same issue here on MacOS M2.
However, the script provided by @jamesmikesell here works fine.
Same M1
couple of questions, any chance you all have the extra fast m2s? and does it reproduce every time for folks?
Facing a similar issue on Macbook pro using an intel chip.
podman version 4.7.1 qemu-img version 8.1.1
I got it working by upgrading podman with brew install podman
After upgrading, I have:
Prior to the upgrade I tried resetting podman's (default) machine using podman machine init
; don't know if it helped with making the upgrade work, but when I tried to run the new machine, before the upgrade, it kept failing.
Similar workaround as @chevdor on my M2 when using Podman Desktop
I think Podman 4.8 will solve this problem ... RC1 was cut on Monday and we expect a release cut next week.
Similar workaround as @chevdor on my M2 when using Podman Desktop
1. Close Podman Desktop, if running 2. Using Activity Monitor, end qemu-system-aarach64 3. Relaunch Podman Desktop
The second step also resolved the issue when starting the machine from a terminal session. I was getting the same exact error. Thanks!
@chrishoina could you confirm the version you used ? It would be interesting to know whether you bumped into the issue with the new version or if you still were on an older version.
@chevdor Sorry for the delay. I'm on v4.8.0. And I'm still experiencing the same issue. The above steps help though. Although, when Podman desktop fails, I do see this (that is the Run Podman button).
For what it's worth
podman machine rm
podman machine init
podman machine start
worked for me. I only started to experience this issue after a recent os update.
I've had the same problem, on MacOS version 13.6.6 in Podman 5.0.1. None of the suggestions above helped me. Only the following worked for me:
podman machine stop
podman machine rm
rm -rf ~/.config/containers/
rm -rf ~/.local/share/containers
podman machine init
podman machine start
Alternatively, if that doesn't help, I would also try reinstalling Podman:
podman machine stop
podman machine rm
brew uninstall podman
rm -rf ~/.config/containers/
rm -rf ~/.local/share/containers
brew install podman
podman machine init
podman machine start
M1 same on violin0622 stuck when login, I see when debug
podman machine stop podman machine rm
Update podman version brew install podman podman machine init podman machine start And re-init new qemu after running normally
Issue Description
After each reboot, the podman machine fails starting unless qemu is killed.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Describe the results you expected
The podman machine starts
podman info output
killall qemu-system-x86_64 podman machine start