Before we install Incus, we need to install the following packages:
sudo apt install qemu-kvm virt-manager virtinst libvirt-clients bridge-utils libvirt-daemon-system -y
Note: To access the latest features in Incus, we must install it from the Zabbly daily repository. Ubuntu 22.04 doesn’t support Incus installation out of the box, so we must install it through the Zabbly repository.
You can add the package repository at /etc/apt/sources.list.d/zabbly-incus-daily.sources.
Run the following commands to add the daily repository:
sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc
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'
Update your repository list with:
sudo apt update
Then to install Incus, run:
sudo apt install incus
The repository also includes the following packages:
incus-client, a package containing only the CLI tool, useful when only managing remote servers
incus-ui-canonical, a package containing a rebranded version of the LXD web interface for use with Incus
Fedora:
sudo dnf install @virtualization incus
Access control for Incus is based on group membership. The root user and all members of the incus-admin group can interact with the local daemon.
Add the current user to the incus admin group
sudo usermod -a -G incus-admin $USER
Append the following to the subordinate User id and group id file
echo "0:1000000:1000000000" | sudo tee /etc/subuid /etc/subgid
Enable the daemon on boot
sudo systemctl enable incus
Then reboot.
Enter the following command to start an instance:
incus start <instance_name>
Enter the following command to stop an instance:
incus stop <instance_name>
Enter the following command to delete an instance:
incus delete <instance_name>