Is it possible to run some application in the chroot or container but allow DBus interaction with host system?

Solution 1:

Check out the following guide on how to

  1. create a system container with some old version of Ubuntu (like 12.04 or 14.04), and
  2. set it up so that you can run GUI programs from within that system container and get the output on your host

See guide from https://blog.simos.info/how-to-easily-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/ .

The guide has an example on running some old Tcl/Tk utility in a Ubuntu 12.04 system container.