I have an Arch Linux desktop system running incus to host services including, but not limited to, a home assistant instance and VMs/containers for my friends. I am currently working on attempting to migrate said system to Gentoo, and would ideally like to move all incus data at once, rather than individually, if possible. How should I go about this migration? It’s worth noting that both OS installs are on btrfs subvolumes of the same encrypted (LUKS) partition, that incus is configured to exclusively use externally (systemd-networkd)-managed bridges due to me wishing to have my firewall configuration exclusively managed by me, and that I am currently using a btrfs subvolume within the existing Arch installation to store incus data. To my knowledge, I am not capable of booting both the Arch and Gentoo systems simultaneously on bare metal, and, although I could probably get them to boot with one in a container, I would rather not do so.
You should be able to move /var/lib/incus from one system to the other and be basically good assuming that /var/lib/incus is your existing sub-module and that your instances then all live within that too.
So long as Incus on Gentoo is the same or newer version, that should pick things back up just fine as long as you’ve re-applied your systemd-networkd configuration too.
1 Like
I’ll give that a try once I go for actually moving over, and report if it works or not. Thank you!