This repository contains a set of scripts for creating Debian and Ubuntu base boxes for usage with vagrant-lxc 1.4+ in unprivileged mode.
Testing is mostly performed on Debian 10 (buster).
The boxes that can be built with this (and receive testing) are limited to the following:
- Debian
- Stretch x86_64
- Ubuntu
- Xenial 16.04 x86_64
This list will be updated over time with newer stable releases (and oldstable releases eventually dropped). If your distribution is not on the list, you might instead be interested in the original vagrant-lxc-base-boxes project which this was forked from.
In order to build the boxes you need to have the lxc-download
template available on your machine (note: the lxc package included
in Debian 10 satisfies this requirement). Create one based on
this
template if required, and drop it on your lxc templates path (usually
/usr/share/lxc/templates/).
git clone https://github.com/sitepoint/vagrant-lxc-base-boxes.git
cd vagrant-lxc-base-boxes
make stretchAdditional packages to be installed can be specified with the ADDPACKAGES variable:
ADDPACKAGES="aptitude htop" \
make xenialThe above command 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.
Unwanted packages can be removed via the REMPACKAGES variable should the lxc-download template try to pull in something undesirable.
NOTE: None of the base boxes below have a provisioner pre-installed
| Distribution | VagrantCloud box |
|---|---|
| Debian Buster 10 x86_64 | debian-buster-amd64 |
| Debian Stretch 9 x86_64 | debian-stretch-amd64 |
| Ubuntu Xenial 16.04 x86_64 | ubuntu-xenial-amd64 |
- None, beside those related to running unprivileged LXC containers using vagrant-lxc (eg. fgrehm/vagrant-lxc#485). If you are sure there is a bug in this project, please open an issue or submit a PR with as much information about the problem as possible so we may reproduce it.