container.config 652 Bytes
Newer Older
glucas's avatar
glucas committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Store this conf file in /var/lib/lxc/<lxc_name>/

lxc.rootfs = /var/lib/lxc/<lxc_name>/rootfs
lxc.utsname = <lxc_name>
lxc.arch = amd64
# Don't forget to touch /var/lib/lxc/<lxc_name>/fstab ;)
lxc.mount = /var/lib/lxc/<lxc_name>/fstab

# Common configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.include = /etc/lxc/drop_cap_admin.conf
lxc.include = /etc/lxc/consoles_perms.conf

# Network config
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.veth.pair = veth_<lxc_name>
lxc.network.hwaddr = <generated_mac_addr>

# Start this container at boot time
lxc.start.auto = 1