public network.
If the guest virtual machines need to access the private network, then br1
-should be configure rather than eth1.
+should be configured rather than eth1.
To prevent the link address changing due to startup/shutdown of virtual
machines, explicitly set the value.
netmask 255.255.255.0
}}}
+{{{
+ # /etc/networking/interfaces for bar.debian.org
+
+ auto br0
+ iface br0 inet static
+ bridge_ports eth0
+ bridge_maxwait 0
+ bridge_fd 0
+ address A.B.C.3
+ netmask 255.255.255.0
+ gateway A.B.C.254
+ up ip link set addr $(cat /sys/class/net/$IFACE/address) dev $IFACE
+
+ auto eth1
+ iface eth1 inet static
+ address E.F.G.3
+ netmask 255.255.255.0
+}}}
+
=== configure lvm ===
On each node, configure lvm to ignore drbd devices and to prefer
{{{
ssed -i \
- -e 's#^\(\s*filter\s\).*#\1= [ "a|.*|", "r|/dev/drbd[0-9]+|" ]#'
+ -e 's#^\(\s*filter\s\).*#\1= [ "a|.*|", "r|/dev/drbd[0-9]+|" ]#' \
-e 's#^\(\s*preferred_names\s\).*#\1= [ "^/dev/dm-*/", "^/dev/cciss/" ]#' \
/etc/lvm/lvm.conf
service lvm2 restart
=== create kvmU symbolic links ===
On each node, create vmlinuz and initrd symlinks as expected by the kvm
-hypervisor:
+hypervisor (not strictly required if all guests will boot from their own
+kernels):
{{{
ln -s -T /boot/vmlinuz-2.6.32-5-amd64 /boot/vmlinuz-2.6-kvmU
=== exchange ssh keys ===
-ipsum loren bacon puppet
+on each node:
+
+{{{
+ mkdir -m 0700 -p /root/.ssh &&
+ ln -s /etc/ssh/ssh_host_rsa_key /root/.ssh/id_rsa
+}}}
=== configure iptables (via ferm) ===
-ipsum loren bacon puppet
+ipsum loren bacon puppet: the nodes must connect to each other over the private network for drbd purposes; puppet can handle this (poorly; needs improvement)
=== instantiate the cluster ===
=== add slave nodes ===
-For each slave node (only bar for this example), on the master node (foo):
+For each slave node (only bar for this example):
+
+on the slave, append the master's /etc/ssh/ssh_host_rsa_key.pub to
+/etc/ssh/userkeys/root. This is only required temporarily - once
+everything works puppet will put it/keep it there.
+
+on the master node (foo):
{{{
gnt-node add \
ipsum loren bacon deboostrap+dsa
+* create /etc/ganeti/instance-debootstrap/variants/dsa.conf
+* add 'dsa' to /etc/ganeti/instance-debootstrap/variants.list
+* obtain ??-dsa-* from tristano:/etc/ganeti/instance-debootstrap/hooks
+
----
== How To Install Ganeti Instances ==
qux.debian.org
}}}
-Please note that the dsa bootscript will only configure eth1 (nic0). If
-specifying a second internface, the guest operating system must be updated
-manually.
-
When updating an existing instance, add the interface:
{{{