Changes between Version 3 and Version 4 of krg_DRBL


Ignore:
Timestamp:
Feb 21, 2008, 1:32:43 PM (16 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • krg_DRBL

    v3 v4  
    1212[[BR]]
    1313
    14 *DRBL
     14 * DRBL
    1515||Diskless Remote Boot in Linux (DRBL) provides a diskless or systemless environment for client machines. It works on Debian, Ubuntu, Mandriva, Red Hat, Fedora, CentOS and SuSE. DRBL uses distributed hardware resources and makes it possible for clients to fully access local hardware. It also includes Clonezilla, a partitioning and disk cloning utility similar to Symantec Ghost.
    1616http://drbl.sourceforge.net/||
     
    2222[[BR]]
    2323
     24 == Install Kerrighed ==
     25 * Install Basic Package
     26{{{
     27sudo aptitude install gcc-3.3 automake autoconf libtool initramfs-tools make
     28sudo aptitude install kernel-package libncurses5-dev build-essential fakeroot wget bzip2
     29sudo aptitude install xmlto lsb-release
     30sudo aptitude install nfsbooted
     31}}}
     32
     33 * Download Kerighed tar ball
     34{{{
     35cd /usr/src
     36sudo wget https://gforge.inria.fr/frs/download.php/3791/kerrighed-2.2.1.tar.gz
     37sudo wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
     38
     39sudo tar -zxvf kerrighed-2.2.0.tar.gz
     40sudo tar -jxvf linux-2.6.20.tar.bz2
     41}}}
     42
     43 * Config and make Kerrighed-enable kernel, modules
     44{{{
     45cd kerrighed-2.2.0
     46sudo ./configure --with-kernel=/usr/src/linux-2.6.20 --disable-kernel-config --with-kernel-config=/usr/src/linux-2.6.20/.config
     47sudo make patch
     48
     49sudo mv /bin/sh /bin/sh.old
     50sudo ln -s /bin/bash /bin/sh
     51(Ubuntu default sh is link to dash)
     52
     53(1)Choose kernel options
     54cd ../linux-2.6.20
     55sudo make defconfig
     56sudo 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
     63cd /usr/src/kerrighed-2.2.0
     64sudo make kernel
     65sudo make
     66sudo make kernel-install
     67sudo make install 
     68}}}
     69
     70 * Make initrd image
     71{{{
     72sudo mkinitramfs -o /boot/initrd.img-2.6.20-krg 2.6.20-krg
     73sudo vim /boot/grub/menu.lst
     74
     75(ex:
     76title           Kerrighed 2.6.20-krg
     77root            (hd0,0)
     78kernel          /boot/vmlinuz-2.6.20-krg root=UUID=8bc93e80-35f9-41db-a349-02e839f2ed7c ro quiet splash
     79initrd          /boot/initrd.img-2.6.20-krg
     80quiet
     81savedefault
     82)
     83}}}
     84
     85 * config nodes information
     86{{{
     87(ex:
     88session=7
     89nbmin=8
     90krg001:0:eth0
     91krg002:1:eth0
     92krg003:2:eth0
     93krg004:3:eth0
     94krg005:4:eth0
     95krg006:5:eth0
     96krg007:6:eth0
     97krg008:7:eth0
     98)
     99}}}
     100
     101 == Install DRBL ==
     102
     103 * add deb source
     104{{{
     105sudo vim /etc/apt/sources.list
     106(add :  deb http://free.nchc.org.tw/drbl-core drbl stable)
     107
     108wget http://drbl.nchc.org.tw/GPG-KEY-DRBL sudo apt-key add GPG-KEY-DRBL
     109sudo 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||