Hello, The issue with using the lxd-to-incus migration program is that it requires the lxd server to run in order to work. If I install incus via pacman and then try to migrate, I get: # lxd-to-incus => Looking for source server ==> Detected: manual installation => Looking for target server Error: No target server could be found This message is expected, because the target server (lxd) was uninstalled by pacman during the installation of incus. In comparison, on a Debian box, 'apt-get install incus' installs Incus in parallel to lxd and the subsequent migration program works fine. Best,
Hello,
I am yet to migrate to incus, however the lxd-to-incus tool is provided by the incus package [1], and thus should still work as it seems to migrate itself (lxd is just a frontend after all).
Let incus replace lxd, run the tool, and it should work just fine. If not, post the error and the log here so that you can be helped further.
What the proper way of migrating from LXD to Incus under Archlinux?
Seen as incus is relatively new, there is no wiki article on it, and thus, there is no "proper" way currently, but in general if the solution provided by upstream works, why change it?
It goes without saying but you might want to backup before you attempt this.
Take care,
This was fixed several days ago. https://gitlab.archlinux.org/archlinux/packaging/packages/incus/-/commit/05e... Please check your mirros and get the updated package. -- Morten Linderud PGP: 9C02FF419FECBE16
Hello, The package incus-tools [1] still conflicts lxd however [2]... is there a reason for this considering it only provides the tools? Also if the tools are also provided within the incus [3] package then surely the incus-tools package is redundant? This information will be useful for a potential ArchWiki page being produced. I assume you should install incus currently, and use the migration script, then stop and remove lxd and then remove the lxd package, and start/enable incus instead? Take care, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@icebound.dev [1] https://archlinux.org/packages/extra/x86_64/incus-tools/ [2] https://gitlab.archlinux.org/archlinux/packaging/packages/incus/-/blob/main/... [3] https://archlinux.org/packages/extra/x86_64/incus/
On Sun, Jan 07, 2024 at 05:34:20PM +0000, Polarian wrote:
Hello,
The package incus-tools [1] still conflicts lxd however [2]... is there a reason for this considering it only provides the tools?
Yes, fuidshift is provided by both packages.
Also if the tools are also provided within the incus [3] package then surely the incus-tools package is redundant?
They are not, fuidshift being inside incus is a mistake.
I assume you should install incus currently, and use the migration script, then stop and remove lxd and then remove the lxd package, and start/enable incus instead?
https://linuxcontainers.org/incus/docs/main/howto/server_migrate_lxd/ -- Morten Linderud PGP: 9C02FF419FECBE16
Hello, Apologies to reviving this stale thread, however I have finally gotten around to migrating due to lxd no longer being able to use images.linucontainers.org. [1] Migration works, all existing containers are up and running just like it was on LXD, however when creating a new container (according to the ArchWiki), I find the following issue: doas incus launch images:debian Launching the instance Error: Failed instance creation: Failed getting remote image info: Failed getting image: The requested image couldn't be found This is copy and pasted command from the ArchWiki to prevent any human error (such as typos), yet incus can't pull the images. I have pinged images.linuxcontainers.org to make sure it is reachable, and it is. Any clue why I can't pull images? Also thank you Foxboron for the creation of the Incus ArchWiki page. [2][3] Take care, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@icebound.dev [1] https://discuss.linuxcontainers.org/t/important-notice-for-lxd-users-image-s... [2] https://wiki.archlinux.org/title/Incus [3] https://wiki.archlinux.org/index.php?title=Incus&oldid=796640
This is copy and pasted command from the ArchWiki
It's not and you need to re-read the wiki section you found it on (I presume either LXD or Incus page, neither has it). Wiki for LXD needs to be edited as it still claims LXD supports LXC Images. Martin On Fri, Feb 9, 2024 at 12:04 PM Polarian <polarian@polarian.dev> wrote:
Hello,
Apologies to reviving this stale thread, however I have finally gotten around to migrating due to lxd no longer being able to use images.linucontainers.org. [1]
Migration works, all existing containers are up and running just like it was on LXD, however when creating a new container (according to the ArchWiki), I find the following issue:
doas incus launch images:debian Launching the instance Error: Failed instance creation: Failed getting remote image info: Failed getting image: The requested image couldn't be found
This is copy and pasted command from the ArchWiki to prevent any human error (such as typos), yet incus can't pull the images.
I have pinged images.linuxcontainers.org to make sure it is reachable, and it is.
Any clue why I can't pull images?
Also thank you Foxboron for the creation of the Incus ArchWiki page. [2][3]
Take care, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@icebound.dev
[1] https://discuss.linuxcontainers.org/t/important-notice-for-lxd-users-image-s... [2] https://wiki.archlinux.org/title/Incus [3] https://wiki.archlinux.org/index.php?title=Incus&oldid=796640
Hello,
It's not and you need to re-read the wiki section you found it on (I presume either LXD or Incus page, neither has it).
Apologies, I copied the command I was testing in the terminal, and not the one from the wiki, human mistake. I tried pulling images the next day, and it worked, I have no clue why it didn't work that day, but I am not going to complain because it works now :D
Wiki for LXD needs to be edited as it still claims LXD supports LXC Images.
Source [1], I have relayed this to a maintainer. Take care, -- Polarian GPG signature: 0770E5312238C760 Website: https://polarian.dev JID/XMPP: polarian@icebound.dev [1] https://discuss.linuxcontainers.org/t/important-notice-for-lxd-users-image-s...
participants (4)
-
Bernd Rinn
-
Martin Rys
-
Morten Linderud
-
Polarian