X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=input%2Fhowto%2Finstall-ganeti.creole;h=65647ba44dbaf7a7afc54bca29eeb3b079677bb6;hb=3dd7afb73a197eb724d681c52d42922a57e285a8;hp=b46038ebdcb41ebfd14749aa4ef10337ded2a0a4;hpb=2b91ec2c2778b0e78efa0a29d432456563ad4dae;p=mirror%2Fdsa-wiki.git diff --git a/input/howto/install-ganeti.creole b/input/howto/install-ganeti.creole index b46038e..65647ba 100644 --- a/input/howto/install-ganeti.creole +++ b/input/howto/install-ganeti.creole @@ -58,7 +58,7 @@ The bridge interface, br0, is used by the guest virtual machines to reach the 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. @@ -82,6 +82,25 @@ 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 @@ -90,7 +109,7 @@ 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 @@ -107,7 +126,8 @@ On each node, create a volume group: === 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 @@ -116,11 +136,16 @@ hypervisor: === 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 === @@ -150,7 +175,13 @@ Note the following: === 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 \ @@ -178,6 +209,10 @@ If everything has been configured correctly, no errors should be reported. 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 == @@ -257,10 +292,6 @@ When creating the instance, indicate both netwokrs: 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: {{{