Update Vagrantfile to officially support LXC
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
-Vagrant.configure(2) do |config|
+Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.
@@ -14,6 +14,9 @@ Vagrant.configure(2) do |config|
# boxes at https://atlas.hashicorp.com/search.
#config.vm.box = "hashicorp/precise64"
config.vm.box = "ubuntu/precise64"
+ config.vm.provider :lxc do |lxc, override|
+ override.vm.box = "fgrehm/precise64-lxc"
+ end
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@@ -24,12 +27,13 @@ Vagrant.configure(2) do |config|
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# config.vm.network "forwarded_port", guest: 80, host: 8080
- config.vm.network "forwarded_port", guest: 8000, host: 8000
# Create a private network, which allows host-only access to the machine
# using a specific IP.
- # config.vm.network "private_network", ip: "192.168.33.10"
- config.vm.network "private_network", ip: "192.168.33.10"
+ config.vm.provider :virtualbox do |vbox, override|
+ override.vm.network "forwarded_port", guest: 8000, host: 8000
+ override.vm.network "private_network", ip: "192.168.33.10"
+ end
# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
