projects
/
matthijs
/
servers
/
tika.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4f8e07
)
lxc: Setup networking for the template container.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 15 Aug 2011 21:28:00 +0000
(23:28 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 15 Aug 2011 21:28:00 +0000
(23:28 +0200)
var/lib/lxc/template/config
patch
|
blob
|
history
diff --git
a/var/lib/lxc/template/config
b/var/lib/lxc/template/config
index 7b1fd74dc2fef9819f3f639b942febb56c11b282..315bbb417c9a866b9b5b6c025787d28aafae326a 100644
(file)
--- a/
var/lib/lxc/template/config
+++ b/
var/lib/lxc/template/config
@@
-7,6
+7,17
@@
lxc.rootfs = /var/lib/lxc/template/rootfs
# Log console output
lxc.console = /var/log/lxc/template.lxc
# 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
# The number of ttys available (shouldn't be less than the getty's
# configured in the inittab).
lxc.tty = 4