You are not logged in.

#1 2025-09-29 15:30:28

paradiseofmagic
Member
Registered: 2025-09-29
Posts: 1

Distrobox OCI permission error with rootless Podman

Whenever I try to enter a container in Distrobox it throws this error.

"$ distrobox enter ubuntu

Error: unable to start container "3c009ebd8cef6d18a197d2b29374ea9f16c53e92568a43b21df644803228a643": runc: runc create failed: unable to start container process: error during container init: error mounting "/dev/vboxusb/001/002" to rootfs at "/dev/vboxusb/001/002": create mountpoint for /dev/vboxusb/001/002 mount: lstat /home/paradise/.local/share/containers/storage/overlay/853379d556975465e8aa94a9926660ce35015dd050788211e9d45493f53aeb8c/merged//dev/vboxusb/001: permission denied: OCI permission denied"

However I am able to run containers with Podman without root.
"$ podman run -it --rm ubuntu bash -c "echo hello world"
hello world"

An Arch Forum post(from the Podman wiki page) has a similar error for Podman but, the solution listed there doesn't work.
https://bbs.archlinux.org/viewtopic.php?id=253966

System info:
podman info
host:
  arch: amd64
  buildahVersion: 1.41.4
  cgroupControllers:
  - cpu
  - memory
  - pids
  cgroupManager: systemd
  cgroupVersion: v2
  conmon:
    package: conmon-1:2.1.13-1
    path: /usr/bin/conmon
    version: 'conmon version 2.1.13, commit: 82de887596ed8ee6d9b2ee85e4f167f307bb569b'
  cpuUtilization:
    idlePercent: 91.17
    systemPercent: 5.75
    userPercent: 3.08
  cpus: 16
  databaseBackend: sqlite
  distribution:
    distribution: arch
    version: unknown
  eventLogger: journald
  freeLocks: 2040
  hostname: archofparadise
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 100000
      size: 65536
  kernel: 6.16.8-arch3-1
  linkmode: dynamic
  logDriver: journald
  memFree: 777592832
  memTotal: 32963022848
  networkBackend: netavark
  networkBackendInfo:
    backend: netavark
    dns:
      package: aardvark-dns-1.16.0-1
      path: /usr/lib/podman/aardvark-dns
      version: aardvark-dns 1.16.0
    package: netavark-1.16.1-1
    path: /usr/lib/podman/netavark
    version: netavark 1.16.1
  ociRuntime:
    name: runc
    package: runc-1.3.1-1
    path: /usr/bin/runc
    version: |-
      runc version 1.3.1
      spec: 1.2.1
      go: go1.24.6
      libseccomp: 2.5.6
  os: linux
  pasta:
    executable: /usr/bin/pasta
    package: passt-2025_09_19.623dbf6-1
    version: |
      pasta 2025_09_19.623dbf6
      Copyright Red Hat
      GNU General Public License, version 2 or later
        <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
      This is free software: you are free to change and redistribute it.
      There is NO WARRANTY, to the extent permitted by law.
  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: /etc/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: false
  slirp4netns:
    executable: ""
    package: ""
    version: ""
  swapFree: 4294922240
  swapTotal: 4294963200
  uptime: 4h 12m 35.00s (Approximately 0.17 days)
  variant: ""
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries: {}
store:
  configFile: /home/paradise/.config/containers/storage.conf
  containerStore:
    number: 2
    paused: 0
    running: 0
    stopped: 2
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/paradise/.local/share/containers/storage
  graphRootAllocated: 344458027008
  graphRootUsed: 58180448256
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Supports shifting: "false"
    Supports volatile: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 2
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/paradise/.local/share/containers/storage/volumes
version:
  APIVersion: 5.6.1
  Built: 1757054398
  BuiltTime: Fri Sep  5 08:39:58 2025
  GitCommit: 1e2b2315150b2ffa0971596fb5da8cd83f3ce0e1
  GoVersion: go1.24.6
  Os: linux
  OsArch: linux/amd64
  Version: 5.6.1

Something of note.
Distrobox works with Docker, however rootful Podman can only install the OpenSuse toolbox correctly not Ubuntu 24.04.

Podman version: 5.6.1
Distrobox version:1.8.1.2

Last edited by paradiseofmagic (2025-09-29 15:31:23)

Offline

Board footer

Powered by FluxBB