[note, there is no hash tag ‘toolbox’ defined for posts, the closest is ‘toolbx’]
Each of my development projects has its own user. To work on a project, I run a script that gives me an environment for that project in a shell, or in another program (typically I bring up the other project in emacs
).
I am trying out Silverblue. This is a python project, so instead of using the python virtual environment, I thought I would use’toolbox
. This looks like the preferred method with Silverblue, and it looks like it will work well, as not all installed tools are related to Python.
However, I haven’t been able to get toolbox
to work as the toolbox create
command returns Error: host directory cannot be empty
and does not create a toolbox. Following is more information.
I found an article that suggested,
> export XDG_RUNTIME_DIR="/tmp/.xdg/${UID}"; mkdir -p $XDG_RUNTIME_DIR
And indeed, then toolbox create worked; however, now there is an error preventing entering:
> toolbox -vvv enter mighty_mouse_v2
...
DEBU[0000] Error parsing cgroup: expected 3 fields but got 4: /proc/151924/cgroup
Error: could not find any cgroup in "/proc/151924/cgroup"
DEBU[0000] Shutting down engines
Error: failed to inspect entry point of container mighty_mouse_v2
# rpm-ostree --version
rpm-ostree:
Version: '2023.7'
Git: 06600cc4e215bed584ee71ff34bf5b78a181cab4
Features:
- rust
- compose
- container
- fedora-integration
> printenv
COLUMNS=117
DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/
DISPLAY=:0
EDITOR=emacs
HISTCONTROL=ignoredups
HISTSIZE=1000
HOME=/var/home/<user>-developer
HOSTNAME=TheEternalSunshineOfTheSpotlessMind
INSIDE_EMACS=28.2,comint
LANG=en_US.UTF-8
LC_ALL=en_DK.UTF-8
LESSOPEN=||/usr/bin/lesspipe.sh %s
LOGNAME=<user>-developer
LS_COLORS=
MAIL=/var/spool/mail/<user>-developer
NO_AT_BRIDGE=1
OLDPWD=/var/user_data/<user>-developer
PATH=:/var/user_data/<user>-incommon/iseq_loadable:/var/user_data/<user>-developer/subu/user/iseq_loadable:/usr/local/bin:/usr/bin:/usr/sbin
PPS1=\n$($iseq/Z)[$PROJECT]\n\u@\h§$(pwd)§\n>
PPS2=>>
PS1=\n$($iseq/Z)[$PROJECT]\n\u@\h§$(pwd)§\n>
PS2=>>
PS_FORMAT=user:15,pid,%cpu,%mem,vsz,rss,tty,stat,start,time,command
PWD=/var/user_data/<user>-developer/only-one_v2
SHELL=/bin/bash
SHLVL=1
TERMCAP=
TERM=dumb
TIME_STYLE=long-iso
TZ=UTC
USER_DATA=/var/user_data/<user>-developer
USER=<user>-developer
_=/usr/bin/printenv
XDG_DATA_DIRS=/var/home/<user>-developer/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
> toolbox -vvv create mighty_mouse_v2
DEBU Running as real user ID 2005
DEBU Resolved absolute path to the executable as /usr/bin/toolbox
DEBU Running on a cgroups v2 host
DEBU Looking for sub-GID and sub-UID ranges for user <user>-developer
DEBU TOOLBOX_PATH is /usr/bin/toolbox
DEBU Migrating to newer Podman
DEBU Toolbox config directory is /var/home/<user>-developer/.config/toolbox
INFO[0000] podman filtering at log level debug
DEBU[0000] Called version.PersistentPreRunE(podman --log-level debug version --format json)
DEBU[0000] Using conmon: "/usr/bin/conmon"
DEBU[0000] Initializing boltdb state at /var/home/<user>-developer/.local/share/containers/storage/libpod/bolt_state.db
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /var/home/<user>-developer/.local/share/containers/storage
DEBU[0000] Using run root /tmp/containers-user-2005/containers
DEBU[0000] Using static dir /var/home/<user>-developer/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /tmp/podman-run-2005/libpod/tmp
DEBU[0000] Using volume path /var/home/<user>-developer/.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] Not configuring container store
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime runc initialization failed: no valid executable found for OCI runtime runc: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/crun"
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to log in using a user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 2005` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
INFO[0000] Setting parallel job count to 49
DEBU[0000] Called version.PersistentPostRunE(podman --log-level debug version --format json)
DEBU[0000] Shutting down engines
DEBU Current Podman version is 4.6.2
DEBU Creating runtime directory toolbox
DEBU Old Podman version is 4.6.2
DEBU Migration not needed: Podman version 4.6.2 is unchanged
DEBU Setting up configuration
DEBU Setting up configuration: file /var/home/<user>-developer/.config/containers/toolbox.conf not found
DEBU Resolving container and image names
DEBU Container: ''
DEBU Distribution (CLI): ''
DEBU Image (CLI): ''
DEBU Release (CLI): ''
DEBU Resolved container and image names
DEBU Container: 'fedora-toolbox-38'
DEBU Image: 'fedora-toolbox:38'
DEBU Release: '38'
DEBU Resolving container and image names
DEBU Container: 'mighty_mouse_v2'
DEBU Distribution (CLI): ''
DEBU Image (CLI): ''
DEBU Release (CLI): ''
DEBU Resolved container and image names
DEBU Container: 'mighty_mouse_v2'
DEBU Image: 'fedora-toolbox:38'
DEBU Release: '38'
DEBU Checking if container mighty_mouse_v2 already exists
INFO[0000] podman filtering at log level debug
DEBU[0000] Called exists.PersistentPreRunE(podman --log-level debug container exists mighty_mouse_v2)
DEBU[0000] Using conmon: "/usr/bin/conmon"
DEBU[0000] Initializing boltdb state at /var/home/<user>-developer/.local/share/containers/storage/libpod/bolt_state.db
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /var/home/<user>-developer/.local/share/containers/storage
DEBU[0000] Using run root /tmp/containers-user-2005/containers
DEBU[0000] Using static dir /var/home/<user>-developer/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /tmp/podman-run-2005/libpod/tmp
DEBU[0000] Using volume path /var/home/<user>-developer/.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] Not configuring container store
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Configured OCI runtime runc initialization failed: no valid executable found for OCI runtime runc: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/crun"
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to log in using a user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 2005` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
INFO[0000] Setting parallel job count to 49
INFO[0000] podman filtering at log level debug
DEBU[0000] Called exists.PersistentPreRunE(podman --log-level debug container exists mighty_mouse_v2)
DEBU[0000] Using conmon: "/usr/bin/conmon"
DEBU[0000] Initializing boltdb state at /var/home/<user>-developer/.local/share/containers/storage/libpod/bolt_state.db
DEBU[0000] Overriding run root "/tmp/podman-run-2005/containers" with "/tmp/containers-user-2005/containers" from database
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /var/home/<user>-developer/.local/share/containers/storage
DEBU[0000] Using run root /tmp/containers-user-2005/containers
DEBU[0000] Using static dir /var/home/<user>-developer/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /tmp/podman-run-2005/libpod/tmp
DEBU[0000] Using volume path /var/home/<user>-developer/.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that overlay is supported
DEBU[0000] Cached value indicated that metacopy is not being used
DEBU[0000] Cached value indicated that native-diff is usable
DEBU[0000] backingFs=btrfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
<.. deleted due to accomodate length limitation of Fedora Discussion posts ...>
DEBU[0000] backingFs=btrfs, projectQuotaSupported=false, useNativeDiff=true, usingMetacopy=false
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Configured OCI runtime runc initialization failed: no valid executable found for OCI runtime runc: invalid argument
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: no valid executable found for OCI runtime crun-wasm: invalid argument
DEBU[0000] Using OCI runtime "/usr/bin/crun"
WARN[0000] The cgroupv2 manager is set to systemd but there is no systemd user session available
WARN[0000] For using systemd, you may need to log in using a user session
WARN[0000] Alternatively, you can enable lingering with: `loginctl enable-linger 2005` (possibly as root)
WARN[0000] Falling back to --cgroup-manager=cgroupfs
INFO[0000] Setting parallel job count to 49
DEBU[0000] Failed to add podman to systemd sandbox cgroup: dial unix /run/user/0/bus: connect: permission denied
DEBU[0000] Successfully loaded 1 networks
DEBU[0000] Pulling image registry.fedoraproject.org/fedora-toolbox:38 (policy: missing)
DEBU[0000] Looking up image "registry.fedoraproject.org/fedora-toolbox:38" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Trying "registry.fedoraproject.org/fedora-toolbox:38" ...
DEBU[0000] parsed reference into "[overlay@/var/home/<user>-developer/.local/share/containers/storage+/tmp/containers-user-2005/containers]@bfe872bb72c1922b94e3cdcfb6ae8511d55e98860effa6bb7a76f1acc7a892eb"
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:38" as "registry.fedoraproject.org/fedora-toolbox:38" in local containers storage
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:38" as "registry.fedoraproject.org/fedora-toolbox:38" in local containers storage ([overlay@/var/home/<user>-developer/.local/share/containers/storage+/tmp/containers-user-2005/containers]@bfe872bb72c1922b94e3cdcfb6ae8511d55e98860effa6bb7a76f1acc7a892eb)
DEBU[0000] exporting opaque data as blob "sha256:bfe872bb72c1922b94e3cdcfb6ae8511d55e98860effa6bb7a76f1acc7a892eb"
DEBU[0000] Looking up image "registry.fedoraproject.org/fedora-toolbox:38" in local containers storage
DEBU[0000] Normalized platform linux/amd64 to {amd64 linux [] }
DEBU[0000] Trying "registry.fedoraproject.org/fedora-toolbox:38" ...
DEBU[0000] parsed reference into "[overlay@/var/home/<user>-developer/.local/share/containers/storage+/tmp/containers-user-2005/containers]@bfe872bb72c1922b94e3cdcfb6ae8511d55e98860effa6bb7a76f1acc7a892eb"
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:38" as "registry.fedoraproject.org/fedora-toolbox:38" in local containers storage
DEBU[0000] Found image "registry.fedoraproject.org/fedora-toolbox:38" as "registry.fedoraproject.org/fedora-toolbox:38" in local containers storage ([overlay@/var/home/<user>-developer/.local/share/containers/storage+/tmp/containers-user-2005/containers]@bfe872bb72c1922b94e3cdcfb6ae8511d55e98860effa6bb7a76f1acc7a892eb)
DEBU[0000] exporting opaque data as blob "sha256:bfe872bb72c1922b94e3cdcfb6ae8511d55e98860effa6bb7a76f1acc7a892eb"
DEBU[0000] User mount /:/run/host options [rslave]
DEBU[0000] User mount /dev:/dev options [rslave]
DEBU[0000] User mount /run/dbus/system_bus_socket:/run/dbus/system_bus_socket options []
DEBU[0000] User mount /var/home/<user>-developer:/var/home/<user>-developer options [rslave]
DEBU[0000] User mount /usr/bin/toolbox:/usr/bin/toolbox options [ro]
Error: host directory cannot be empty
DEBU[0000] Shutting down engines
Error: failed to create container mighty_mouse_v2