From 0e6b14643fe4dd964b6e22d81aa9f5b5ca58a4f0 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Wed, 8 May 2013 15:42:44 -0300 Subject: [PATCH] Support squeeze box as dev machine --- development/Vagrantfile | 1 + development/lxc-configs/squeeze | 37 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 development/lxc-configs/squeeze diff --git a/development/Vagrantfile b/development/Vagrantfile index a4759c7..8f21e41 100644 --- a/development/Vagrantfile +++ b/development/Vagrantfile @@ -28,6 +28,7 @@ BOXES = { vbox_url: 'http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box' }, squeeze: { + lxc_url: lxc_box_url('squeeze'), vbox_url: 'http://f.willianfernandes.com.br/vagrant-boxes/DebianSqueeze64.box' }, wheezy: { diff --git a/development/lxc-configs/squeeze b/development/lxc-configs/squeeze new file mode 100644 index 0000000..cb65047 --- /dev/null +++ b/development/lxc-configs/squeeze @@ -0,0 +1,37 @@ +############################################################################### +# This file has the same configs as the built in /etc/default/lxc on Ubuntu, +# we only changed IPs to 10.0.254.* to avoid collision with LXC default 10.0.3.* +# which is likely to be running from the host machine +############################################################################### + + +# MIRROR to be used by ubuntu template at container creation: +# Leaving it undefined is fine +#MIRROR="http://archive.ubuntu.com/ubuntu" +# or +#MIRROR="http://:3142/archive.ubuntu.com/ubuntu" + +# LXC_AUTO - whether or not to start containers symlinked under +# /etc/lxc/auto +LXC_AUTO="true" + +# Leave USE_LXC_BRIDGE as "true" if you want to use lxcbr0 for your +# containers. Set to "false" if you'll use virbr0 or another existing +# bridge, or mavlan to your host's NIC. +USE_LXC_BRIDGE="true" + +# If you change the LXC_BRIDGE to something other than lxcbr1, then +# you will also need to update your /etc/lxc/lxc.conf as well as the +# configuration (/var/lib/lxc//config) for any containers +# already created using the default config to reflect the new bridge +# name. +# If you have the dnsmasq daemon installed, you'll also have to update +# /etc/dnsmasq.d/lxc and restart the system wide dnsmasq daemon. +LXC_BRIDGE="lxcbr0" +LXC_ADDR="10.0.250.1" +LXC_NETMASK="255.255.255.0" +LXC_NETWORK="10.0.250.0/24" +LXC_DHCP_RANGE="10.0.253.2,10.0.250.254" +LXC_DHCP_MAX="253" + +LXC_SHUTDOWN_TIMEOUT=120