| 1 | [[PageOutline]] |
| 2 | = Build Xen & Lustre enabled kernel = |
| 3 | * Our OS: Dbian etch |
| 4 | * Our Method:先使用xen patch過的kernel 2.6.18,之後在使用debian Lustre團隊的 patch file 來patch,將這新的kernel安裝至系統 |
| 5 | |
| 6 | == 1.必要套件 == |
| 7 | * Build kernel需要的: |
| 8 | {{{ |
| 9 | sudo aptitude install build-essential libncurses5-dev kernal-package |
| 10 | }}} |
| 11 | * Xne需要的: |
| 12 | {{{ |
| 13 | $ sudo apt-get install iproute bridge-utils python-twisted gcc binutils make zlib1g-dev python-dev transfig bzip2 \ |
| 14 | screen ssh debootstrap libcurl3-dev libncurses5-dev x-dev libsdl1.2-dev bin86 bcc python-pam patch latex-make \ |
| 15 | qemu qemu-launcher qemuctl graphviz graphviz-dev lvm2 libvncserver-dev libjpeg62-dev libjpeg62 gettext python-xml \ |
| 16 | gawk tetex-extra tetex-base openssl libssl-dev mercurial |
| 17 | }}} |
| 18 | |
| 19 | * Lustre需要的: |
| 20 | {{{ |
| 21 | $ sudo aptitude install bzip2 debhelper dpatch libsnmp-dev module-assistant |
| 22 | |
| 23 | 安裝 libxml |
| 24 | $ sudo wget http://http.us.debian.org/debian/pool/main/libx/libxml2/libxml2_2.6.27.dfsg-2_i386.deb |
| 25 | $ sudo dpkg -i libxml2_2.6.27.dfsg-2_i386.deb |
| 26 | |
| 27 | 安裝 pyxml |
| 28 | $ sudo wget PyXML-0.8.4.tar.gz |
| 29 | $ sudo python setup.py build |
| 30 | $ sudo python setup.py install |
| 31 | }}} |
| 32 | [[BR]] |
| 33 | == 2.Patch和安裝kernel == |
| 34 | * 下載Xen patch過的2.6.18 kernel和 Xen tar ball |
| 35 | {{{ |
| 36 | $ cd /usr/src |
| 37 | $ sudo wget http://bits.xensource.com/oss-xen/release/3.2.1/xen-3.2.1.tar.gz |
| 38 | $ sudo tar zxvf xen-3.2.1.tar.gz |
| 39 | $ sudo hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg |
| 40 | |
| 41 | 下載Debian Lustre 的 deb 檔 (http://packages.debian.org/source/sid/lustre) |
| 42 | $ wget http://debian.linux.org.tw/debian/pool/main/l/lustre/linux-patch-lustre_1.6.5-1_all.deb |
| 43 | $ wget http://debian.linux.org.tw/debian/pool/main/l/lustre/lustre-source_1.6.5-1_all.deb |
| 44 | $ dpkg -i linux-patch-lustre_1.6.5-1_all.deb lustre-source_1.6.5-1_all.deb |
| 45 | |
| 46 | 使用Lustre的patch file 來 patch xen kernel |
| 47 | $ cd linux-2.6.18-xen.hg |
| 48 | $ sudo ln -s /usr/src/kernel-patches/lustre/series/2.6.18-vanilla.series /usr/src/linux-2.6.18-xen.hg/series |
| 49 | $ sudo ln -s /usr/src/kernel-patches/lustre/patches/ /usr/src/linux-2.6.18-xen.hg/. |
| 50 | $ sudo quilt -av push |
| 51 | }}} |
| 52 | [[BR]] |
| 53 | == 3.Make kernel 和 Xen == |
| 54 | |