Skip to content

Podman machine rootless connection fails due to storage.conf permissions in FCOS image #29043

Description

@Honny1

Workeround:

podman machine ssh "<machine-name>" "sudo chmod 755 /etc/containers" && podman machine "<machine-name>" stop && podman machine start "<machine-name>"

Issue Description

After upgrading to podman 6 podman machine start, the rootless user-level podman.socket inside the VM immediately enters a crash loop and systemd kills it with trigger-limit-hit. The root cause is that /etc/containers/storage.conf inside the FCOS image has incorrect permissions, causing every podman.service invocation to fail with open /etc/containers/storage.conf: permission denied.

Steps to reproduce the issue

Steps to reproduce the issue

  1. podman machine init test
  2. podman machine start test
  3. podman -c test info

Describe the results you received

Host:

$ podman machine start test
Starting machine "test"
Warning: The machine being started is not set as your default Podman connection.
As such, Podman commands may not work correctly.
Set the default Podman connection to this machine? [y/N] n
Default system connection will remain unchanged

This machine is currently configured in rootless mode. If your containers
require root permissions (e.g. ports < 1024), or if you run into compatibility
issues with non-podman clients, you can switch using the following command:

	podman machine set --rootful test2

WARN[0013] API socket failed ping test
API forwarding listening on: /var/run/docker.sock
Docker API clients default to this address. You do not need to set DOCKER_HOST.

Machine "test2" started successfully
$ podman -c test info
OS: darwin/arm64
buildOrigin: pkginstaller
provider: libkrun
version: 6.0.0

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 socket: failed to connect: dial tcp 127.0.0.1:52768: connect: connection refused

Inside the VM:

core@localhost:~$ systemctl --user status podman.socket
× podman.socket - Podman API Socket
     Loaded: loaded (/usr/lib/systemd/user/podman.socket; enabled; preset: disabled)
     Active: failed (Result: trigger-limit-hit) since Thu 2026-06-25 15:24:30 CEST; 21min ago
   Duration: 751ms
 Invocation: b178aff8be6f47a9b8a3b8123e05a9c6
   Triggers: ● podman.service
       Docs: man:podman-system-service(1)
     Listen: /run/user/501/podman/podman.sock (Stream)

Jun 25 15:24:30 localhost.localdomain systemd[1693]: Listening on podman.socket - Podman API Socket.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.socket: Trigger limit hit, refusing further activation.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.socket: Failed with result 'trigger-limit-hit'.

core@localhost:~$ journalctl --user -u podman.socket -u podman.service --no-pager -l
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Listening on podman.socket - Podman API Socket.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[1897]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[1912]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[1952]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[1964]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[1976]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[1994]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2001]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2007]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2023]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2030]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2037]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2045]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2052]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2059]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2066]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2073]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2080]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2087]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Starting podman.service - Podman API Service...
Jun 25 15:24:30 localhost.localdomain systemd[1693]: Started podman.service - Podman API Service.
Jun 25 15:24:30 localhost.localdomain podman[2094]: Failed to obtain podman configuration: open /etc/containers/storage.conf: permission denied
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Main process exited, code=exited, status=1/FAILURE
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.service: Failed with result 'exit-code'.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.socket: Trigger limit hit, refusing further activation.
Jun 25 15:24:30 localhost.localdomain systemd[1693]: podman.socket: Failed with result 'trigger-limit-hit'.

Describe the results you expected

podman machine start should result in a working machine where podman info connects successfully. /etc/containers/storage.conf should be world-readable inside the FCOS image.

podman info output

OS: darwin/arm64
buildOrigin: pkginstaller
provider: libkrun
version: 6.0.0

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.machinetriagedIssue has been triaged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions