Skip to content

Instantly share code, notes, and snippets.

@earnubs
Created November 13, 2014 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earnubs/0ff5f1d5da601a605dc0 to your computer and use it in GitHub Desktop.
Save earnubs/0ff5f1d5da601a605dc0 to your computer and use it in GitHub Desktop.
LXC config
# Template used to create this container: /usr/share/lxc/templates/lxc-ubuntu
# Parameters passed to the template: -a amd64 -r trusty -b{$USER}
# For additional config options, please look at lxc.container.conf(5)
# Autostart a container with name NAME (change this)
# Common configuration
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
# Container specific configuration
lxc.rootfs = /var/lib/lxc/LXC-NAME/rootfs
lxc.mount = /var/lib/lxc/LXC-NAME/fstab
lxc.utsname = LXC-NAME
lxc.arch = amd64
lxc.start.auto = 1
lxc.start.delay = 5
# Network configuration
lxc.network.type=veth
lxc.network.link=br0
lxc.network.flags=up
#lxc.network.hwaddr = 00:16:3e:xx:xx:xx
lxc.network.type=veth
lxc.network.link=br1
lxc.network.flags=up
#lxc.network.hwaddr = 00:16:3e:xx:xx:xx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment