| 24 | == Install Kerrighed == |
| 25 | * Install Basic Package |
| 26 | {{{ |
| 27 | sudo aptitude install gcc-3.3 automake autoconf libtool initramfs-tools make |
| 28 | sudo aptitude install kernel-package libncurses5-dev build-essential fakeroot wget bzip2 |
| 29 | sudo aptitude install xmlto lsb-release |
| 30 | sudo aptitude install nfsbooted |
| 31 | }}} |
| 32 | |
| 33 | * Download Kerighed tar ball |
| 34 | {{{ |
| 35 | cd /usr/src |
| 36 | sudo wget https://gforge.inria.fr/frs/download.php/3791/kerrighed-2.2.1.tar.gz |
| 37 | sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2 |
| 38 | |
| 39 | sudo tar -zxvf kerrighed-2.2.0.tar.gz |
| 40 | sudo tar -jxvf linux-2.6.20.tar.bz2 |
| 41 | }}} |
| 42 | |
| 43 | * Config and make Kerrighed-enable kernel, modules |
| 44 | {{{ |
| 45 | cd kerrighed-2.2.0 |
| 46 | sudo ./configure --with-kernel=/usr/src/linux-2.6.20 --disable-kernel-config --with-kernel-config=/usr/src/linux-2.6.20/.config |
| 47 | sudo make patch |
| 48 | |
| 49 | sudo mv /bin/sh /bin/sh.old |
| 50 | sudo ln -s /bin/bash /bin/sh |
| 51 | (Ubuntu default sh is link to dash) |
| 52 | |
| 53 | (1)Choose kernel options |
| 54 | cd ../linux-2.6.20 |
| 55 | sudo make defconfig |
| 56 | sudo make menuconfig |
| 57 | (0.If your CPU arch is intel, choose i386 |
| 58 | 1.Cancel Preemption, KEYS and SMP options |
| 59 | 2.Enable netwok block device, plug and play, NIC Driver and boot from nfs must to build-in |
| 60 | ) |
| 61 | |
| 62 | (2)Make |
| 63 | cd /usr/src/kerrighed-2.2.0 |
| 64 | sudo make kernel |
| 65 | sudo make |
| 66 | sudo make kernel-install |
| 67 | sudo make install |
| 68 | }}} |
| 69 | |
| 70 | * Make initrd image |
| 71 | {{{ |
| 72 | sudo mkinitramfs -o /boot/initrd.img-2.6.20-krg 2.6.20-krg |
| 73 | sudo vim /boot/grub/menu.lst |
| 74 | |
| 75 | (ex: |
| 76 | title Kerrighed 2.6.20-krg |
| 77 | root (hd0,0) |
| 78 | kernel /boot/vmlinuz-2.6.20-krg root=UUID=8bc93e80-35f9-41db-a349-02e839f2ed7c ro quiet splash |
| 79 | initrd /boot/initrd.img-2.6.20-krg |
| 80 | quiet |
| 81 | savedefault |
| 82 | ) |
| 83 | }}} |
| 84 | |
| 85 | * config nodes information |
| 86 | {{{ |
| 87 | (ex: |
| 88 | session=7 |
| 89 | nbmin=8 |
| 90 | krg001:0:eth0 |
| 91 | krg002:1:eth0 |
| 92 | krg003:2:eth0 |
| 93 | krg004:3:eth0 |
| 94 | krg005:4:eth0 |
| 95 | krg006:5:eth0 |
| 96 | krg007:6:eth0 |
| 97 | krg008:7:eth0 |
| 98 | ) |
| 99 | }}} |
| 100 | |
| 101 | == Install DRBL == |
| 102 | |
| 103 | * add deb source |
| 104 | {{{ |
| 105 | sudo vim /etc/apt/sources.list |
| 106 | (add : deb http://free.nchc.org.tw/drbl-core drbl stable) |
| 107 | |
| 108 | wget http://drbl.nchc.org.tw/GPG-KEY-DRBL sudo apt-key add GPG-KEY-DRBL |
| 109 | sudo apt-get update |
| 110 | }}} |
| 111 | |
| 112 | * install DRBL |
| 113 | ||Before we install DRBL, we must clear plan our DRBL environment. The below layout is our environment, eth0 used to connect WAN, eth1 used for DRBL internal clients. |
| 114 | |
| 115 | NIC NIC IP Clients |
| 116 | +-----------------------------+ |
| 117 | | DRBL SERVER | |
| 118 | | | |
| 119 | | +-- [eth0] 140.110.X.X +- to WAN |
| 120 | | | |
| 121 | | +-- [eth1] 192.168.0.1 +- to clients group 1 [ 7 clients, their IP from 192.168.0.2 - 192.168.0.8] |
| 122 | | | |
| 123 | +-----------------------------+ |
| 124 | || |