Adding LXD 5.2 remote to Incus (for image access)

I’m trying to add a LXD server as a remote on my Incus server so that I can pull images from the LXD server prior to decommissioning it.

I have read this similar post however I cannot get it to work because I don’t think that version of LXD supports tokens and Incus doesn’t support passwords.

I’ve tried using certificates and I’ve added the incus client’s certificate to lxd but I get this error on Incus

# incus remote add myserver https://myserver
Certificate fingerprint: 3c098c8f283facd18ebca7b50629e1aefc1ce68be5c031c78092e6a23f51638d
ok (y/n/[fingerprint])? y
Error: json: cannot unmarshal bool into Go struct field Server.ServerUntrusted.ServerPut.config of type string

I’ll probably just give up and export / import images, but I thought I’d just mention the above error in case it’s something that needs to be handled?

Unless of course there is a way to do this that I’ve missed.

Your server likely has the core.trust_password config key set. That’s not supported by the Incus client. Unsetting that key on the server side should fix it.

1 Like

Thank you @stgraber

After doing lxc config unset core.trust_password on the LXD server, I was able to do incus remote add on the Incus server. And then I could do incus image copy --copy-aliases myserver:myimage local: so all good :slight_smile:

1 Like