| 38 | }}} |
| 39 | == [法三:從 Source 安裝 Xen 並自行設定 Kernel 選項] == |
| 40 | {{{ |
| 41 | // Xen Hypervisior |
| 42 | $ cd /usr/src |
| 43 | $ sudo wget http://bits.xensource.com/oss-xen/release/4.0.0/xen-4.0.0.tar.gz |
| 44 | $ sudo tar zxvf xen-4.0.0.tar.gz |
| 45 | $ cd xen-4.0.0/ |
| 46 | $ sudo make -j 4 xen tools stubdom |
| 47 | $ sudo make install-xen |
| 48 | $ sudo make install-tools |
| 49 | $ sudo make install-stubdom |
| 50 | |
| 51 | // Xen Kernel |
| 52 | $ cd /usr/src |
| 53 | $ sudo git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen |
| 54 | $ cd linux-2.6-xen |
| 55 | $ sudo make menuconfig |
| 56 | $ sudo make -j 4 |
| 57 | $ sudo make install |
| 58 | $ sudo make modules_install |
| 59 | $ sudo mkinitramfs -o /boot/initrd.img-2.6.31.13 2.6.31.13 |
| 60 | |