pantry icon indicating copy to clipboard operation
pantry copied to clipboard

`podman machine start` fails

Open mxcl opened this issue 2 years ago • 8 comments

image

I have qemu 8.0.3 installed. Smells like a relocatability issue, but I can't see how since it is looking at my tea installation and not /opt/qemu.org it's just the version is wrong. wtf?

I checked otool output and it all looks fine.

mxcl avatar Jul 20 '23 13:07 mxcl

Did you maybe run podman machine init with the prior version of qemu installed?

$ rg qemu ~/.config/containers/podman/machine/qemu/podman-machine-default.json
3:  "Path": "/Users/jacob/.config/containers/podman/machine/qemu/podman-machine-default.json"
6:  "/Users/jacob/.tea/qemu.org/v8.0.3/bin/qemu-system-aarch64",
12:  "name=opt/com.coreos/config,file=/Users/jacob/.config/containers/podman/machine/qemu/podman-machine-default.ign",
36:  "file=/Users/jacob/.tea/qemu.org/v8.0.3/share/qemu/edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on",
38:  "file=/Users/jacob/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw",
46:  "if=virtio,file=/Users/jacob/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-38.20230709.2.0-qemu.aarch64.qcow2"
51:  "Path": "/Users/jacob/.config/containers/podman/machine/qemu/podman-machine-default.ign"
55:  "Path": "/Users/jacob/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-38.20230709.2.0-qemu.aarch64.qcow2"

That seems odd to fix. It's pulling from the $PATH I'm sure. Perhaps tea should inject ~/.tea/.local/bin first in the path, instead of last? but that'll break lots of other things.

jhheider avatar Jul 20 '23 17:07 jhheider

no I only had 8.0.3 installed

mxcl avatar Jul 20 '23 21:07 mxcl

Did you just run podman init? Or did you run it some time ago? My guess is it's in your json config.

jhheider avatar Jul 20 '23 21:07 jhheider

My guess is it's in your json config

ah let me check for that sort of thing

mxcl avatar Jul 21 '23 11:07 mxcl

oddly the json refers to v8.0.0

{
 "ConfigPath": {
  "Path": "/Users/mxcl/.config/containers/podman/machine/qemu/podman-machine-default.json"
 },
 "CmdLine": [
  "/Users/mxcl/.tea/qemu.org/v8.0.0/bin/qemu-system-aarch64",

in 2 places, no refs to any other versions wtf

mxcl avatar Jul 21 '23 11:07 mxcl

is that your /Users/mxcl/.config/containers/podman/machine/qemu/podman-machine-default.json?

jhheider avatar Jul 21 '23 15:07 jhheider

that is correct

mxcl avatar Jul 23 '23 18:07 mxcl

Very weird. That's where I'd expect to see it have hardcoded the qemu version. possibly re-running init will just fix it, but that's not how one is meant to use it, one assumes.

jhheider avatar Jul 23 '23 19:07 jhheider