Record of some of the computer tech I deal with so that it's documented at least somewhere.

Monday 2 March 2009

Installing Debian 5 to AoE

before you copy this procedure, the initrd.aoe didn't work out, I've got to inspect it an compare it against the one that worked for etch



haha found aoe.ko on the install disk
on the vblade server aptitude vblade

dd if=/dev/zero of=lenny bs=1048576 count=4096
vblade 3 1 eth0 lenny
dd if=/dev/zero of=home bs=1024 count=204800
vblade 3 2 eth0 home
dd if=/dev/zero of=swap bs=1024 count=204800
vblade 3 3 eth0 swap


run the installer until you can get a shell (alt-f2)
which for me was "configure the network"



udpkg --unpack /cdrom/pool/main/l/linux-2.6/linux-image-2.6.26-1-486_2.6.26-13_i386.deb
insmod /lib/modules/2.6.26-1-486/kernel/drivers/block/aoe/aoe.ko

cd /dev
ln -s /dev/etherd/e3.1 hda
ln -s /dev/etherd/e3.2 hdb
ln -s /dev/etherd/e3.3 hdd



The installer will moan that it can't install GRUB and give you the choice to skip along, do that.
Eventually you get "Installation is complete" and a
choice.

Now it's hack time. Crack open the initrd.img the installer just made

chroot /target
mkdir /tmp/initrd && cd /tmp/initrd
gunzip < /initrd.img | cpio -i --make-directories


I got the scripts from http://www.etherboot.org/wiki/sanboot/debian_and_ubuntu

apt-get install aoetools
cp /sbin/aoe-discover /tmp/initrd/sbin/
cd /etc/initramfs-tools/
wget http://www.proweb.co.uk/~matt/aoe/hooks -O hooks/aoetools
wget http://www.proweb.co.uk/~matt/aoe/scripts -O scripts/aoetools
chmod 755 hooks/aoetools scripts/aoetools
cp scripts/aoetools /tmp/initrd/scripts/


Then make the initrd.img again

cd /tmp/initrd
find . | cpio -o -H newc | gzip -9 > /boot/initrd.aoe



Then get it off the machine and on to the TFTP server.
scp /boot/initrd.aoe /boot/vmlinuz-2.6.6.26-1.686 TFTP-server:/var/lib/tftpboot/

Now to taste the pudding