Commit graph

20 commits

Author SHA1 Message Date
Virgil Dupras
8cfe577b17 Fix LXC 3.0 compatibility with old boxes
Creating a new vagrant machine with a box created with an old LXC config
format would fail with LXC 3.0. We now update the LXC config of the box
itself before calling `lxc-create`.
2018-04-30 20:45:25 -04:00
Virgil Dupras
dd24cdc3d6 Fix incompatibility with LXC 3.0
LXC 3.0, unlike 2.1, doesn't support old configuration formats at all
and because our previous approach to handling old format was incomplete,
running `vagrant up` on a system with LXC 3.0 would fail, even if the
base box itself was made with modernized config.

This commit fixes this problem: is the box has a modern config, it's
going to be properly created and booted under LXC 3.0. It does so
without breaking the support for LXC < 2.1
2018-04-29 22:57:31 -04:00
Virgil Dupras
530a899467 Add support for unprivileged containers
fixes #312

I've also remove the "EXPERIMENTAL" flag to bridge support in the README.
It's been there long enough.
2018-02-17 21:53:16 -05:00
Virgil Dupras
c74ddbf2fc create: with LXC 2.1+ run lxc-update-config on new boxes
When running with LXC 2.1+, ensure that our boxes have up-to-date config
keys by running the `lxc-update-config` utility that ships with LXC
2.1+.

When the command doesn't exist (LXC <2.1), we do nothing.

ref #445
2018-01-13 21:03:34 -05:00
Fabio Rehm
fb23e606cc action/create: Trim automatically generated container names to 64 chars
Fixes GH-337
2015-01-11 21:30:11 -02:00
Cam Cope
a9248cb697 add backingstore parameters 2014-04-28 17:17:59 +03:00
Fabio Rehm
6e7ab85dad Use a safer random name for containers (closes GH-192)
if the same vagrantfile is up'd in the same second in the same basedir
this caused a conflict
2014-02-02 19:43:51 -02:00
Fabio Rehm
786bb8a3fe Simplify code related to container naming [GH-132] 2014-02-02 18:37:06 -02:00
Michael Owings
b34dd7d8e7 Allow two ways to name a container 2014-02-02 18:03:33 -02:00
Cam Cope
ffb573a7f1 allow setting the container name in the vagrantfile 2014-02-02 18:03:33 -02:00
Fabio Rehm
0e57cfc2b0 Remove unneeded .to_s 2013-11-06 21:06:25 -02:00
Fabio Rehm
681c490cdc Add Vagrantfile VM name to the container name
Closes #115
2013-07-21 22:46:44 -03:00
Fabio Rehm
5c2973108b Support bundling lxc config files with base boxes 2013-06-06 00:04:59 -03:00
Fabio Rehm
04cdd1f3db Improved box metadata handling and container creation 2013-04-05 22:10:49 -03:00
Fabio Rehm
14f769ee0d Remove support for setting target rootfs path 2013-04-05 22:10:48 -03:00
Fabio Rehm
514736bdd6 Rename old container references to driver 2013-04-05 22:10:48 -03:00
Fabio Rehm
164e57695e 💣 BaseAction 2013-04-05 22:10:48 -03:00
Fabio Rehm
306deaa0e2 Add support for configuring rootfs path
References #30
2013-03-29 12:24:39 -03:00
Fabio Rehm
976a6ebed7 Sets container name based on vagrant root path
Closes #14
2013-03-29 02:25:42 -03:00
Fabio Rehm
30d163d4bb Move action classes into their own files 2013-03-03 02:24:05 -03:00