Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to migrate a Virtualbox image to a LXC containter environment?

I can easly extract a tar of the Virtualbox VM's file system. I'm kind of hoping there's a way to create an 'empty' container and then untar the virtualbox VM's file system into it.

I am completely new to LXC but if anyone can lay out the steps I'll lookup any details.

Any help on this is appreciated.

share|improve this question
up vote 2 down vote accepted

For those who might be wondering:

The following article covers booting a raw image as a container. Perfect for my situation as we use raw images with virtualbox.


share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. And it would be a bonus if you include the steps to convert regular Virtualbox image to raw (as the question is about Virtualbox in general). – gertvdijk Jan 30 '13 at 1:11
I only use raw images with Virtualbox because it makes it easier to mount, extract tars, or copy directly onto other devices like disk partitions and usb sticks. I didn't put this in my question because I didn't want to like relivant answers. – user108168 Feb 1 '13 at 0:55

Your Answer


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.