Convert KVM image to LXC

pizza

Renowned Member
Nov 7, 2015
96
9
73
Proxmox 4.0 can import a OpenVZ backup into a LXC container. Is it also possible to convert a KVM image to LXC container?
 
Hi,
not this is so easy and there are no standard way to do that.
And I would say it is easier to install a new Container and migrate the data.
 
You make an archive of your / (after you shutdown all the services, like databases) excepting /proc/*, /sys/*, /run/* and import it in your LXC container. Worst case, you might need to fiddle with systemd.

A better way to do it would be to mount the KVM disk inside the host and do the operations from there.

Maybe you will need few tries for that, but it will not be rocket science.