From e6ac98cc9bffc0d909a552f2fed6eee5325ed78e Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Thu, 3 May 2018 08:21:26 +0530 Subject: [PATCH] vagrant: Get vagrant up and running with lxc 3.0.0 --- Vagrantfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 053abdd3dd..f8e07e036b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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