VM to CT

is it possible to convert my VM to a CT?

No, you could setup a new lxc with the same distribution and copy your configuration and data from the vm to it. This should work but might be easier to reinstall everything and adding the data afterwards.
Please note that PVEs manual recommends using docker only inside a vm to avoid running into trouble.
 
  • Like
Reactions: Kingneutron
No, you could setup a new lxc with the same distribution and copy your configuration and data from the vm to it. This should work but might be easier to reinstall everything and adding the data afterwards.
Please note that PVEs manual recommends using docker only inside a vm to avoid running into trouble.
How would I go about that?, dam I’m running docker in the VM, what’s wrong with it?
 
How would I go about that?,

I'm not sue I understand your question correctly but I would do it like this: Look in the container templates whether the distribution of your vm is available and spin up a new container with it, install and configure the software I would want to use in it ( e.G. nginx for a webserver ). Afterwards I would copy the data with rsync or scp ( if it's on local storage) from the vm to the lxc. If the data lives on a NAS I would create a bind mount and put it inside the container like described in the manual:

https://pve.proxmox.com/wiki/Linux_Container

Since there is already a working environment ( the vm ) configuration shouldn't take long.

Afterwards setup backup schedule for the new container. I would also keep the vm ( although shutdown) and backup of it for sone time so I can still to use it in case the container doesn't work or I need to look sonething up.

dam I’m running docker in the VM, what’s wrong with it?
The issue with docker inside lxc was discussed several times in the past, one example:
https://forum.proxmox.com/threads/docker-in-unpriviledged-lxc-or-dedicated-vm.156369/
My biggest gripe with them is that you can't avoid a downtime during a migration.
 
Last edited:
  • Like
Reactions: waltar

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!