Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

V3 base boxes #89

Merged
merged 25 commits into from
Jun 27, 2013
Merged

V3 base boxes #89

merged 25 commits into from
Jun 27, 2013

Conversation

fgrehm
Copy link
Owner

@fgrehm fgrehm commented Jun 8, 2013

Introduces a simpler approach for building base boxes.

While it does not introduce breaking changes, V3 boxes should be pushing more work into the base box preparation allowing us to eventually have "generic" creation scripts + lxc configs built into vagrant-lxc itself and also to simplify the process of "promoting" existing containers to base vagrant boxes.

V3 base boxes should now be made of 4 files:

  • lxc-template -> The generic creation script
  • lxc.conf -> Default container configs
  • rootfs.tar.gz
  • metadata.json -> Metadata about the box, required by Vagrant to work

Because the lxc config will be bundled with the box (and not built during lxc-create), I'm not willing to keep editing it from vagrant-lxc, so we'll start setting lxc.rootfs and lxc.utsname from the provider itself for both V2 and V3 boxes.

I'm already working on it, just need to find the time to test it and collect feedback from others

@fgrehm
Copy link
Owner Author

fgrehm commented Jun 6, 2013

Ok, so I'm almost done with this, I was able to create and boot a base box with this new approach. I know this description is kinda vague but I'd love some feedback from those who are interested on building base boxes (@Val @aries1980 @adamcstephens @rcarmo). If you need more information just let me know. I'll probably push the code I have so far in a branch soon so that everyone can have a look.

@fgrehm
Copy link
Owner Author

fgrehm commented Jun 6, 2013

BTW, on my laptop I'm keeping initial create + boot times lower than 8 seconds, while with the current boxes it takes at least 11 sec, so things will be faster after this ;-)

@rcarmo
Copy link

rcarmo commented Jun 6, 2013

Hmmm. You know, I've recently had to set up lxc atop btrfs, and creating a brand new container with lxc-clone was instant. Maybe we could leverage that somehow for boxes?

@fgrehm
Copy link
Owner Author

fgrehm commented Jun 6, 2013

Sure, I've done some research on BTRFS as well and lxc-clone will be the
next thing after this is in place ;)
On Jun 6, 2013 7:27 PM, "Rui Carmo" notifications@github.com wrote:

Hmmm. You know, I've recently had to set up lxc atop btrfs, and creating a
brand new container with lxc-clone was instant. Maybe we could leverage
that somehow for boxes?


Reply to this email directly or view it on GitHubhttps://github.com//issues/89#issuecomment-19078456
.

@fgrehm fgrehm mentioned this pull request Jun 7, 2013
@fgrehm
Copy link
Owner Author

fgrehm commented Jun 11, 2013

ok guys, I've just blogged about the new boxes that are coming up. I'm still testing the current base boxes we have and as you'll find on the post, I don't have any plans to support boxes other than Ubuntu on the short term. I'll close the boxes related issues and I'd be more than happy to link the boxes people build on an upcoming wiki page.

@fgrehm fgrehm mentioned this pull request Jun 11, 2013
@rcarmo
Copy link

rcarmo commented Jun 11, 2013

I'm fine with that, although I do need Debian boxes for work. I'd be happy to maintain the Wheezy one, at least.

On Jun 11, 2013, at 01:18 , Fabio Rehm notifications@github.com wrote:

ok guys, I've just blogged about the new boxes that are coming up. I'm still testing the current base boxes we have and as you'll find on the post, I don't have any plans to support boxes other than Ubuntu on the short term. I'll close the boxes related issues and I'd be more than happy to link the boxes people build on an upcoming wiki page.


Reply to this email directly or view it on GitHub.

@fgrehm
Copy link
Owner Author

fgrehm commented Jun 11, 2013

@rcarmo I'll probably leave the Debian scripts around since they are already here :)

@rcarmo
Copy link

rcarmo commented Jun 11, 2013

Okay, then. But if you can't spare the time to build the boxes, I'll do it. Alas, I need to use Wheezy in production.

On Jun 11, 2013, at 17:03 , Fabio Rehm notifications@github.com wrote:

@rcarmo I'll probably leave the Debian scripts around since they are already here :)


Reply to this email directly or view it on GitHub.

fgrehm added a commit that referenced this pull request Jun 27, 2013
@fgrehm fgrehm merged commit 027fa8a into master Jun 27, 2013
@fgrehm fgrehm deleted the new-box-format branch June 27, 2013 04:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants