Skip to content

Commit

Permalink
vagrant: Get vagrant up and running with lxc 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
punchagan authored and timabbott committed May 3, 2018
1 parent 8fe54a5 commit e6ac98c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,14 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provider "lxc" do |lxc|
if command? "lxc-ls"
LXC_VERSION = `lxc-ls --version`.strip unless defined? LXC_VERSION
if LXC_VERSION >= "1.1.0"
if LXC_VERSION >= "1.1.0" and LXC_VERSION < "3.0.0"
# Allow start without AppArmor, otherwise Box will not Start on Ubuntu 14.10
# see https://github.com/fgrehm/vagrant-lxc/issues/333
lxc.customize 'aa_allow_incomplete', 1
end
if LXC_VERSION >= "3.0.0"
lxc.customize 'apparmor.allow_incomplete', 1
end
if LXC_VERSION >= "2.0.0"
lxc.backingstore = 'dir'
end
Expand Down

0 comments on commit e6ac98c

Please sign in to comment.