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

Commit

Permalink
Document backingstore option and highlight that it has to be set to "…
Browse files Browse the repository at this point in the history
…none" for old lxc versions [GH-277]
  • Loading branch information
fgrehm committed May 13, 2014
1 parent 2db9aa8 commit be0b1a2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ BACKWARDS INCOMPATIBILITIES:

- The `sudo_wrapper` provider configuration was removed in favor of using the
secure wrapper generated by `vagrant lxc sudoers` [[GH-272]]
- Support for specifying backingstore parameters from `Vagrantfile`s for `lxc-create`
was added and it defaults to the `best` option. On older lxc versions that does not
support that value, it needs to be set to `none`.

FEATURES:

Expand Down
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ for you. However, if the container name is important to you, you may use the

```ruby
Vagrant.configure("2") do |config|
config.vm.box = "quantal64"

config.vm.define "db" do |node|
node.vm.provider :lxc do |lxc|
lxc.container_name = :machine # Sets the container name to 'db'
Expand All @@ -123,6 +121,25 @@ Vagrant.configure("2") do |config|
end
```

### Backingstore options

Support for setting `lxc-create`'s backingstore option (`-B`) can be specified
from the provider block and it defaults to `best`, to change it you can:

```ruby
Vagrant.configure("2") do |config|
config.vm.provider :lxc do |lxc|
lxc.backingstore = 'none' # or 'btrfs', 'lvm', ...
end
end
```

For old versions of lxc (like 0.7.5 shipped with Ubuntu 12.04 by default) that
does not support `best` for the backingstore option, changing it to `none` is
required and a default for all Vagrant environments can be set from your
`~/.vagrant.d/Vagrantfile` using the same `provider` block above.


### Avoiding `sudo` passwords

This plugin requires **a lot** of `sudo`ing since [user namespaces](https://wiki.ubuntu.com/UserNamespace)
Expand Down

0 comments on commit be0b1a2

Please sign in to comment.