Convert KVM virtual machine to LXC container
- by linkdd
I have 2 virtual machines (with Debian, using KVM) with virtual hard drives:
/srv/kvm/ssh.img
/srv/kvm/www.img
Both have 3 partitions (/, /home, swap).
I want to convert them in a RootFS usable with LXC (in order to use LXC instead of KVM).
The only solution I have for the moment is:
create a new RootFS
copy /home partition into it
reproduce the same configuration into it
But is there an automated way to do it