Source installation on Rocky Linux lxd-to-incus failure

Greetings,

I’ve been waiting in the wings for a way to install Rocky Linux via the EPEL repository. It’s been a fair wait, however, so I decided to attempt a build from source. My goal was to convert my Rocky Linux 9.4 LXD server (installed with snap) to Incus.

It took a bit to get all of the required elements and development packages installed, but in the end I was successful in building incus 6.3 from source. LXD is still running, and I can run both incus info and lxc info. The incus-daemon reports a few warnings, but does start:

WARNING[2024-08-07T12:55:33-05:00] AppArmor support has been disabled because of lack of kernel support 
WARNING[2024-08-07T12:55:33-05:00]  - AppArmor support has been disabled, Disabled because of lack of kernel support 
WARNING[2024-08-07T12:55:33-05:00] Instance type not operational                 driver=qemu err="KVM support is missing (no /dev/kvm)" type=virtual-machine

However, attempts to use the lxd-to-incus tool fail with the following:

=> Looking for source server
==> Detected: snap package
=> Looking for target server
Error: No target server could be found

Any ideas where to look? I know the snap installation of LXD is not wonderful, but it was the only way to install on Rocky Linux when the server was built.

Assuming I’m successful, I WILL have a procedure to follow for other Rocky Linux users or server operators.

Thanks,
Steve

lxd-to-incus needs to be able to start/stop the Incus server, so it requires it be run by an init system.

At minimum you’d need incus.socket and incus.service along with the data at /var/lib/incus.

This will then make lxd-to-incus detect that system as systemd and proceed.

Thanks very much for the response. I can build those services, I believe.

Steve

You’ll file some examples here: incus/systemd at daily · zabbly/incus · GitHub

Perfect! Thank you very much Sephane!