How To Install Incus on Fedora 45

Install Incus on Fedora 45

A server that runs a dozen services on bare metal gets fragile fast. One dependency upgrade breaks another application. A test environment drifts away from production. Someone needs a throwaway Debian box at 5 PM on a Friday, and the answer is a ticket and a three-day wait. System containers and lightweight virtual machines fix most of this, and Incus is one of the cleanest ways to run them on Linux today.

Incus is a community-driven container and VM manager that grew out of the LXD lineage. It manages full Linux systems in containers or virtual machines, and it is built around a REST API, so everything you do at the command line can also be scripted or remotely driven. Fedora 45 makes the entry point easy, because Incus and its dependencies are packaged in the distribution itself. No snaps, no third-party repository, no compiling.

Easy to install does not mean easy to get right, though. Storage backend choices cannot be changed painlessly later. Firewalld can quietly strangle container networking. UID mapping, SELinux, and kernel limits all bite people who rush the first hour. This guide walks through the whole path on Fedora 45: installation, initialization, storage, networking, first instances, firewall configuration, security, tuning, and the failures that show up most often in real deployments.

What Incus Is and When It Fits

Incus runs two kinds of instances. System containers share the host kernel, boot a full init system, and behave like a lightweight server. Virtual machines use QEMU and KVM, with their own kernel. Both are managed through the same client, the same profiles, and the same storage and network objects.

That unified model is the real selling point. A team can run an Alpine container for a small proxy, an AlmaLinux container for a legacy application, and a Windows or BSD VM next to them, all with one tool.

Typical use cases:

  • Consolidating several small services onto one dedicated server without Docker’s application-container model.
  • Building reproducible dev and CI environments that start in seconds.
  • Hosting isolated tenants or client sites on a single box.
  • Testing configuration management, such as Ansible roles, against many distributions before touching production.
  • Running a homelab where containers and VMs coexist.

If the workload is a single stateless microservice, Docker or Podman is probably the simpler fit. If the workload is “a whole server, but smaller”, Incus is hard to beat.

Prerequisites Before You Install

Check a few things first. It takes two minutes and saves an afternoon.

  • Fedora 45 installed (Server or Workstation), fully updated.
  • A user with sudo rights.
  • At least 2 GB of RAM for experimenting, and much more for real workloads.
  • Virtualization extensions enabled in firmware if you plan to run VMs.
  • Free disk space or a spare block device for the storage pool.

Update the system and confirm the release:

sudo dnf upgrade --refresh -y
cat /etc/fedora-release
uname -r

Reboot if the kernel was updated. Running containers on a kernel that is not the one currently installed leads to confusing behavior later.

To check hardware virtualization support for VMs:

lscpu | grep -i virtualization
ls -l /dev/kvm

If /dev/kvm is missing on a physical machine, enable VT-x or AMD-V in the BIOS. On a cloud VPS, nested virtualization must be supported by the provider. Containers work either way. Only VMs need KVM.

Which Incus Version Will You Get on Fedora 45?

This matters more than most guides admit. The Fedora package tracker lists Incus 6.23-3 for Fedora 45, while Rawhide carries 7.0.0. The upstream project now maintains long term support branches (7.0 and 6.0) alongside the 7.x feature releases. So the stock Fedora package is not necessarily the newest upstream release.

You have two realistic options:

Option Source Strength Trade-off
Fedora repository Official Fedora packages Signed, tested with the distro, simple updates Can lag behind upstream
Community COPR Third-party build Tracks upstream releases quickly Not official, trust the maintainer

One community COPR advertises that new Incus releases are packaged shortly after upstream release, without waiting for the Fedora update cycle. A forum thread about Incus 7.x on Fedora also points to a COPR repository that is automated and includes the web UI package. These are unofficial, so for production hosts the distro package is the conservative default. Reach for COPR only when a specific feature or fix justifies the extra trust.

Step 1: Install Incus With dnf

The official documentation for Fedora is refreshingly short: install the package with dnf.

sudo dnf install incus

The package set is split. You will see names such as incus, incus-client, and incus-agent in the repository. The main package pulls in the daemon and the client. Optional extras such as incus-tools provide helpers like the migration utility. Install them if you plan to import existing machines:

sudo dnf install incus-tools

Verify what landed:

rpm -q incus
incus --version

Step 2: Enable and Start the Service

Installation does not necessarily start the daemon. Enable it so it survives reboots:

sudo systemctl enable --now incus.socket incus.service
systemctl status incus --no-pager

On a headless server, confirm the socket exists:

ls -l /var/lib/incus/unix.socket

If the service refuses to start, jump to the troubleshooting section. The journal is always the first stop:

sudo journalctl -u incus -b --no-pager | tail -50

Step 3: Configure Subordinate UID and GID Ranges

Unprivileged containers are the default, and they depend on subordinate ID ranges for root. Without them, instance creation fails with mapping errors. Check the current state:

grep root /etc/subuid /etc/subgid

