Initial daily packages for Incus

Incus now finally has some packages for Debian and Ubuntu users!

Those are daily builds and so should be used with some care as they are completely untested.
That being said, they’re available for Debian 11, Debian 12, Ubuntu 20.04 LTS and Ubuntu 22.04 LTS on both x86_64 and aarch64.

The detailed instructions can be found at:

That initial packaging will need a fair amount of love over the coming weeks, but early testing would be useful to sort out exactly what needs to be fixed first :slight_smile:

A reminder not to run this on any production system. A stable release of Incus is coming in a few weeks and then will be a much better time to start moving existing systems over!

6 Likes

dont forget to run ‘apt-get update’ before ‘apt install incus’. or else you’ll be staring at this like me :slight_smile:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package incus

I tried following the instructions on Orange Pi5 running Armbian (bookworm) and here is the status.

root@core:~# systemctl status -l incus-lxcfs.service
● incus-lxcfs.service - Incus - LXCFS daemon
Loaded: loaded (/etc/systemd/system/incus-lxcfs.service; enabled; preset: enabled)
Active: active (running) since Wed 2023-09-13 14:59:00 PDT; 2min 6s ago
Main PID: 1644010 (lxcfs)
Tasks: 3 (limit: 18537)
Memory: 480.0K
CPU: 6ms
CGroup: /system.slice/incus-lxcfs.service
└─1644010 /opt/incus/bin/lxcfs /var/lib/incus-lxcfs

Sep 13 14:59:00 core lxcfs[1644010]: - proc_meminfo
Sep 13 14:59:00 core lxcfs[1644010]: - proc_stat
Sep 13 14:59:00 core lxcfs[1644010]: - proc_swaps
Sep 13 14:59:00 core lxcfs[1644010]: - proc_uptime
Sep 13 14:59:00 core lxcfs[1644010]: - proc_slabinfo
Sep 13 14:59:00 core lxcfs[1644010]: - shared_pidns
Sep 13 14:59:00 core lxcfs[1644010]: - cpuview_daemon
Sep 13 14:59:00 core lxcfs[1644010]: - loadavg_daemon
Sep 13 14:59:00 core lxcfs[1644010]: - pidfds
Sep 13 14:59:00 core lxcfs[1644010]: Ignoring invalid max threads value 4294967295 > max (100000).
root@core:~#
root@core:~# systemctl status -l incus.service
● incus.service - Incus - Main daemon
Loaded: loaded (/etc/systemd/system/incus.service; enabled; preset: enabled)
Active: active (running) since Wed 2023-09-13 14:59:01 PDT; 2min 18s ago
Main PID: 1644039 (incusd)
Tasks: 20 (limit: 18537)
Memory: 30.0M
CPU: 748ms
CGroup: /system.slice/incus.service
└─1644039 /opt/incus/bin/incusd --verbose

Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Done pruning expired backups”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Expiring log files”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Done expiring log files”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Daemon started”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Updating instance types”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Pruning resolved warnings”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Updating images”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Done pruning resolved warnings”
Sep 13 14:59:02 core incusd[1644039]: time=“2023-09-13T14:59:02-07:00” level=info msg=“Done updating images”
Sep 13 14:59:03 core incusd[1644039]: time=“2023-09-13T14:59:03-07:00” level=info msg=“Done updating instance types”

Sorry for some off-topic, but can the sources from that repository be used to build LXD for Debian? I want to install LXD on Debian, but the backage provided by maintainers is quite dated

Edit: see Stephane post :slight_smile:

The LXD Debian packages aren’t really outdated, instead, they focus on the LTS version of LXD rather than the monthly releases which are very difficult for a stable distribution like Debian to keep track of.

The packaging for the native LXD Debian packages can be found here: Debian Go Packaging Team / packages / lxd · GitLab

You should be able to apply that packaging to a newer version of LXD without too much trouble.

I wouldn’t really recommend trying to apply the Incus packaging to LXD as things are rapidly diverging there and so will become more and more painful over time.

1 Like

How do I do lxd init in incus? :slight_smile:

incus admin init

1 Like

if someone would want to get her feet wet with contributing a package for, let’s say Arch … where would you start investigating how to do that?

Probably start by looking at what was done for the native lxd package and then use much of the same for incus.