The situation is the following: we have an lxc (linux-container), which contains a Debian Squeeze distribution, built up with a preseed file. We wanted to add some extra packages (packages for the OMF testbed) which are not part of the main, contrib or non-free debian packages list. The goal is (/was) to distribute the preseed file so other users can easily use the debian distribution (with the new packages) in their linux container. But LXC does not seem to provide a possibility to add extra repositories (or we missed something) in the installation from where additional packages can be downloaded and installed.
The solution we looked into is using Vagrant in combination with Chef, where we first create the linux container, then convert that linux container to a vagrant box, let vagrant in combination with chef add our own packages (from the omf repositories) and then convert it back to a linux container. This way we distribute the linux container preseed file, the VagrantFile and maybe some shell script to do conversions.
But how is this done? Is it possible to convert a linux container (/var/lib/lxc/nameContainer/rootfs) to a .box? Or is it possible to convert a .ext2/.ext4/.img (we could convert the linux container first to that) to a .box? And can we convert back (from the generated Vagrant VM to a linux container)? We could not find any information on this topic (which isn't a good sign, obviously...)
Thanks in advance,