If there is no entry for root, add one:

echo "root:1000000:1000000000" | sudo tee -a /etc/subuid
echo "root:1000000:1000000000" | sudo tee -a /etc/subgid
sudo systemctl restart incus

Why a billion IDs? Each container gets its own slice of the range, and a generous allocation means you can run many isolated containers, each with a full 65536-wide mapping, without ever colliding. Starting at 1,000,000 keeps the range clear of ordinary user IDs, which sit well below that.

Step 4: Grant Your User Access

Two groups matter:

  • incus-admin: full control of the daemon. This is effectively root-equivalent on the host.
  • incus: restricted access, scoped to a per-user project.

For a personal admin account:

sudo usermod -aG incus-admin $USER
newgrp incus-admin

Log out and back in for the change to persist everywhere. Be deliberate here. Anyone in incus-admin can mount host paths into a container and read anything, so treat membership like sudo access. On shared servers, give regular users the restricted incus group instead.

Step 5: Initialize Incus

The initialization wizard creates your first storage pool, network bridge, and default profile. Run it:

incus admin init

The questions are mostly self-explanatory, but several of them lock in decisions that are painful to reverse. For a first run, the minimal path is also available:

incus admin init --minimal

The minimal option creates a basic setup quickly, but a thoughtful sysadmin picks the storage backend by hand. Take the interactive route when the machine is meant to last.

Choosing a Storage Backend

Backend Best for Notes
dir Quick tests No efficient snapshots, no quotas worth trusting
btrfs Single-disk servers, Fedora’s default filesystem family Fast snapshots and copy-on-write clones
zfs Serious production storage Excellent snapshots and compression, needs the OpenZFS module
lvm (thin) Existing LVM setups Solid, familiar, decent performance
ceph Clusters Overkill for a single node

Fedora Workstation defaults to Btrfs, so a btrfs pool is a natural fit there. On servers with a dedicated disk, ZFS or Btrfs on a separate device beats a loop file by a wide margin.

The wizard can create a loop-backed pool, which is a file pretending to be a disk. That is fine for a laptop. On a production server it adds a filesystem layer you will regret under heavy I/O. Hand Incus a real partition or logical volume instead:

incus storage create fast btrfs source=/dev/nvme1n1

Or build the pool on a directory that sits on its own mount point if you prefer something simple.

Network Choices During Init

The default answer creates incusbr0, a managed NAT bridge. Instances get private addresses and reach the internet through the host. This is the right start for almost everyone. Exposing instances directly on the LAN (a macvlan or a host bridge) can come later, and is covered below.

Accept the defaults for the IPv4 and IPv6 subnets unless they clash with an existing VPN or office network. A 10.x collision with a corporate VPN is one of those problems that looks like a DNS issue for hours.

Step 6: Launch Your First Instance

Incus ships with default remotes, including an image server with many distributions. List what is available:

incus image list images: almalinux/9 architecture=x86_64

Launch a container:

incus launch images:almalinux/9 web01
incus list

Open a shell:

incus exec web01 -- bash

Try a VM with the same tool:

incus launch images:debian/12 vm01 --vm

VMs take a little longer to boot because the agent has to start inside the guest. Use incus console vm01 if something looks stuck.

Useful everyday commands:

incus stop web01
incus start web01
incus restart web01
incus info web01
incus delete web01 --force

Snapshots are cheap on btrfs and ZFS, so take them before risky changes:

incus snapshot create web01 pre-upgrade
incus snapshot restore web01 pre-upgrade

Step 7: Fix the Firewall Before It Bites

This is where fresh Fedora installs trip. Fedora runs firewalld with an nftables backend, and the Incus bridge needs traffic to flow between it and the host. The symptom: containers start, but they get no IPv4 address, no DNS, or no internet. A forum user migrating to Incus on a Fedora Server hit exactly this and solved it by adjusting firewalld.

The documented fix is to put the bridge in the trusted zone:

sudo firewall-cmd --zone=trusted --change-interface=incusbr0 --permanent
sudo firewall-cmd --reload

Confirm:

sudo firewall-cmd --zone=trusted --list-interfaces

Why does this work? Incus manages its own nftables rules for the bridge, but firewalld’s zone policy can still reject DHCP and DNS requests coming from the bridge interface to the host. Trusting the bridge says: traffic from instances to the host is acceptable. That is reasonable when you control the instances. For multi-tenant hosts, consider a stricter approach where Incus firewall rules stay enabled and you explicitly allow only DHCP (UDP 67), DNS (UDP/TCP 53), and forwarding.

An alternative path in the docs is to tell Incus not to manage firewall rules for that bridge, then handle everything yourself:

incus network set incusbr0 ipv4.firewall=false
incus network set incusbr0 ipv6.firewall=false

Do that only if you are comfortable owning the full ruleset. Half-managed firewalls are worse than either extreme.

Docker on the Same Host

