I’ve trying to follow the approach offered by @simos on the blog for running x11 inside LXD but the main issue I am facing is that my server is headless.
So, the output of the command: echo $DISPLAY is empty.
Is there a way to still get it running? The approach hasn’t turned out to be fruitful till now for me.
I’d recommend running X11 itself on the host system (no need for a full desktop environment though) as running it directly inside a container would require a LOT of privileges and workarounds to provide all needed hardware access.