User Tools

Incus Tips

With the license changes made by Canonical, I've migrated my virtualization environment over to Incus.


Remote Display in Incus Container

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

Add Shared Folder

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

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information