Running Docker next to Incus causes a classic conflict. Docker sets the global FORWARD policy to drop, so Incus traffic stops being forwarded. If both must coexist, add a rule that explicitly permits forwarding for the Incus bridge, or better, keep Docker workloads inside an Incus container with nesting enabled:

incus launch images:debian/12 docker-host -c security.nesting=true

This gives Docker its own isolated network namespace. It is cleaner and avoids polluting host firewall state.

Networking Beyond the Default Bridge

Exposing a Service With a Proxy Device

To publish a container’s web server on the host’s port 80 or 443:

incus config device add web01 http proxy listen=tcp:0.0.0.0:80 connect=tcp:127.0.0.1:80

Remember to open the port on the host firewall:

sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reload

Giving Instances LAN Addresses

Macvlan is the shortest path, but it has a notorious catch: the host cannot talk to macvlan guests on the same parent interface. If the host must reach them, build a real Linux bridge with NetworkManager and attach instances to it:

sudo nmcli con add type bridge ifname br0 con-name br0
sudo nmcli con add type bridge-slave ifname enp3s0 master br0
sudo nmcli con up br0

Then use a profile:

incus profile create lanprofile
incus profile device add lanprofile eth0 nic nictype=bridged parent=br0 name=eth0
incus launch images:debian/12 app01 -p default -p lanprofile

Do this from a console session, not SSH. Reconfiguring the interface carrying your connection is a reliable way to lock yourself out.

Wi-Fi Caveat

Bridging a Wi-Fi interface generally does not work. For a laptop, stay with the NAT bridge.

Remote Access and the Web UI

For managing a server from a workstation, enable the HTTPS listener:

incus config set core.https_address :8443

Binding to all interfaces is convenient and risky. Prefer a specific management IP or a WireGuard interface address:

incus config set core.https_address 10.8.0.1:8443

Then create a trust token on the server and add the remote on the client:

incus config trust add laptop
incus remote add myserver 10.8.0.1

The web UI is available through an additional package in some builds, and the COPR mentioned earlier includes it. Whatever you choose, never expose port 8443 to the open internet without client certificates, and ideally put it behind a VPN.

Profiles: The Underrated Feature

Profiles let you define reusable instance settings. A sensible production profile sets limits so one container cannot starve its neighbors:

incus profile create webapp
incus profile set webapp limits.cpu=2
incus profile set webapp limits.memory=2GiB
incus profile device set webapp root size=20GiB
incus launch images:almalinux/9 shop01 -p default -p webapp

Cloud-init works too, which turns provisioning into a one-liner:

incus profile set webapp cloud-init.user-data - <<'EOF'
#cloud-config
package_update: true
packages:
  - nginx
EOF

Use the cloud-init variants of images for this (they carry cloud in the image name).

Troubleshooting Common Problems

Containers Have No IPv4 Address

Usual cause: firewalld blocking DHCP from incusbr0. Apply the trusted zone fix above. Others have reported this exact symptom with ufw too, resolved by allowing traffic in and routing on the bridge. Quick test:

sudo systemctl stop firewalld
incus restart web01
incus list

If the address appears, the firewall is the culprit. Start firewalld again and fix the rules rather than leaving it off.

Containers Have an IP but No Internet

Check forwarding and NAT:

sysctl net.ipv4.ip_forward
sudo nft list ruleset | grep -i incus
incus network show incusbr0

Also look for Docker’s FORWARD drop policy. An over-strict firewall can produce the same symptom, so inspect both.

Error: Failed to Run newuidmap or Mapping Errors

Missing subuid/subgid entries for root. Revisit Step 3, then restart the daemon. Also verify the entries are not overlapping with another service’s range.

Permission Denied on the Socket

Error: The incus daemon doesn't appear to be started

This message, or a permission error, usually means your session has not picked up the group:

id | grep incus-admin
newgrp incus-admin

Log out fully if that fails.

VM Fails to Start

Check KVM:

ls -l /dev/kvm
lsmod | grep kvm
incus info --resources | head

Confirm QEMU is installed and the instance type is correct. Secure Boot sometimes blocks guest images that are not signed. For Linux VMs on a signed-boot-hostile image, disable it per instance:

incus config set vm01 security.secureboot=false

Storage Pool Errors

For a btrfs pool on a loop file, a full filesystem hides behind misleading messages. Compare:

incus storage info default
df -h /var/lib/incus

Grow a loop pool or, better, migrate to a dedicated device.

Daemon Will Not Start After an Upgrade

Read the journal first. Schema upgrades between major versions can take a minute on large installs. Also confirm that a version jump does not skip a supported path. Moving from a 6.x install to 7.x on Fedora deserves a snapshot of /var/lib/incus metadata and a tested rollback plan, particularly given Fedora 45 ships 6.23 while 7.0 lives in Rawhide.

Slow Image Downloads

Pre-seed images or cache locally:

incus image copy images:almalinux/9 local: --alias alma9 --auto-update
r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.

Related Posts