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

[Error] Failure to enter containers created with --init on Guix #1700

Open
Kabouik opened this issue Mar 1, 2025 · 0 comments
Open

[Error] Failure to enter containers created with --init on Guix #1700

Kabouik opened this issue Mar 1, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Kabouik
Copy link

Kabouik commented Mar 1, 2025

Describe the bug

When creating a container with the following command:

 distrobox create --image docker.io/debian:sid --init --name distro-debian --verbose

I then cannot enter it:

$ distrobox enter distro-debian --verbose
[truncated]
+ id=distro-debian
+ [ -e /run/.containerenv ]
+ . /run/.containerenv
+ engine=podman-5.4.0
+ name=distro-debian
+ id=d7e828527747c63af0bf68422420f883de37d890ef620792516d55ceeb8695a2
+ image=docker.io/library/debian:sid
+ imageid=8c6015691b720bb92c066e56161aa1bdce404d63e527d04dd18e7538d2842d22
+ rootless=1
+ graphRootMounted=1
+ [ 1 -eq 0 ]
+ printf distrobox: Setting up init system...\n
distrobox: Setting up init system...
+ findmnt /etc/localtime
+ umount /etc/localtime
+ findmnt /run/systemd/journal
+ findmnt /run/systemd/resolve
+ findmnt /run/systemd/seats
+ umount /run/systemd/seats
+ findmnt /run/systemd/sessions
+ umount /run/systemd/sessions
+ findmnt /run/systemd/users
+ umount /run/systemd/users
+ findmnt /var/lib/systemd/coredump
+ findmnt /var/log/journal
+ umount /var/log/journal
+ rm -f /run/systemd/coredump
+ rm -f /run/systemd/io.system.ManagedOOM
+ rm -f /run/systemd/notify
+ rm -f /run/systemd/private
+ [ -f /etc/localtime ]
+ rm -f /etc/localtime
+ ln -sf /usr/share/zoneinfo/UCT /etc/localtime
+ [ -e /dev/console ]
+ rm -f /var/console
+ mkfifo /var/console
+ sleep 0.5
+ script -c cat /var/console /dev/null
Script started, output log file is '/dev/null'.
+ mount --bind /dev/pts/0 /dev/console
+ [ -e /etc/inittab ]
+ [ -e /etc/rc.conf ]
+ [ -e /etc/init.d ]
+ rm -f /etc/init.d/hwdrivers /etc/init.d/hwclock /etc/init.d/hwdrivers /etc/init.d/modules /etc/init.d/modules-load /etc/init.d/modloop
+ command -v systemctl
/usr/bin/sy

[podman.log](https://github.com/user-attachments/files/19040951/podman.log)

[distrobox-enter.log](https://github.com/user-attachments/files/19040954/distrobox-enter.log)

stemctl
+ UNIT_TARGETS=
		/usr/lib/systemd/system/*.mount
		/usr/lib/systemd/system/console-getty.service
		/usr/lib/systemd/system/[email protected]
		/usr/lib/systemd/system/systemd-machine-id-commit.service
		/usr/lib/systemd/system/systemd-binfmt.service
		/usr/lib/systemd/system/systemd-tmpfiles*
		/usr/lib/systemd/system/systemd-udevd.service
		/usr/lib/systemd/system/systemd-udev-trigger.service
		/usr/lib/systemd/system/systemd-update-utmp*
		/usr/lib/systemd/user/pipewire*
		/usr/lib/systemd/user/wireplumber*
		/usr/lib/systemd/system/suspend.target
		/usr/lib/systemd/system/hibernate.target
		/usr/lib/systemd/system/hybrid-sleep.target
	
+ findmnt -no SOURCE /etc/resolv.conf
+ mount_source=/dev/mapper/cryptroot[/etc/resolv.conf]
+ [ -n /dev/mapper/cryptroot[/etc/resolv.conf] ]
+ echo /dev/mapper/cryptroot[/etc/resolv.conf]
+ grep -q d7e828527747c63af0bf68422420f883de37d890ef620792516d55ceeb8695a2
+ UNIT_TARGETS=
		/usr/lib/systemd/system/*.mount
		/usr/lib/systemd/system/console-getty.service
		/usr/lib/systemd/system/[email protected]
		/usr/lib/systemd/system/systemd-machine-id-commit.service
		/usr/lib/systemd/system/systemd-binfmt.service
		/usr/lib/systemd/system/systemd-tmpfiles*
		/usr/lib/systemd/system/systemd-udevd.service
		/usr/lib/systemd/system/systemd-udev-trigger.service
		/usr/lib/systemd/system/systemd-update-utmp*
		/usr/lib/systemd/user/pipewire*
		/usr/lib/systemd/user/wireplumber*
		/usr/lib/systemd/system/suspend.target
		/usr/lib/systemd/system/hibernate.target
		/usr/lib/systemd/system/hybrid-sleep.target
	
			/usr/lib/systemd/system/systemd-resolved.service
		
+ find /usr/lib/systemd/system/dev-hugepages.mount /usr/lib/systemd/system/dev-mqueue.mount /usr/lib/systemd/system/proc-sys-fs-binfmt_misc.mount /usr/lib/systemd/system/run-lock.mount /usr/lib/systemd/system/sys-fs-fuse-connections.mount /usr/lib/systemd/system/sys-kernel-config.mount /usr/lib/systemd/system/sys-kernel-debug.mount /usr/lib/systemd/system/sys-kernel-tracing.mount /usr/lib/systemd/system/tmp.mount /usr/lib/systemd/system/console-getty.service /usr/lib/systemd/system/[email protected] /usr/lib/systemd/system/systemd-machine-id-commit.service /usr/lib/systemd/system/systemd-binfmt.service /usr/lib/systemd/system/systemd-tmpfiles-clean.service /usr/lib/systemd/system/systemd-tmpfiles-clean.timer /usr/lib/systemd/system/systemd-tmpfiles-setup-dev-early.service /usr/lib/systemd/system/systemd-tmpfiles-setup-dev.service /usr/lib/systemd/system/systemd-tmpfiles-setup.service /usr/lib/systemd/system/systemd-udevd.service /usr/lib/systemd/system/systemd-udev-trigger.service /usr/lib/systemd/system/systemd-update-utmp* /usr/lib/systemd/user/pipewire* /usr/lib/systemd/user/wireplumber* /usr/lib/systemd/system/suspend.target /usr/lib/systemd/system/hibernate.target /usr/lib/systemd/system/hybrid-sleep.target /usr/lib/systemd/system/systemd-resolved.service
+ basename /usr/lib/systemd/system/dev-hugepages.mount
+ systemctl mask dev-hugepages.mount
Created symlink '/etc/systemd/system/dev-hugepages.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/dev-mqueue.mount
+ systemctl mask dev-mqueue.mount
Created symlink '/etc/systemd/system/dev-mqueue.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/proc-sys-fs-binfmt_misc.mount
+ systemctl mask proc-sys-fs-binfmt_misc.mount
Created symlink '/etc/systemd/system/proc-sys-fs-binfmt_misc.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/run-lock.mount
+ systemctl mask run-lock.mount
Created symlink '/etc/systemd/system/run-lock.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/sys-fs-fuse-connections.mount
+ systemctl mask sys-fs-fuse-connections.mount
Created symlink '/etc/systemd/system/sys-fs-fuse-connections.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/sys-kernel-config.mount
+ systemctl mask sys-kernel-config.mount
Created symlink '/etc/systemd/system/sys-kernel-config.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/sys-kernel-debug.mount
+ systemctl mask sys-kernel-debug.mount
Created symlink '/etc/systemd/system/sys-kernel-debug.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/sys-kernel-tracing.mount
+ systemctl mask sys-kernel-tracing.mount
Created symlink '/etc/systemd/system/sys-kernel-tracing.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/tmp.mount
+ systemctl mask tmp.mount
Created symlink '/etc/systemd/system/tmp.mount' → '/dev/null'.
+ basename /usr/lib/systemd/system/console-getty.service
+ systemctl mask console-getty.service
Created symlink '/etc/systemd/system/console-getty.service' → '/dev/null'.
+ basename /usr/lib/systemd/system/[email protected]
+ systemctl mask [email protected]
Created symlink '/etc/systemd/system/[email protected]' → '/dev/null'.
+ basename /usr/lib/systemd/system/systemd-machine-id-commit.service
+ systemctl mask systemd-machine-id-commit.service
Created symlink '/etc/systemd/system/systemd-machine-id-commit.service' → '/dev/null'.
+ basename /usr/lib/systemd/system/systemd-binfmt.service
+ systemctl mask systemd-binfmt.service
Created symlink '/etc/systemd/system/systemd-binfmt.service' → '/dev/null'.
+ basename /usr/lib/systemd/system/systemd-tmpfiles-clean.service
+ systemctl mask systemd-tmpfiles-clean.service
Created symlink '/etc/systemd/system/systemd-tmpfiles-clean.service' → '/dev/null'.
+ basename /usr/lib/systemd/system/systemd-tmpfiles-clean.timer
+ systemctl mask systemd-tmpfiles-clean.timer
Created symlink '/etc/systemd/system/systemd-tmpfiles-clean.timer' → '/dev/null'.
+ basename /usr/lib/systemd/system/systemd-tmpfiles-setup-dev-early.service
+ systemctl mask systemd-tmpfiles-setup-dev-early.service
Created symlink '/etc/systemd/system/systemd-tmpfiles-setup-dev-early.service' → '/dev/null'.
+ basename /usr/lib/systemd/system/systemd-tmpfiles-setup-dev.service
+ systemctl mask systemd-tmpfiles-setup-dev.service
Created symlink '/etc/systemd/system/systemd-tmpfiles-setup-dev.service' → '/dev/null'.
+ basename /usr/lib/systemd/system/systemd-tmpfiles-setup.service
+ systemctl mask systemd-tmpfiles-setup.service
Created symlink '/etc/systemd/system/systemd-tmpfiles-setup.service' → '/dev/null'.
+ basename /usr/lib/systemd/system/suspend.target
+ systemctl mask suspend.target
Created symlink '/etc/systemd/system/suspend.target' → '/dev/null'.
+ basename /usr/lib/systemd/system/hibernate.target
+ systemctl mask hibernate.target
Created symlink '/etc/systemd/system/hibernate.target' → '/dev/null'.
+ basename /usr/lib/systemd/system/hybrid-sleep.target
+ systemctl mask hybrid-sleep.target
Created symlink '/etc/systemd/system/hybrid-sleep.target' → '/dev/null'.
+ [ -e /usr/lib/systemd/system/[email protected] ]
+ cat
+ chmod +x /usr/local/bin/user-integration
+ cat
+ printf distrobox: Firing up init system...\n
distrobox: Firing up init system...
+ [ -e /usr/lib/systemd/systemd ]
+ [ -e /usr/lib/systemd/systemd ]
+ exec /usr/lib/systemd/systemd --system --log-target=console --unit=multi-user.target
+ sh -c timeout=120 && sleep 1 && while [ "${timeout}" -gt 0 ]; do 	   systemctl is-system-running | grep -E 'running|degraded' && break; 		echo 'waiting for systemd to come up...\n' && sleep 1 && timeout=$(( timeout -1 )); 	done && 	systemctl start [email protected] && 	systemctl start [email protected] && 	loginctl enable-linger mat || : && 	echo container_setup_done
Failed to find module 'autofs4'
systemd 257.3-1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +IPE +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF -XKBCOMMON -UTMP +SYSVINIT +LIBARCHIVE)
Detected virtualization container-other.
Detected architecture x86-64.

Welcome to Debian GNU/Linux trixie/sid!

Failed to open /dev/tty0, ignoring: Permission denied
Failed to create /init.scope control group: Permission denied
Failed to allocate manager object: Permission denied
[!!!!!!] Failed to allocate manager object.
Exiting PID 1...
DEBU[0000] Called logs.PersistentPostRunE(/gnu/store/0b5wy3l0d19ki96xp6zpy39dk6mcciis-podman-5.4.0/bin/podman --log-level debug logs distro-debian) 
DEBU[0000] Shutting down engines                        
INFO[0000] Received shutdown.Stop(), terminating!        PID=21257

To Reproduce
Run the above creation and enter command on a Guix machine.

Logs
distrobox-enter.txt
podman.txt

Desktop (please complete the following information):

  • container_manager="podman" in ~./config/distrobox/distrobox.conf
  • podman 5.4.0
  • distrobox v1.8.1.2
  • Host: GNU Guix System (similar to NixOS)
  • Installed distrobox using the Guix package manager.

Additional context
Guix is a distribution similar to NixOS, with software installed in unique read-only folders (hash) in /gnu/store. It uses declarative configuration and shepherd as a systemd replacement.

@Kabouik Kabouik added the bug Something isn't working label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant