Convert KVM image to LXC

pizza

Renowned Member
Nov 7, 2015
96
8
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.
 

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!