I'm using privileged containers (mostly because I haven't researched
unprivileged ones enough?).
Current config of an example container:
---------------
lxc.net.0.type = veth
lxc.net.0.flags = up
lxc.net.0.link = br0
lxc.net.0.ipv4.address =
192.168.1.85/24
lxc.net.0.ipv4.gateway = 192.168.1.1
lxc.rootfs.path = /var/lib/lxc/postgres/rootfs
lxc.mount.entry = /guestfs/postgresql
/var/lib/lxc/postgres/rootfs/var/lib/postgresql none bind 0 0
lxc.mount.entry = /guestfs/pg_xlog
/var/lib/lxc/postgres/rootfs/var/lib/pg_xlog none bind 0 0
# Common configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
# Container specific configuration
lxc.tty.max = 4
ddlxc.uts.name = postgres
lxc.arch = amd64
lxc.start.auto = 1
------------------
Previous config (before host upgrade):
-----------------
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.ipv4 =
192.168.1.85/24
lxc.network.ipv4.gateway = 192.168.1.1
lxc.rootfs = /var/lib/lxc/postgres/rootfs
lxc.rootfs.backend = dir
lxc.mount.entry = /guestfs/postgresql
/var/lib/lxc/postgres/rootfs/var/lib/postgresql none bind 0 0
lxc.mount.entry = /guestfs/pg_xlog
/var/lib/lxc/postgres/rootfs/var/lib/pg_xlog none bind 0 0
# Common configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
# Container specific configuration
lxc.tty = 4
ddlxc.utsname = postgres
lxc.arch = amd64
lxc.start.auto = 1
-----------------
Do you need debian.common.conf and common.conf and others? Or is there a
way to dump the full config after all includes?
Cheers,
Richard