Migrate to incus Voidlinux

Hi all,
some days ago the incus package came to VoidlInux repository.
I tried to migrate my installation but lxd-to-incus give me

=> Looking for source server
==> Detected: manual installation
=> Looking for target server
Error: No target server could be found

S-tracing the command it looks like the issue is related to the undetected runit init system.
Any chance to get the migrating tool working on Void?

My kind regards

To write the needed logic, I need to know:

  • On LXD

    • Where the LXD unix.socket is located (usually /var/lib/lxd/unix.socket)
    • What command to run to stop LXD and all associated services
    • What command to run to start LXD and all associated services
    • What command to run to fully purge LXD from the system
    • The location of the data (usually /var/lib/lxd), cache (usually /var/cache/lxd) and log (usually /var/log/lxd) paths
  • On Incus

    • Where the Incus unix.socket is located (usually /var/lib/incus/unix.socket)
    • What command to run to stop LXD and all associated services
    • What command to run to start LXD and all associated services
    • The location of the data (usually /var/lib/incus), cache (usually /var/cache/incus) and log (usually /var/log/incus) paths

Based on that I can put together source and target logic in lxd-to-incus to properly handle Void.

Thank Stefan for taking care of it.
All my PCs are running VoidLinux so I can do some tests before
launching the command on my server.(and keep the fingers crossed)
The locations of the files are the standard ones, you have to run
every command as root or sudo-ing it.
Anyway i answered your questions inline below

stgraber Stéphane Graber Maintainer
February 19

To write the needed logic, I need to know:

On LXD

Where the LXD unix.socket is located (usually /var/lib/lxd/unix.socket)
/var/lib/lxd/unix.socket

What command to run to stop LXD and all associated services

sv stop /var/service/lxd

sv stop /var/service/lxd/log

What command to run to start LXD and all associated services

sv start /var/service/lxd

What command to run to fully purge LXD from the system
Do you mean completely remove the lxd program/package from the system?
I don’t know if Void has something such apt purge, but

xbps-remove -ROo lxd

should clean up the system (I have to check /var/cache)

The location of the data (usually /var/lib/lxd), cache (usually /var/cache/lxd) and log (usually /var/log/lxd) paths
/var/cache/lxd
/var/log/lxd

On Incus

Where the Incus unix.socket is located (usually /var/lib/incus/unix.socket)
/var/lib/incus/unix.socket
What command to run to stop LXD and all associated services
I suppose you mean Incus

sv stop /var/service/lxd

What command to run to start LXD and all associated services

sv start /var/service/lxd

The location of the data (usually /var/lib/incus), cache (usually /var/cache/incus) and log (usually /var/log/incus) paths
/var/lib/incus
/var/cache/incus
/var/log/incus

Based on that I can put together source and target logic in lxd-to-incus to properly handle Void.

Hope we will figure out

My best regards

I think

xbps-remove -R lxd

should be enough

Thank you for this. I run a Void Linux server and have yet to migrate from LXD.