Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
    
I doubt it since LXC is highly dependable on the type of kernel used. –  Lucas Kauffman Sep 17 '12 at 9:38
add comment

2 Answers 2

up vote 2 down vote accepted

Maybe you can give this a shot Booting an Ubuntu 12.04 virtual machine in an LXC container . At least LXC on Ubuntu provides various distro templates, I believe you can boot different Linux distro from the host.

share|improve this answer
add comment

You can look at lxc-convert here.

I've done it several time, it works well.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.