Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman machine start fails on Mac M1(osx 12.4) (podman 4.1.1, qemu 7.0) #14837

Closed
kp2401075 opened this issue Jul 6, 2022 · 13 comments · Fixed by #14893
Closed

podman machine start fails on Mac M1(osx 12.4) (podman 4.1.1, qemu 7.0) #14837

kp2401075 opened this issue Jul 6, 2022 · 13 comments · Fixed by #14893
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. machine

Comments

@kp2401075
Copy link

kp2401075 commented Jul 6, 2022

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind bug

Description
Podman machine start fails.

$ podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: dial unix /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock: connect: connection refused

** Log-Level = Debug **

 podman machine start  --log-level=debug 
INFO[0000] podman filtering at log level debug          
DEBU[0000] [/opt/homebrew/bin/qemu-system-aarch64 -m 2048 -smp 1 -fw_cfg name=opt/com.coreos/config,file=/Users/jaypatel/.config/containers/podman/machine/qemu/podman-machine-default.ign -qmp unix://var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock,server=on,wait=off,id=podman-machine-default_ready -device virtserialport,chardev=podman-machine-default_ready,name=org.fedoraproject.port.0 -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/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw -virtfs local,path=/Users/jaypatel,mount_tag=vol0,security_model=mapped-xattr -drive if=virtio,file=/Users/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220618.2.0-qemu.aarch64.qcow2 -fw_cfg name=opt/com.coreos/environment,string=aHR0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifGZ0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8bm9fcHJveHk9ImxvY2FsaG9zdCwxMjcuMC4wLjEsLmNsb3VkLmNvcnAudGVsc3RyYS5jb20ifEhUVFBfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifEhUVFBTX1BST1hZPSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxGVFBfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifA== -fw_cfg name=opt/com.coreos/environment,string=ZnRwX3Byb3h5PSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxub19wcm94eT0ibG9jYWxob3N0LDEyNy4wLjAuMSwuY2xvdWQuY29ycC50ZWxzdHJhLmNvbSJ8SFRUUF9QUk9YWT0iaHR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i50ZWxzdHJhLmNvbS5hdTo4MDgwInxub19wcm94eT0ibG9jYWxob3N0LDEyNy4wLjAuMSwuY2xvdWQuY29ycC50ZWxzdHJhLmNvbSJ8SFRUUF9QUk9YWT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8SFRUUFNfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifA== -fw_cfg name=opt/com.coreos/environment,string=SFRUUF9QUk9YWT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8SFRUUFNfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifEZUUF9QUk9YWT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifGZ0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8c29tZSBDb3Jwb3JhdGUgcHJveHkK] 
Starting machine "podman-machine-default"
[/opt/homebrew/opt/podman/libexec/gvproxy -listen-qemu unix:///var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/qmp_podman-machine-default.sock -pid-file /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default.pid -ssh-port 52895 -forward-sock /Users/jaypatel/.local/share/containers/podman/machine/podman-machine-default/podman.sock -forward-dest /run/user/503/podman/podman.sock -forward-user core -forward-identity /Users/jaypatel/.ssh/podman-machine-default --debug]
DEBU[0000] [/opt/homebrew/bin/qemu-system-aarch64 -m 2048 -smp 1 -fw_cfg name=opt/com.coreos/config,file=/Users/jaypatel/.config/containers/podman/machine/qemu/podman-machine-default.ign -qmp unix://var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock,server=on,wait=off,id=podman-machine-default_ready -device virtserialport,chardev=podman-machine-default_ready,name=org.fedoraproject.port.0 -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/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw -virtfs local,path=/Users/jaypatel,mount_tag=vol0,security_model=mapped-xattr -drive if=virtio,file=/Users/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220618.2.0-qemu.aarch64.qcow2 -fw_cfg name=opt/com.coreos/environment,string=aHR0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifGZ0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodH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A6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifEZUUF9QUk9YWT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifGZ0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8c29tZSBDb3Jwb3JhdGUgcHJveHkK] 
Waiting for VM ...
Error: dial unix /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock: connect: connection refused


Steps to reproduce the issue:

  1. podman machine init

  2. podman machine stop

  3. podman machine start

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

podman --version
podman version 4.1.1
podman version
Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: connection to bastion host (ssh://core@localhost:52895/run/user/503/podman/podman.sock) failed: dial tcp [::1]:52895: connect: connection refused

Output of podman info --debug:

Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman. failed to create sshClient: connection to bastion host (ssh://core@localhost:52895/run/user/503/podman/podman.sock) failed: dial tcp [::1]:52895: connect: connection refused

Package info (e.g. output of rpm -q podman or apt list podman):

$ brew info podman
podman: stable 4.1.1 (bottled), HEAD
Tool for managing OCI containers and pods
https://podman.io/
/opt/homebrew/Cellar/podman/4.1.1 (174 files, 46.4MB) *
  Poured from bottle on 2022-06-24 at 17:07:06
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/podman.rb
License: Apache-2.0
==> Dependencies
Build: go ✘, go-md2man ✘
Required: qemu ✔
==> Options
--HEAD
	Install HEAD version
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Analytics
install: 20,259 (30 days), 57,372 (90 days), 167,353 (365 days)
install-on-request: 20,031 (30 days), 57,059 (90 days), 167,025 (365 days)
build-error: 13 (30 days)


$ brew info qemu 
qemu: stable 7.0.0 (bottled), HEAD
Emulator for x86 and PowerPC
https://www.qemu.org/
/opt/homebrew/Cellar/qemu/7.0.0_1 (162 files, 610.9MB) *
  Poured from bottle on 2022-06-24 at 17:06:47
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/qemu.rb
License: GPL-2.0-only
==> Dependencies
Build: libtool ✔, meson ✘, ninja ✘, pkg-config ✔
Required: glib ✔, gnutls ✔, jpeg ✔, libpng ✔, libslirp ✔, libssh ✔, libusb ✔, lzo ✔, ncurses ✔, nettle ✔, pixman ✔, snappy ✔, vde ✔, zstd ✔
==> Options
--HEAD
	Install HEAD version
==> Analytics
install: 64,872 (30 days), 155,871 (90 days), 456,538 (365 days)
install-on-request: 38,987 (30 days), 94,738 (90 days), 288,953 (365 days)
build-error: 33 (30 days)

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)

Yes

Additional environment details (AWS, VirtualBox, physical, etc.):
image

@openshift-ci openshift-ci bot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 6, 2022
@Luap99 Luap99 added macos MacOS (OSX) related machine labels Jul 6, 2022
@Luap99
Copy link
Member

Luap99 commented Jul 6, 2022

Did you try to remove the machine and create a new?
Can you try to test with podman from the main branch, there were a lot of machine fixes recently maybe it is already fixed?

@ashley-cui @baude PTAL

@kp2401075
Copy link
Author

kp2401075 commented Jul 6, 2022

Thanks @Luap99 ,

I remove machine and create a new one everytime I use podman.

BTW I also don't mind waiting for a fix until next release. because I work around by deleting and recreating VM.

Can you please tell me how to use podman from main branch.

is there special brew command or Do I have to build from source.?

is it brew install podman --HEAD ?

@ashley-cui
Copy link
Member

brew install podman --HEAD should work

@mbranchnl
Copy link

mbranchnl commented Jul 7, 2022

currently it gives;

==> Downloading https://github.com/containers/podman/commit/9fac1b335f681400a029e9d8014f45fa5634ec40.patch?full_index=1
Already downloaded: /Users/marijn/Library/Caches/Homebrew/downloads/ccb05f1d4885c9b431833735e7016ef941ddebfcb94c684f2e35bcdb0424bd3c--9fac1b335f681400a029e9d8014f45fa5634ec40.patch
==> Cloning https://github.com/containers/gvisor-tap-vsock.git
Updating /Users/marijn/Library/Caches/Homebrew/podman--gvproxy--git
==> Checking out branch main
Already on 'main'
Your branch is up to date with 'origin/main'.
HEAD is now at fb5d987 Merge pull request #111 from containers/dependabot/go_modules/github.com/onsi/gomega-1.19.0
==> Cloning https://github.com/containers/podman.git
Updating /Users/marijn/Library/Caches/Homebrew/podman--git
==> Checking out branch main
Already on 'main'
Your branch is up to date with 'origin/main'.
HEAD is now at d481fbe75 Merge pull request #14803 from bugfood/volumes
==> Patching
==> Applying 9fac1b335f681400a029e9d8014f45fa5634ec40.patch
patching file pkg/machine/qemu/options_darwin_arm64.go
Hunk #1 FAILED at 15.
1 out of 1 hunk FAILED -- saving rejects to file pkg/machine/qemu/options_darwin_arm64.go.rej

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
Podman machine fails with qemu 7.0.0 on M1 mac https://github.com/Homebrew/homebrew-core/issues/102242
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.

Nevermind;

brew edit homebrew

and removing the patch fixes the install procedure. But the main issue remains

@kp2401075
Copy link
Author

So I tried installing Podman from Main

brew install podman --HEAD
got error as @mbranchnl has shown.

Then I did as he sugested

brew edit podman
and commented out patches section.

class Podman < Formula
  desc "Tool for managing OCI containers and pods"
  homepage "https://podman.io/"
  license "Apache-2.0"

  stable do
    url "https://github.com/containers/podman/archive/v4.1.1.tar.gz"
    sha256 "27bf32e9b1afee94cb08ebd59389104788d687f402a541f3631f94c7916b10a5"
    resource "gvproxy" do
      url "https://github.com/containers/gvisor-tap-vsock/archive/v0.3.0.tar.gz"
      sha256 "6ca454ae73fce3574fa2b615e6c923ee526064d0dc2bcf8dab3cca57e9678035"
    end
  end

  bottle do
    sha256 cellar: :any_skip_relocation, arm64_monterey: "0389d5ec1489959bc7ff0a558ebf9816317942d5de988cf1739e1c0fc667b598"
    sha256 cellar: :any_skip_relocation, arm64_big_sur:  "11d99816bb8cd41781a5d312a1547a89180536fb445445336c637c7d46e9ded3"
    sha256 cellar: :any_skip_relocation, monterey:       "f04d10389ef24a0a258ce1e5ddf14f290420eaff555f58ecdf1495f930ae90f4"
    sha256 cellar: :any_skip_relocation, big_sur:        "3a8967d5b501cbccd23f943971d56b36ac7f0694962ea153c50e6727f933a9a3"
    sha256 cellar: :any_skip_relocation, catalina:       "2fbadb9d67779137c4a26f402bd7f8414d98e693c6809268131b7abc8e4a9a09"
    sha256 cellar: :any_skip_relocation, x86_64_linux:   "b1997012b073de38e3c113c15e29f3dae12b0e09f93cc3e30fc6003a6e808102"
  end

  head do
    url "https://github.com/containers/podman.git", branch: "main"

    resource "gvproxy" do
      url "https://github.com/containers/gvisor-tap-vsock.git", branch: "main"
    end
  end

  depends_on "go" => :build
  depends_on "go-md2man" => :build
  depends_on "qemu"

  # Fixes compatability with qemu 7.0.0. Can be removed next release.
  # See: https://github.com/containers/podman/issues/14303
  # patch do
  #   url "https://github.com/containers/podman/commit/9fac1b335f681400a029e9d8014f45fa5634ec40.patch?full_index=1"
  #   sha256 "161a0ce3d1012ae030790a16857278e4417b3b410dce68927a6b02a43cf090ba"
  # end

  def install
    ENV["CGO_ENABLED"] = "1"
    os = OS.kernel_name.downcase

    inreplace "vendor/github.com/containers/common/pkg/config/config_#{os}.go",
              "/usr/local/libexec/podman",
              libexec

    system "make", "podman-remote-#{os}"
    if OS.mac?
      bin.install "bin/#{os}/podman" => "podman-remote"
      bin.install_symlink bin/"podman-remote" => "podman"
      bin.install "bin/#{os}/podman-mac-helper" => "podman-mac-helper"
    else
      bin.install "bin/podman-remote"
    end

    resource("gvproxy").stage do
      system "make", "gvproxy"
      libexec.install "bin/gvproxy"
    end

    system "make", "podman-remote-#{os}-docs"
    man1.install Dir["docs/build/remote/#{os}/*.1"]

    bash_completion.install "completions/bash/podman"
    zsh_completion.install "completions/zsh/_podman"
    fish_completion.install "completions/fish/podman.fish"
  end

  test do
    assert_match "podman-remote version #{version}", shell_output("#{bin}/podman-remote -v")
    assert_match(/Cannot connect to Podman/i, shell_output("#{bin}/podman-remote info 2>&1", 125))

    machineinit_output = shell_output("podman-remote machine init --image-path fake-testi123 fake-testvm 2>&1", 125)
    assert_match "Error: open fake-testi123: no such file or directory", machineinit_output
  end
end

after that install went ok.

$ podman -v
podman version 4.2.0-dev

but Issues still remained.

I had also cleaned previous machine using podman machine rm and created new one from scratch

when I podman machine stop and try starting it podman machine start fails again with same error.

$ podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: dial unix /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock: connect: connection refused

With Debug

$ podman machine start --log-level=debug
INFO[0000] podman filtering at log level debug          
DEBU[0000] [/opt/homebrew/bin/qemu-system-aarch64 -m 2048 -smp 1 -fw_cfg name=opt/com.coreos/config,file=/Users/jaypatel/.config/containers/podman/machine/qemu/podman-machine-default.ign -qmp unix://var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock,server=on,wait=off,id=podman-machine-default_ready -device virtserialport,chardev=podman-machine-default_ready,name=org.fedoraproject.port.0 -pidfile /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw -virtfs local,path=/Users/jaypatel,mount_tag=vol0,security_model=mapped-xattr -drive if=virtio,file=/Users/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220703.2.1-qemu.aarch64.qcow2 -fw_cfg name=opt/com.coreos/environment,string=aHR0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifGZ0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8bm9fcHJveHk9ImxvY2FsaG9zdCwxMjcuMC4wLjEsLmNsb3VkLmNvcnAudGVsc3RyYS5jb20ifEhUVFBfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifEhUVFBTX1BST1hZPSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxGVFBfUFJPWFk9Im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cfg name=opt/com.coreos/environment,string=RlRQX1BST1hZPSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxodHRwX3Byb3h5PSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxodHRwc19wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8ZnRwX3Byb3h5PSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxub19wcm94eT0ibG9jYWxob3N0LDEyNy4wLjAuMSwuY2xvdWQuY29ycC50ZWxzdHJhLmNvbSJ8SFRUUF9QUk9YWT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8SFRUUFNfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifA==] 
Starting machine "podman-machine-default"
[/opt/homebrew/opt/podman/libexec/gvproxy -listen-qemu unix:///var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/qmp_podman-machine-default.sock -pid-file /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_proxy.pid -ssh-port 55485 -forward-sock /Users/jaypatel/.local/share/containers/podman/machine/podman-machine-default/podman.sock -forward-dest /run/user/503/podman/podman.sock -forward-user core -forward-identity /Users/jaypatel/.ssh/podman-machine-default --debug]
DEBU[0000] [/opt/homebrew/bin/qemu-system-aarch64 -m 2048 -smp 1 -fw_cfg name=opt/com.coreos/config,file=/Users/jaypatel/.config/containers/podman/machine/qemu/podman-machine-default.ign -qmp unix://var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock,server=on,wait=off,id=podman-machine-default_ready -device virtserialport,chardev=podman-machine-default_ready,name=org.fedoraproject.port.0 -pidfile /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw -virtfs local,path=/Users/jaypatel,mount_tag=vol0,security_model=mapped-xattr -drive if=virtio,file=/Users/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220703.2.1-qemu.aarch64.qcow2 -fw_cfg name=opt/com.coreos/environment,string=aHR0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifGZ0cF9wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8bm9fcHJveHk9ImxvY2FsaG9zdCwxMjcuMC4wLjEsLmNsb3VkLmNvcnAudGVsc3RyYS5jb20ifEhUVFBfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLm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5jb20uYXU6ODA4MCJ8SFRUUFNfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifA== -fw_cfg name=opt/com.coreos/environment,string=RlRQX1BST1hZPSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxodHRwX3Byb3h5PSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxodHRwc19wcm94eT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8ZnRwX3Byb3h5PSJodHRwOi8vZDkxOTg5NDoySzZZdUY2UjE2QGh0dHAtZ3cudGNpZi50ZWxzdHJhLmNvbS5hdTo4MDgwInxub19wcm94eT0ibG9jYWxob3N0LDEyNy4wLjAuMSwuY2xvdWQuY29ycC50ZWxzdHJhLmNvbSJ8SFRUUF9QUk9YWT0iaHR0cDovL2Q5MTk4OTQ6Mks2WXVGNlIxNkBodHRwLWd3LnRjaWYudGVsc3RyYS5jb20uYXU6ODA4MCJ8SFRUUFNfUFJPWFk9Imh0dHA6Ly9kOTE5ODk0OjJLNll1RjZSMTZAaHR0cC1ndy50Y2lmLnRlbHN0cmEuY29tLmF1OjgwODAifA==] 
Waiting for VM ...
Error: dial unix /var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock: connect: connection refused

@iamthen0ise
Copy link

Hi, @kp2401075!

I have exactly same M1 2020 Macbook Air. And the next steps make my podman work:

First, initialized the machine with Stable image.

podman machine init --cpus 4 --image-path stable

then i've changed memory to desired value in
~/.config/containers/podman/machine/qemu/podman-machine-default.json


"CmdLine": [
  "/opt/homebrew/bin/qemu-system-aarch64",
  "-m",
  "4096",
...

After this i've successfully started my podman machine with podman machine start

Hope it woudl help!

@iamthen0ise
Copy link

Lot of readings could be found here
#4364
and specially here — #14303

Also, there's a dirty hack with experimental build of podman https://edofic.com/posts/2021-09-12-podman-m1-amd64/
but please be aware — this build do not have a podman-mac-helper utility which allow you to integrate podman with docker in most painless way.

@kp2401075
Copy link
Author

Hello @iamthen0ise,
I've tried to replicate the steps you mentioned with podman machine init --cpus 4 --image-path stable and then changing memory config in podman-machine-default.json Unfortunately this did not have any effect & the issue still remains.

@Luap99
Copy link
Member

Luap99 commented Jul 9, 2022

#14850 was just merged, if you rebuild from main it should return a proper qemu error message (assuming qemu fails).

@kp2401075
Copy link
Author

kp2401075 commented Jul 10, 2022

Thanks @Luap99 ,

I re-installed podman with brew install podman --HEAD and now I believe the error is being returned as you said.

I've deleted & recreated podman machine and stop and then start multiple times. Error message remains as below.

$ podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: qemu exited unexpectedly with exit code 1, stderr: qemu-system-aarch64: -fw_cfg name=opt/com.coreos/environment,string=c29tZSBDb3Jwb3JhdGUgcHJveHkK: duplicate fw_cfg file name: opt/com.coreos/environment

I believe it is reffering to the ~/.config/containers/podman/machine/qemu/podman-machine-default.json

{
 "ConfigPath": {
  "Path": "/Users/jaypatel/.config/containers/podman/machine/qemu/podman-machine-default.json"
 },
 "CmdLine": [
  "/opt/homebrew/bin/qemu-system-aarch64",
  "-m",
  "2048",
  "-smp",
  "1",
  "-fw_cfg",
  "name=opt/com.coreos/config,file=/Users/jaypatel/.config/containers/podman/machine/qemu/podman-machine-default.ign",
  "-qmp",
  "unix://var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/k9/12cdgrpn4bl5ybl800vww62w0000gq/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/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw",
  "-virtfs",
  "local,path=/Users/jaypatel,mount_tag=vol0,security_model=mapped-xattr",
  "-drive",
  "if=virtio,file=/Users/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220703.2.1-qemu.aarch64.qcow2",
  "-fw_cfg",
  "name=opt/com.coreos/environment,string=c29tZSBDb3Jwb3JhdGUgcHJveHkK",
  "-fw_cfg",
  "name=opt/com.coreos/environment,string=c29tZSBDb3Jwb3JhdGUgcHJveHkK",
  "-fw_cfg",
  "name=opt/com.coreos/environment,string=c29tZSBDb3Jwb3JhdGUgcHJveHkK"
 ],
 "Rootful": false,
 "UID": 503,
 "IgnitionFilePath": {
  "Path": "/Users/jaypatel/.config/containers/podman/machine/qemu/podman-machine-default.ign"
 },
 "ImageStream": "testing",
 "ImagePath": {
  "Path": "/Users/jaypatel/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220703.2.1-qemu.aarch64.qcow2"
 },
 "Mounts": [
  {
   "ReadOnly": false,
   "Source": "/Users/jaypatel",
   "Tag": "vol0",
   "Target": "/Users/jaypatel",
   "Type": "9p"
  }
 ],
 "Name": "podman-machine-default",
 "PidFilePath": {
  "Path": "/var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_proxy.pid"
 },
 "VMPidFilePath": {
  "Path": "/var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_vm.pid"
 },
 "QMPMonitor": {
  "Address": {
   "Path": "/var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/qmp_podman-machine-default.sock"
  },
  "Network": "unix",
  "Timeout": 2000000000
 },
 "ReadySocket": {
  "Path": "/var/folders/k9/12cdgrpn4bl5ybl800vww62w0000gq/T/podman/podman-machine-default_ready.sock"
 },
 "CPUs": 1,
 "DiskSize": 100,
 "Memory": 2048,
 "IdentityPath": "/Users/jaypatel/.ssh/podman-machine-default",
 "Port": 61045,
 "RemoteUsername": "core",
 "Starting": false,
 "Created": "2022-07-10T13:26:31.722565+10:00",
 "LastUp": "2022-07-10T13:27:23.163821+10:00"
}

I see there are some duplicate entries in the "CmdLine" array at the end section.

Funny thing is I've tried removing the duplicate entries and tried starting it.

it adds them when I execute podman machine start 1 duplicate entry gets added every time I execute the podman machine start command

Possible Solution.

If I remove all the entries starting with

  "-fw_cfg",
  "name=opt/com.coreos/environment,string=c29tZSBDb3Jwb3JhdGUgcHJveHkK"

podman machine start succeeds.

But another entry gets added after machine start.
so the next time it fails.

Me not being familiar with codebase can't figureout the issue but

i believe it could be in /pkg/machine/qemu/machine.go
may be in function LoadVMByName

func (p *Provider) LoadVMByName(name string) (machine.VM, error) {
	vm := &MachineVM{Name: name}
	vm.HostUser = machine.HostUser{UID: -1} // posix reserves -1, so use it to signify undefined
	if err := vm.update(); err != nil {
		return nil, err
	}

	// It is here for providing the ability to propagate
	// proxy settings (e.g. HTTP_PROXY and others) on a start
	// and avoid a need of re-creating/re-initiating a VM
	if proxyOpts := machine.GetProxyVariables(); len(proxyOpts) > 0 {
		proxyStr := "name=opt/com.coreos/environment,string="
		var proxies string
		for k, v := range proxyOpts {
			proxies = fmt.Sprintf("%s%s=\"%s\"|", proxies, k, v)
		}
		proxyStr = fmt.Sprintf("%s%s", proxyStr, base64.StdEncoding.EncodeToString([]byte(proxies)))
		vm.CmdLine = append(vm.CmdLine, "-fw_cfg", proxyStr)  <<<<<<<<<<<< MAY BE HERE  <<<<<<<<<<<
	}

	logrus.Debug(vm.CmdLine)
	return vm, nil
}

Reason Why I looked at proxy related thing is because c29tZSBDb3Jwb3JhdGUgcHJveHkK is base64 encoded value for proxy variable. For Security reasons I've replaced original value with c29tZSBDb3Jwb3JhdGUgcHJveHkK

Function LoadVMByName Injects proxy without checking if is already present in the CmdLine.

@Luap99
Copy link
Member

Luap99 commented Jul 11, 2022

I think your analyses is correct, it should replace the proxy option and not append.

Luap99 added a commit to Luap99/libpod that referenced this issue Jul 11, 2022
qemu fails when the same `fw_cfg` options is used more than once.
Since the current logic always adds a new option on each machine load
this will fail on the second start.

We can fix this by checking if the option is already set and replace but
I think it is easier to just not commit the option in the config and add
it dynamically on start. User that hit this bug have to recreate the
machine.

[NO NEW TESTS NEEDED]

Fixes containers#14636
Fixes containers#14837

Signed-off-by: Paul Holzinger <[email protected]>
@fulwang
Copy link

fulwang commented Jul 18, 2022

Is this issue fixed?

I have encountered the same issue today morning when my mac recovered from sleep.
Funny thing is i installed podman qemu through brew one week ago and podman can't start at that time. so i downgrade qemu to 6.2.0 per the guidance here(102242) and later upgrade to 7.0.0 again but didn't find any thing need to change in the "podman-machine-default.json" it worked for me, but today morning it breaks again.

(base) fulwang@MacPro ~ % podman machine list
NAME VM TYPE CREATED LAST UP CPUS MEMORY DISK SIZE
podman-machine-default* qemu 10 days ago 2 hours ago 1 2.147GB 42.95GB
(base) fulwang@MacPro ~ %
(base) fulwang@MacPro ~ % podman machine start
Starting machine "podman-machine-default"
Waiting for VM ...
Error: dial unix /var/folders/1p/ngrgvh_94rb9x3527c7h4hf40000gn/T/podman/podman-machine-default_ready.sock: connect: connection refused
(base) fulwang@MacPro ~ %
(base) fulwang@MacPro ~ % sw_vers
ProductName: macOS
ProductVersion: 12.4
BuildVersion: 21F79
(base) fulwang@MacPro ~ % brew info podman qemu
podman: stable 4.1.1 (bottled), HEAD
Tool for managing OCI containers and pods
https://podman.io/
/opt/homebrew/Cellar/podman/4.1.1 (174 files, 46.4MB) *
Poured from bottle on 2022-07-07 at 15:12:18
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/podman.rb
License: Apache-2.0
==> Dependencies
Build: go ✘, go-md2man ✘
Required: qemu ✔
==> Options
--HEAD
Install HEAD version
==> Caveats
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
==> Analytics
install: 17,887 (30 days), 56,923 (90 days), 172,910 (365 days)
install-on-request: 17,701 (30 days), 56,548 (90 days), 172,527 (365 days)
build-error: 31 (30 days)

qemu: stable 7.0.0 (bottled), HEAD
Emulator for x86 and PowerPC
https://www.qemu.org/
/opt/homebrew/Cellar/qemu/7.0.0_1 (162 files, 610.9MB) *
Poured from bottle on 2022-07-07 at 15:12:00
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/qemu.rb
License: GPL-2.0-only
==> Dependencies
Build: libtool ✔, meson ✘, ninja ✘, pkg-config ✔
Required: glib ✔, gnutls ✔, jpeg ✔, libpng ✔, libslirp ✔, libssh ✔, libusb ✔, lzo ✔, ncurses ✔, nettle ✔, pixman ✔, snappy ✔, vde ✔, zstd ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 63,745 (30 days), 161,718 (90 days), 474,228 (365 days)
install-on-request: 39,182 (30 days), 98,464 (90 days), 299,341 (365 days)
build-error: 30 (30 days)
(base) fulwang@MacPro ~ %

@fulwang
Copy link

fulwang commented Jul 18, 2022

and seems i have the same issue with @kp2401075 in the json file, duplicate entries in the "CmdLine". another thing is when system restore from sleep i must manually stop the machine and restart again to gain the correct timing, or else when you making update in container such as apt update in Ubuntu, you would probably encounter "Repository is not valid yet" error.

(base) fulwang@MacPro ~ % cat ~/.config/containers/podman/machine/qemu/podman-machine-default.json
{
"ConfigPath": {
"Path": "/Users/fulwang/.config/containers/podman/machine/qemu/podman-machine-default.json"
},
"CmdLine": [
"/opt/homebrew/bin/qemu-system-aarch64",
"-m",
"2048",
"-smp",
"1",
"-fw_cfg",
"name=opt/com.coreos/config,file=/Users/fulwang/.config/containers/podman/machine/qemu/podman-machine-default.ign",
"-qmp",
"unix://var/folders/1p/ngrgvh_94rb9x3527c7h4hf40000gn/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/1p/ngrgvh_94rb9x3527c7h4hf40000gn/T/podman/podman-machine-default_ready.sock,server=on,wait=off,id=podman-machine-default_ready",
"-device",
"virtserialport,chardev=podman-machine-default_ready,name=org.fedoraproject.port.0",
"-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/fulwang/.local/share/containers/podman/machine/qemu/podman-machine-default_ovmf_vars.fd,if=pflash,format=raw",
"-virtfs",
"local,path=/Users/fulwang,mount_tag=vol0,security_model=mapped-xattr",
"-drive",
"if=virtio,file=/Users/fulwang/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220618.3.1-qemu.aarch64.qcow2",
"-fw_cfg",
"name=opt/com.coreos/environment,string=aHR0cHNfcHJveHk9Imh0dHA6Ly85LjExNC4yMjYuMjQ2OjgxMTgifGh0dHBfcHJveHk9Imh0dHA6Ly85LjExNC4yMjYuMjQ2OjgxMTgifA==",
"-fw_cfg",
"name=opt/com.coreos/environment,string=aHR0cF9wcm94eT0iaHR0cDovLzkuMTE0LjIyNi4yNDY6ODExOCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly85LjExNC4yMjYuMjQ2OjgxMTgifA==",
"-fw_cfg",
"name=opt/com.coreos/environment,string=aHR0cF9wcm94eT0iaHR0cDovLzkuMTE0LjIyNi4yNDY6ODExOCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly85LjExNC4yMjYuMjQ2OjgxMTgifA==",
"-fw_cfg",
"name=opt/com.coreos/environment,string=aHR0cF9wcm94eT0iaHR0cDovLzkuMTE0LjIyNi4yNDY6ODExOCJ8aHR0cHNfcHJveHk9Imh0dHA6Ly85LjExNC4yMjYuMjQ2OjgxMTgifA=="
],
"Rootful": false,
"UID": 501,
"IgnitionFilePath": {
"Path": "/Users/fulwang/.config/containers/podman/machine/qemu/podman-machine-default.ign"
},
"ImageStream": "stable",
"ImagePath": {
"Path": "/Users/fulwang/.local/share/containers/podman/machine/qemu/podman-machine-default_fedora-coreos-36.20220618.3.1-qemu.aarch64.qcow2"
},
"Mounts": [
{
"ReadOnly": false,
"Source": "/Users/fulwang",
"Tag": "vol0",
"Target": "/Users/fulwang",
"Type": "9p"
}
],
"Name": "podman-machine-default",
"PidFilePath": {
"Path": "/var/folders/1p/ngrgvh_94rb9x3527c7h4hf40000gn/T/podman/podman-machine-default.pid"
},
"QMPMonitor": {
"Address": {
"Path": "/var/folders/1p/ngrgvh_94rb9x3527c7h4hf40000gn/T/podman/qmp_podman-machine-default.sock"
},
"Network": "unix",
"Timeout": 2000000000
},
"ReadySocket": {
"Path": "/var/folders/1p/ngrgvh_94rb9x3527c7h4hf40000gn/T/podman/podman-machine-default_ready.sock"
},
"CPUs": 1,
"DiskSize": 40,
"Memory": 2048,
"IdentityPath": "/Users/fulwang/.ssh/podman-machine-default",
"Port": 57251,
"RemoteUsername": "core",
"Starting": false,
"Created": "2022-07-07T15:38:46.346814+08:00",
"LastUp": "2022-07-18T10:05:59.260266+08:00"
(base) fulwang@MacPro ~ %

mheon pushed a commit to mheon/libpod that referenced this issue Jul 26, 2022
qemu fails when the same `fw_cfg` options is used more than once.
Since the current logic always adds a new option on each machine load
this will fail on the second start.

We can fix this by checking if the option is already set and replace but
I think it is easier to just not commit the option in the config and add
it dynamically on start. User that hit this bug have to recreate the
machine.

[NO NEW TESTS NEEDED]

Fixes containers#14636
Fixes containers#14837

Signed-off-by: Paul Holzinger <[email protected]>
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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. machine
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants