Distrobox

https://github.com/89luca89/distrobox

Use any linux distribution inside your terminal.

It manages docker/podman containers to use any linux distro allowing HOME directory of the user, external storage, external USB devices and graphical apps (X11/Wayland), and audio.

1. Share Xorg display

  1. yay xhost
  2. xhost +si:localuser:$USER

Now run any X app in distrobox

2. Create box with init system

For example, ubuntu with systemd to run snapd:

distrobox create --init --root -i docker.io/jrei/systemd-ubuntu

Very importante the --init

Then just enter:

distrobox enter --root systemd-ubuntu

And you can verify how you have systemd.

3. Check supported distros