Can I run LXD containers and VMs on PROXMOX?

I would like to run a number of containers and VMs currently hosted on my LXD server, in a PROXMOX host I have configured due to the need of re-installing the GNU/LINUX OS to Debian or Ubuntu stable versions on LXD server.

$ lxc version
Client version: 5.13
Server version: 5.13

$ lxc list

+---------+---------+------+------+-----------------+-----------+
|  NAME   |  STATE  | IPV4 | IPV6 |      TYPE       | SNAPSHOTS |
+---------+---------+------+------+-----------------+-----------+
| ansible | STOPPED |      |      | VIRTUAL-MACHINE | 0         |
+---------+---------+------+------+-----------------+-----------+
| c1      | STOPPED |      |      | CONTAINER       | 0         |
+---------+---------+------+------+-----------------+-----------+
| c2      | STOPPED |      |      | CONTAINER       | 0         |
+---------+---------+------+------+-----------------+-----------+
| c3      | STOPPED |      |      | CONTAINER       | 0         |
+---------+---------+------+------+-----------------+-----------+
| kumo2   | STOPPED |      |      | CONTAINER       | 0         |
+---------+---------+------+------+-----------------+-----------+
| vm1     | STOPPED |      |      | VIRTUAL-MACHINE | 0         |
+---------+---------+------+------+-----------------+-----------+
| vm2     | STOPPED |      |      | VIRTUAL-MACHINE | 0         |
+---------+---------+------+------+-----------------+-----------+
| vm3     | STOPPED |      |      | VIRTUAL-MACHINE | 0         |
+---------+---------+------+------+-----------------+-----------+
| vm4     | STOPPED |      |      | VIRTUAL-MACHINE | 0         |
+---------+---------+------+------+-----------------+-----------+

If there is a document or a thread with the instructions will be greatly appreciated.

Thank you in advance!

What is the problem you are experiencing? It looks like you have containers and VMs created, do they start?

1 Like

Hi @tomp so far so good, everything works fine, however, I will need to re-install Ubuntu switch from desktop 20.04 LTS to Ubuntu server 22.04 LTS and set up storage and LXD better, so I would like to know if I can migrate the machines to a PROXMOX system I have in the network. What will be the safer and correct way to migrate the containers and VMs out to PROXMOX and then from PROXMOX back to the new LXD host?

@jairunet totally possible but it’s messy and it’ll take quite some time, do yourself a favour and install LXD on whatever other hardware you have available and/or you can even run LXD inside a VM on proxmox then migrate everything from one LXD to another, that’ll be your best bet. (btw if your version of LXD supports live migration there should be very little to no down time)

1 Like

@k4my4b I see, that can be an option for sure, I can set up an Ubuntu Server 22.04 LTS on the current PROXMOX, install LXD and try to test the migration of the containers and VMs, work on the upgrade of the production one, and then migrate them back, sounds like a plan!

I may go with this approach…however, I will be curious if the container or VM can be imported into PROXMOX and actually boot and run there as well :thinking: maybe I can try with one of each for testing purposes…nevertheless, Thank you!

Sincerely,