Setup of running GUI applications in a incus container
Tested on Ubuntu 22.04 LTS
Tested on Ubuntu 24.04 LTS
Tested Hardware: GPU, Sound, Microphone, Camera
Tested GUI: X11 apps, Qt-based GUI apps, GTK-based apps, Snap apps, System-tray apps
Tested Drivers: ROCm 6.0.2, ROCm 6.1.2, ROCm 6.1.3
Tested input method: ibus
Tested nested container: docker
Tested AI Tools: Llama.cpp, Ollama, Perplexica, Piper-TTS
sudo apt install -y incus
sudo adduser $LOGNAME incus-admin
newgrp incus-admin
incus admin init
sudo mkdir -p /etc/apt/keyrings
wget -qO - https://pkgs.zabbly.com/key.asc | sudo tee /etc/apt/keyrings/zabbly.asc
sudo nano /etc/apt/sources.list.d/zabbly-incus-stable.sources
Add the following content:
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: jammy
Components: main
Architectures: amd64
Signed-By: /etc/apt/keyrings/zabbly.asc
Run:
sudo apt update
sudo apt install -y incus
sudo adduser $LOGNAME incus-admin
newgrp incus-admin
incus admin init
To list all available images:
incus image list images:
Filter available images, e.g.:
incus image list images:ubuntu
incus image list images:22.04
incus image list images:debian
To filter images that work with cloud-init
:
incus image list images:cloud
Tested on Ubuntu 22.04 LTS
Tested on Ubuntu 24.04 LTS
incus info --resources
To add a device, read https://linuxcontainers.org/incus/docs/main/reference/devices/
incus info --show-log ub
To delete a container:
incus delete mycontainername
sudo apt remove --autoremove incus incus-base
On Ubuntu 22.04, also run:
sudo rm /etc/apt/sources.list.d/zabbly-incus-stable.sources /etc/apt/keyrings/zabbly.asc