-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.machinetriagedIssue has been triagedIssue has been triaged
Description
Issue Description
I am attempting to run podman machine init inside a rootful/rootless podman container. I've attempted the following configurations:
rootless container w/ systemd
rootless container w/o systemd
rootful container w/o systemd
Steps to reproduce the issue
Steps to reproduce the issue
podman run -it --rm --privileged --security-opt label=disable quay.io/fedora/fedora:latest bashdnf5 install podman-machine ssh-keygenmkdir -p /run/user/1000 && chown 1000:1000 /run/user/1000useradd -m core && su -l coreexport XDG_RUNTIME_DIR=/run/user/1000podman --log-level=trace machine init
You can also do this in a toolbox/distrobox resulting in the same.
Describe the results you received
I end getting the following each time:
[core@d89fb2fc8a77 ~]$ podman --log-level=trace machine init
INFO[0000] podman filtering at log level trace
DEBU[0000] Using Podman machine with `qemu` virtualization provider
DEBU[0000] socket length for /home/core/.config/containers/podman/machine/qemu is 49
DEBU[0000] socket length for /home/core/.local/share/containers/podman/machine/qemu is 54
DEBU[0000] socket length for /home/core/.local/share/containers/podman/machine/qemu/cache is 60
DEBU[0000] socket length for /run/user/1000/podman is 21
DEBU[0000] socket length for /home/core/.config/containers/podman/machine/qemu is 49
DEBU[0000] socket length for /home/core/.local/share/containers/podman/machine/qemu is 54
DEBU[0000] socket length for /home/core/.local/share/containers/podman/machine/qemu/cache is 60
DEBU[0000] socket length for /run/user/1000/podman is 21
DEBU[0000] socket length for /home/core/.config/containers/podman/machine/qemu/podman-machine-default.json is 77
DEBU[0000] socket length for /home/core/.local/share/containers/podman/machine/qemu/podman-machine-default-amd64.qcow2 is 89
Looking up Podman Machine image at quay.io/podman/machine-os:5.4 to create VM
DEBU[0000] Using registries.d directory /etc/containers/registries.d
DEBU[0000] Loading registries configuration "/etc/containers/registries.conf"
DEBU[0000] Loading registries configuration "/etc/containers/registries.conf.d/000-shortnames.conf"
DEBU[0000] Trying to access "quay.io/podman/machine-os:5.4"
DEBU[0000] No credentials matching quay.io/podman/machine-os found in /run/user/1000/containers/auth.json
DEBU[0000] No credentials matching quay.io/podman/machine-os found in /home/core/.config/containers/auth.json
DEBU[0000] No credentials matching quay.io/podman/machine-os found in /home/core/.docker/config.json
DEBU[0000] No credentials matching quay.io/podman/machine-os found in /home/core/.dockercfg
DEBU[0000] No credentials for quay.io/podman/machine-os found
DEBU[0000] No signature storage configuration found for quay.io/podman/machine-os:5.4, using built-in default file:///home/core/.local/share/containers/sigstore
DEBU[0000] Looking for TLS certificates and private keys in /etc/docker/certs.d/quay.io
DEBU[0000] GET https://quay.io/v2/
DEBU[0000] Ping https://quay.io/v2/ status 401
DEBU[0000] GET https://quay.io/v2/auth?scope=repository%3Apodman%2Fmachine-os%3Apull&service=quay.io
DEBU[0000] Increasing token expiration to: 60 seconds
DEBU[0000] GET https://quay.io/v2/podman/machine-os/manifests/5.4
DEBU[0000] Content-Type from manifest GET is "application/vnd.oci.image.index.v1+json"
DEBU[0000] found image in digest: "sha256:240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8"
DEBU[0000] GET https://quay.io/v2/podman/machine-os/manifests/sha256:240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8
DEBU[0002] Content-Type from manifest GET is "application/vnd.oci.image.manifest.v1+json"
DEBU[0002] original artifact file name: podman-machine.x86_64.qemu.qcow2.zst
DEBU[0002] GET https://quay.io/v2/podman/machine-os/manifests/sha256:240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8
DEBU[0007] Content-Type from manifest GET is "application/vnd.oci.image.manifest.v1+json"
DEBU[0007] original artifact file name: podman-machine.x86_64.qemu.qcow2.zst
DEBU[0007] socket length for /home/core/.local/share/containers/podman/machine/qemu/cache/240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8.qcow2.zst is 135
DEBU[0007] socket length for /home/core/.local/share/containers/podman/machine/qemu/cache/240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8 is 125
DEBU[0007] Using registries.d directory /etc/containers/registries.d
DEBU[0007] Trying to access "quay.io/podman/machine-os@sha256:240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8"
DEBU[0007] No credentials matching quay.io/podman/machine-os found in /run/user/1000/containers/auth.json
DEBU[0007] No credentials matching quay.io/podman/machine-os found in /home/core/.config/containers/auth.json
DEBU[0007] No credentials matching quay.io/podman/machine-os found in /home/core/.docker/config.json
DEBU[0007] No credentials matching quay.io/podman/machine-os found in /home/core/.dockercfg
DEBU[0007] No credentials for quay.io/podman/machine-os found
DEBU[0007] No signature storage configuration found for quay.io/podman/machine-os@sha256:240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8, using built-in default file:///home/core/.local/share/containers/sigstore
DEBU[0007] Looking for TLS certificates and private keys in /etc/docker/certs.d/quay.io
DEBU[0007] GET https://quay.io/v2/
DEBU[0007] Ping https://quay.io/v2/ status 401
DEBU[0007] GET https://quay.io/v2/auth?scope=repository%3Apodman%2Fmachine-os%3Apull&service=quay.io
DEBU[0007] Increasing token expiration to: 60 seconds
DEBU[0007] GET https://quay.io/v2/podman/machine-os/manifests/sha256:240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8
DEBU[0008] Content-Type from manifest GET is "application/vnd.oci.image.manifest.v1+json"
DEBU[0008] Using SQLite blob info cache at /home/core/.local/share/containers/cache/blob-info-cache-v1.sqlite
DEBU[0008] IsRunningImageAllowed for image docker:quay.io/podman/machine-os@sha256:240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8
DEBU[0008] Using default policy section
DEBU[0008] Requirement 0: allowed
DEBU[0008] Overall: allowed
Getting image source signatures
DEBU[0008] Reading /home/core/.local/share/containers/sigstore/podman/machine-os@sha256=240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8/signature-1
DEBU[0008] Not looking for sigstore attachments: disabled by configuration
DEBU[0008] Manifest has MIME type application/vnd.oci.image.manifest.v1+json, ordered candidate list [application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json]
DEBU[0008] ... will first try using the original manifest unmodified
DEBU[0008] Checking if we can reuse blob sha256:d982f2a01613fbd566d81266a619f7bad958268def3a3f924a8e209f48578d75: general substitution = true, compression for MIME type "application/zstd" = false
DEBU[0008] Downloading /v2/podman/machine-os/blobs/sha256:d982f2a01613fbd566d81266a619f7bad958268def3a3f924a8e209f48578d75
DEBU[0008] GET https://quay.io/v2/podman/machine-os/blobs/sha256:d982f2a01613fbd566d81266a619f7bad958268def3a3f924a8e209f48578d75
Copying blob d982f2a01613 [--------------------------------------] 0.0b / 940.5MiB | 0.0 b/s
DEBU[0008] Detected compression format zstd
DEBU[0008] Compression change for blob sha256:d982f2a01613fbd566d81266a619f7bad958268def3a3f924a8e209f48578d75 ("application/zstd") not supported
Copying blob d982f2a01613 done |
DEBU[0112] Downloading /v2/podman/machine-os/blobs/sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
DEBU[0112] GET https://quay.io/v2/auth?scope=repository%3Apodman%2Fmachine-os%3Apull&service=quay.io
Copying config 44136fa355 [--------------------------------------] 0.0b / 2.0b | 0.0 b/s
DEBU[0113] Increasing token expiration to: 60 seconds
DEBU[0113] GET https://quay.io/v2/podman/machine-os/blobs/sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8aCopying config 44136fa355 [--------------------------------------] 0.0b / 2.0b | 0.0 b/s
DEBU[0114] No compression detected
DEBU[0114] Compression change for blob sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a ("application/vnd.oci.empty.v1+json") not supported
Copying config 44136fa355 done |
Writing manifest to image destination
DEBU[0114] socket length for /home/core/.local/share/containers/podman/machine/qemu/cache/240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8 is 125
DEBU[0114] socket length for /home/core/.local/share/containers/podman/machine/qemu/cache/240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8.qcow2.zst is 135
d982f2a01613fbd566d81266a619f7bad958268def3a3f924a8e209f48578d75
DEBU[0114] Detected compression format zstd
Extracting compressed file: podman-machine-default-amd64.qcow2: done
DEBU[0118] cleaning cached file: /home/core/.local/share/containers/podman/machine/qemu/cache/240859e1e722e5d0c95d2744fe671f5aa3660809e928885cf7e513264225bcf8
DEBU[0118] --> imagePath is "/home/core/.local/share/containers/podman/machine/qemu/podman-machine-default-amd64.qcow2"
DEBU[0118] socket length for /home/core/.config/containers/podman/machine/qemu/podman-machine-default.ign is 76
Error: exit status 1
DEBU[0119] Shutting down engines
Describe the results you expected
machine to init / start and be able to used with podman --remote
podman info output
host:
arch: amd64
buildahVersion: 1.39.4
cgroupControllers:
- cpu
- io
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon-2.1.13-1.fc41.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.1.13, commit: '
cpuUtilization:
idlePercent: 96.63
systemPercent: 1.24
userPercent: 2.12
cpus: 22
databaseBackend: sqlite
distribution:
codename: Archaeopteryx
distribution: bluefin
variant: bluefin
version: "41"
eventLogger: journald
freeLocks: 2035
hostname: bluefin
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 524288
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 524288
size: 65536
kernel: 6.13.6-200.fc41.x86_64
linkmode: dynamic
logDriver: journald
memFree: 13052370944
memTotal: 66841563136
networkBackend: netavark
networkBackendInfo:
backend: netavark
dns:
package: aardvark-dns-1.14.0-1.fc41.x86_64
path: /usr/libexec/podman/aardvark-dns
version: aardvark-dns 1.14.0
package: netavark-1.14.1-1.fc41.x86_64
path: /usr/libexec/podman/netavark
version: netavark 1.14.1
ociRuntime:
name: crun
package: crun-1.21-1.fc41.x86_64
path: /usr/bin/crun
version: |-
crun version 1.21
commit: 10269840aa07fb7e6b7e1acff6198692d8ff5c88
rundir: /run/user/1000/crun
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
os: linux
pasta:
executable: /usr/bin/pasta
package: passt-0^20250320.g32f6212-2.fc41.x86_64
version: ""
remoteSocket:
exists: true
path: /run/user/1000/podman/podman.sock
rootlessNetworkCmd: pasta
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: true
serviceIsRemote: false
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns-1.3.1-1.fc41.x86_64
version: |-
slirp4netns version 1.3.1
commit: e5e368c4f5db6ae75c2fce786e31eef9da6bf236
libslirp: 4.8.0
SLIRP_CONFIG_VERSION_MAX: 5
libseccomp: 2.5.5
swapFree: 8589930496
swapTotal: 8589930496
uptime: 6h 0m 24.00s (Approximately 0.25 days)
variant: ""
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries:
search:
- registry.fedoraproject.org
- registry.access.redhat.com
- docker.io
store:
configFile: /var/home/m2/.config/containers/storage.conf
containerStore:
number: 3
paused: 0
running: 3
stopped: 0
graphDriverName: overlay
graphOptions: {}
graphRoot: /var/home/m2/.local/share/containers/storage
graphRootAllocated: 1998678130688
graphRootUsed: 296319758336
graphStatus:
Backing Filesystem: btrfs
Native Overlay Diff: "true"
Supports d_type: "true"
Supports shifting: "false"
Supports volatile: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 28
runRoot: /run/user/1000/containers
transientStore: false
volumePath: /var/home/m2/.local/share/containers/storage/volumes
version:
APIVersion: 5.4.2
BuildOrigin: Fedora Project
Built: 1743552000
BuiltTime: Tue Apr 1 20:00:00 2025
GitCommit: be85287fcf4590961614ee37be65eeb315e5d9ff
GoVersion: go1.23.7
Os: linux
OsArch: linux/amd64
Version: 5.4.2Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
running inside podman rootless/rootful w/ and w/o systemd as init result in failures.
running inside docker w/o systemd as results in a failure.
Additional information
n/a
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.machinetriagedIssue has been triagedIssue has been triaged