Run GUI Apps in Incus Containers

Wayland and X11 Only:

This method is mostly for Newer Display Methods like PopOS!/Ubuntu 24.04 and higher.

Prerequisites

The following commands are intended for the Host Machine

Create a new Incus Profile for GUI interface:

The following commands are intended for the Host Machine

Configure the new Profile:

The following commands are intended for the Host Machine

This should open the profile file in a nano like interface, the final profile should like the following:

Save this file using Ctrl + O and then exit using Ctrl + X

Add the Profile to a Container:

The following commands are intended for the Host Machine

Assuming that you have a container called container0, append the gui profile using:

Validation

The following commands are intended for the Container

Assuming the user of your Container is ubuntu

Login to the Container:

Install X11 Apps:

Run Xeyes and XClock

Output:

The eyes move to the relative direction of the cursor...Cool !

Output

It Syncs with the System Clock

X11 Only:

This method is mostly for Older Display Methods like PopOS!/Ubuntu 22.04 and lower.

Prerequisites

The following commands are intended for the Host Machine

Create a new Incus Profile for GUI interface:

The following commands are intended for the Host Machine

Configure the new Profile:

The following commands are intended for the Host Machine

This should open the profile file in a nano like interface, the final profile should like the following:

Save this file using Ctrl + O and then exit using Ctrl + X

Add the Profile to a Container:

The following commands are intended for the Host Machine

Assuming that you have a container called container0, append the gui profile using:

Validation

The following commands are intended for the Container

Assuming the user of your Container is ubuntu

Login to the Container:

Install X11 Apps:

Run Xeyes and XClock

Output:

The eyes move to the relative direction of the cursor...Cool !

Output

It Syncs with the System Clock

Reply

or to participate.