With the license changes made by Canonical, I've migrated my virtualization environment over to Incus.
I recently needed to include an X11 desktop environment in one of my containers. I wanted to capture this simple solution provided by nanjj over at https://discuss.linuxcontainers.org/t/running-x11-software-in-incus-container/18180/6
You first want to create a user in the container then install the following:
% sudo apt-get install xfce4 xrdp % sudo systemctl start xrdp.service
The following adds a shared folder to an instance. The shift=true handles permissions and requires a 6.x linux kernel.
incus config device add INSTANCE CONFIG_NAME disk source=FS_PATH_FROM_INCUS_SERVER path=MOUNT_POINT_IN_INSTANCE shift=true