X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=var%2Flib%2Flxc%2Ftemplate%2Fconfig;h=aaaae21b6e62d177cedd9053b5a243881109f164;hb=5bce605ad88050dd17cb07bb91c31fec3de68abd;hp=fbef1b0accbde9265398a80182b52aca246c8f4b;hpb=af2c9cade97d0b4acca8750937da231cce92b206;p=matthijs%2Fservers%2Ftika.git diff --git a/var/lib/lxc/template/config b/var/lib/lxc/template/config index fbef1b0..aaaae21 100644 --- a/var/lib/lxc/template/config +++ b/var/lib/lxc/template/config @@ -1,10 +1,30 @@ -lxc.tty = 4 -lxc.pts = 256 -lxc.rootfs = /var/lib/lxc/template/rootfs - # Hostname lxc.utsname = template +# Use this root filesystem +lxc.rootfs = /var/lib/lxc/template/rootfs + +# Log console output +lxc.console = /var/log/lxc/template.lxc + +# The container gets a single virtual eth0 interface with a statically assigned +# address (assigned by lxc-start, no need for the container to assign any +# address itself). +lxc.network.type = veth +lxc.network.flags = up +lxc.network.veth.pair = lxc-template +lxc.network.name = eth0 +lxc.network.link = br-lxc +lxc.network.ipv4 = 10.42.0.10/24 +lxc.network.ipv4.gateway = auto + +# The number of ttys available (shouldn't be less than the getty's +# configured in the inittab). +lxc.tty = 4 + +# Use private pts for the container +lxc.pts = 256 + # Deny all devices, except the following lxc.cgroup.devices.deny = a # /dev/null @@ -29,6 +49,7 @@ lxc.cgroup.devices.allow = c 5:2 rwm # rtc lxc.cgroup.devices.allow = c 254:0 rwm -# mounts point -lxc.mount.entry=proc /var/lib/lxc/template/rootfs/proc proc nodev,noexec,nosuid 0 0 -lxc.mount.entry=sysfs /var/lib/lxc/template/rootfs/sys sysfs defaults 0 0 +# mounts (note that the second item in each list is the mount point, relative +# to the rootfs) +lxc.mount.entry=proc proc proc nodev,noexec,nosuid 0 0 +lxc.mount.entry=sysfs sys sysfs defaults 0 0