Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Leverage lxc-clone / BTRFS #99
I have a rough sketch for
This still implies a few things to get it working:
Obviously this is more of a proof-of-concept, but do you think it's worth to pursue this any further?
I have something pretty similar to @codec's branch that I've been using internally for a test pipeline, but it also needs cleanup. Here's a quick WIP: ccope/vagrant-lxc@fgrehm:next...clone_public (I've been using this on Ubuntu 12.04, LXC 0.7.5, with LVM)
The major problem I've run into is that shared folders don't work with LVM (or probably anything else that isn't a plain directory or overlay). The root volume isn't mounted in a place which is accessible by the host when the guest boots, so the current method of mkdir'ing it doesn't work. The mountpoint directories have to be created either when the tarball gets unpacked or via ssh once the vm boots up (the latter is more flexible).
So, I've found a couple of ways to interact with a running container's filesystem from the host. One, if you're running a new enough kernel, is to just use
I'm going to implement the latter option in my branch for now, because it has better backwards compatibility, but lxc-attach seems much less hacky.