No description
Find a file
2018-07-24 10:04:50 -04:00
centos centos: install openssh-server 2015-12-07 10:44:06 +01:00
common Fix all builds for LXC v3.0 2018-04-30 22:04:29 -04:00
conf Fix all builds for LXC v3.0 2018-04-30 22:04:29 -04:00
debian Fix all builds for LXC v3.0 2018-04-30 22:04:29 -04:00
fedora Fix all builds for LXC v3.0 2018-04-30 22:04:29 -04:00
gentoo Add gentoo dist 2018-04-22 21:59:45 -04:00
.gitignore add additional package installation 2016-08-15 14:02:48 +02:00
build-openmandriva-box.sh Import from vagrant-lxc 2014-03-25 00:27:48 -03:00
CHANGELOG.md Remove DHCP leases before packaging 2014-09-23 00:30:38 -03:00
clean.sh Import from vagrant-lxc 2014-03-25 00:27:48 -03:00
LICENSE.txt Import from vagrant-lxc 2014-03-25 00:27:48 -03:00
Makefile Fix all builds for LXC v3.0 2018-04-30 22:04:29 -04:00
mk-centos.sh CentOS scripts 2014-09-24 12:16:20 -03:00
mk-debian.sh add additional package installation 2016-08-15 14:02:48 +02:00
mk-fedora.sh Add support to set up fedora boxes. 2015-12-07 10:44:06 +01:00
mk-gentoo.sh Add gentoo dist 2018-04-22 21:59:45 -04:00
README.md Update README 2018-07-24 10:04:50 -04:00

vagrant-lxc base boxes

This repository contains a set of scripts for creating base boxes for usage with vagrant-lxc 1.4+.

What distros / versions can I build with this?

  • Ubuntu
    • Xenial 16.04 x86_64
  • Debian
    • Stretch x86_64
    • Sid x86_64
  • Fedora
    • 23 x86_64
    • rawhide x86_64
  • CentOS
    • 7 x86_64

Status

This is a fork of obnoxxx/vagrant-lxc-base-boxes which itself was a fork for fgrehm/vagrant-lxc-base-boxes. The goal is to make LXC box generation work for LXC 3.0+. The repo is not in top shape, but it works make stretch (which is what I use myself).

It should be easy enough for you to add support for distros you use (PR welcome).

Building the boxes

In order to build the boxes you need to have the lxc-download template available on your machine. If you don't have one around please create one based on this and drop it on your lxc templates path (usually /usr/share/lxc/templates).

git clone https://github.com/hsoft/vagrant-lxc-base-boxes.git
cd vagrant-lxc-base-boxes
make stretch

By default no provisioning tools will be included but you can pick the ones you want by providing some environmental variables. For example:

ANSIBLE=1 PUPPET=1 CHEF=1 \
make stretch

Will build a Debian Stretch x86_64 box with latest Ansible, Puppet and Chef pre-installed.

When using ANSIBLE=1, an optional ANSIBLE_VERSION parameter may be passed that will specify which version of ansible to install. By default it will install the latest Ansible.

Additional packages to be installed can be specified with the ADDPACKAGES variable:

ADDPACKAGES="aptitude htop" \
make xenial

Will build a Ubuntu Xenial x86_64 box with aptitude and htop as additional packages pre-installed. You can also specify the packages in a file xenial_packages.

Note: ADDPACKAGES is currently only implemented for flavors of debian.

Pre built base boxes

There are no pre-built base boxes for this repo. You have to build them yourself.

What makes up for a vagrant-lxc base box?

See vagrant-lxc/BOXES.md