Convert KVM virtual machine to LXC container

Posted by linkdd on Super User See other posts from Super User or by linkdd
Published on 2012-09-17T09:14:42Z Indexed on 2012/09/17 9:40 UTC
Read the original article Hit count: 333

Filed under:
|

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

© Super User or respective owner

Related posts about debian

Related posts about linux-kvm