Created
May 31, 2015 13:36
-
-
Save whiteley/3ea780b4b8a865933f24 to your computer and use it in GitHub Desktop.
trusty lxc defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MIRROR to be used by ubuntu template at container creation: | |
# Leaving it undefined is fine | |
#MIRROR="http://archive.ubuntu.com/ubuntu" | |
# or | |
#MIRROR="http://<host-ip-addr>:3142/archive.ubuntu.com/ubuntu" | |
# LXC_AUTO - whether or not to start containers symlinked under | |
# /etc/lxc/auto | |
LXC_AUTO="true" | |
USE_LXC_BRIDGE="false" # overridden in lxc-net | |
[ -f /etc/default/lxc-net ] && . /etc/default/lxc-net | |
LXC_SHUTDOWN_TIMEOUT=120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is auto-generated by lxc.postinst if it does not | |
# exist. Customizations will not be overridden. | |
# 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 lxcbr0, then | |
# you will also need to update your /etc/lxc/default.conf as well as the | |
# configuration (/var/lib/lxc/<container>/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.3.1" | |
LXC_NETMASK="255.255.255.0" | |
LXC_NETWORK="10.0.3.0/24" | |
LXC_DHCP_RANGE="10.0.3.2,10.0.3.254" | |
LXC_DHCP_MAX="253" | |
# Uncomment the next line if you'd like to use a conf-file for the lxcbr0 | |
# dnsmasq. For instance, you can use 'dhcp-host=mail1,10.0.3.100' to have | |
# container 'mail1' always get ip address 10.0.3.100. | |
#LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf | |
# Uncomment the next line if you want lxcbr0's dnsmasq to resolve the .lxc | |
# domain. You can then add "server=/lxc/10.0.3.1' (or your actual ) | |
# to /etc/dnsmasq.conf, after which 'container1.lxc' will resolve on your | |
# host. | |
#LXC_DOMAIN="lxc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment