Skip to main content

Installing Incus on Ubuntu 22.04

APT Repo

Right now Ubuntu does not have Incus in it's default repos, therefore need to add to use1:

sudo mkdir -p /etc/apt/keyrings/
sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc

For stable:

sudo sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-stable.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc

EOF'

For Daily (If you feel brave!!):

sudo sh -c 'cat <<EOF > /etc/apt/sources.list.d/zabbly-incus-daily.sources
Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/daily
Suites: $(. /etc/os-release && echo ${VERSION_CODENAME})
Components: main
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/zabbly.asc

EOF'

Install Incus

APT

Once repo installed run usual apt commands:

sudo apt update

Then install with:

sudo apt install incus

Initial Setup

Add user to incus-admin group

Incus requires the user to be in the incus-admin group add like so:

sudo usermod -aG incus-admin andy

Run the default init

For a lab environment the defaults are good enough. Look through the Incus and LXD documents for a more production ready setup.

incus admin init

Footnotes

  1. Instructions from GitHub repo https://github.com/zabbly/incus check for latest updates