From: Penny Leach Date: Fri, 29 Aug 2008 12:13:05 +0000 (+0100) Subject: instructions for extra stuff you need on the host to get this working X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=80a47ab4fc672284ffca88b74b5e51d092f3d377;p=vserverctl.git instructions for extra stuff you need on the host to get this working --- diff --git a/extras/README b/extras/README new file mode 100644 index 0000000..04cc642 --- /dev/null +++ b/extras/README @@ -0,0 +1,2 @@ +instructions for configuring various aspects of the host + diff --git a/extras/apache/README b/extras/apache/README new file mode 100644 index 0000000..8a37d1f --- /dev/null +++ b/extras/apache/README @@ -0,0 +1,10 @@ +/etc/apache2/apache2.conf needs in it: + +Include /etc/apache2/vservers + +You also need to be sure to only listen on the host interface in /etc/apache2/posts.conf otherwise apache won't be able to bind in the vservers. For some reason you can't bind apache to an interface. I keep meaning to add ifupdown rules on the host to change the bind address on the host for apache since the laptop changes its address all the time, but so far haven't gotten around to it. + +You also need to enable all the proxy modules on the host + + + diff --git a/extras/dnsmasq/README b/extras/dnsmasq/README new file mode 100644 index 0000000..ad09375 --- /dev/null +++ b/extras/dnsmasq/README @@ -0,0 +1,2 @@ +the only change i made to /etc/dnsmasq.conf was the include line you see in this patch. +the dnsmasq-vservers.conf file should start out empty - this is just an example from my current running setup. diff --git a/extras/dnsmasq/dnsmasq-vservers.conf b/extras/dnsmasq/dnsmasq-vservers.conf new file mode 100644 index 0000000..28f1f0f --- /dev/null +++ b/extras/dnsmasq/dnsmasq-vservers.conf @@ -0,0 +1,5 @@ +address=/build.hermia/10.0.0.2 +address=/pg.hermia/10.0.0.4 +address=/web.hermia/10.0.0.3 +address=/moodle.hermia/10.0.0.5 +address=/mahara.hermia/10.0.0.6 diff --git a/extras/dnsmasq/dnsmasq.diff b/extras/dnsmasq/dnsmasq.diff new file mode 100644 index 0000000..e00aac2 --- /dev/null +++ b/extras/dnsmasq/dnsmasq.diff @@ -0,0 +1,10 @@ +--- dnsmasq.conf.example 2008-08-29 13:07:55.000000000 +0100 ++++ dnsmasq.conf 2008-08-29 13:03:12.000000000 +0100 +@@ -469,3 +469,7 @@ + # Include a another lot of configuration options. + #conf-file=/etc/dnsmasq.more.conf + #conf-dir=/etc/dnsmasq.d ++# ++ ++# configuration for vservers go here ++conf-file=/etc/dnsmasq-vservers.conf diff --git a/extras/networking/README b/extras/networking/README new file mode 100644 index 0000000..d38f57e --- /dev/null +++ b/extras/networking/README @@ -0,0 +1,12 @@ +I have the following lines in /etc/network/interfaces: + +auto dummy0 +iface dummy0 inet static + address 10.0.0.1 + netmask 255.255.255.0 + up iptables -t nat -I POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE + down iptables -t nat -D POSTROUTING -s 10.0.0.0/24 -o eth0 -j MASQUERADE + up iptables -t nat -I POSTROUTING -s 10.0.0.0/24 -o wlan1 -j MASQUERADE + down iptables -t nat -D POSTROUTING -s 10.0.0.0/24 -o wlan1 -j MASQUERADE + up iptables -t nat -I POSTROUTING -s 10.0.0.0/24 -o wlan0 -j MASQUERADE + down iptables -t nat -D POSTROUTING -s 10.0.0.0/24 -o wlan0 -j MASQUERADE diff --git a/extras/resolvconf/README b/extras/resolvconf/README new file mode 100644 index 0000000..0a47ec4 --- /dev/null +++ b/extras/resolvconf/README @@ -0,0 +1 @@ +these live in /etc/resolvconf/resolv.conf.d/ diff --git a/extras/resolvconf/head b/extras/resolvconf/head new file mode 100644 index 0000000..3041132 --- /dev/null +++ b/extras/resolvconf/head @@ -0,0 +1,3 @@ +# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) +# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN +nameserver 127.0.0.1 diff --git a/extras/resolvconf/tail b/extras/resolvconf/tail new file mode 100644 index 0000000..d17ffa5 --- /dev/null +++ b/extras/resolvconf/tail @@ -0,0 +1 @@ +nameserver 213.203.238.4