Copying Cointainer between LXD hosts - does LXD version matter?

my current LXD host is growing out of its VM boundaries and I plan to

  1. create a slightly larger one
  2. copy containers over to that new LXD host

the procedure looks quite straight forward but I am wondering whether there is any trouble waiting if the LXD version of the new host (apt package on ubuntu 20.04) is different then the LXD version of the old host (apt package on 18.04)

Can you check the versions again?
There is no apt package for LXD in Ubuntu 20.04.

What you can do, is install LXD 3.0.x (snap) on Ubuntu 20.04, perform the migration, then consider if you really want to upgrade from 3.0.x to 4.0.x.

ok, thx. I’ll try it this way then. I am on 3.0.3 (apt package) on my current 18.04 host. So I assume I try to hit the closest version (which seems to be 3.0) available via snap then.

Run the following to see the available versions for a LXD snap package.

$ snap info lxd
...
channels:
  latest/stable:    4.7         2020-11-02 (18137) 72MB -
  latest/candidate: 4.7         2020-11-04 (18169) 72MB -
  latest/beta:      ↑                                   
  latest/edge:      git-033ec1e 2020-11-03 (18161) 72MB -
  4.7/stable:       4.7         2020-11-03 (18137) 72MB -
  4.7/candidate:    4.7         2020-11-04 (18169) 72MB -
  4.7/beta:         ↑                                   
  4.7/edge:         ↑                                   
  4.6/stable:       4.6         2020-10-13 (17738) 72MB -
  4.6/candidate:    4.6         2020-10-14 (17777) 72MB -
  4.6/beta:         ↑                                   
  4.6/edge:         ↑                                   
  4.0/stable:       4.0.4       2020-11-03 (18150) 71MB -
  4.0/candidate:    4.0.4       2020-11-04 (18165) 71MB -
  4.0/beta:         ↑                                   
  4.0/edge:         git-01f0ca1 2020-11-03 (18154) 71MB -
  3.0/stable:       3.0.4       2019-10-10 (11348) 55MB -
  3.0/candidate:    3.0.4       2019-10-10 (11348) 55MB -
  3.0/beta:         ↑                                   
  3.0/edge:         git-81b81b9 2019-10-10 (11362) 55MB -
  2.0/stable:       2.0.12      2020-08-18 (16879) 38MB -
  2.0/candidate:    2.0.12      2020-08-17 (16879) 38MB -
  2.0/beta:         ↑                                   
  2.0/edge:         git-82c7d62 2020-08-17 (16867) 39MB -
installed:          4.7                    (18137) 72MB -

On Ubuntu 20.04 LTS, you can install LXD 3.0.4 with the following command. You may have to remove first the existing version (sudo snap remove lxd --purge), and possibly reboot to make sure there are no remnant processes.

sudo snap install lxd --channel=3.0/stable
1 Like

great, thx for the detail. I’ll give it a run over the weekend.