| 4 | | == 2. == |
| | 8 | [[BR]] |
| | 9 | == 2. Install Xen-3.1.3 == |
| | 10 | * [http://www.xen.org/download/dl_31tarballs.html Xen-3.1.3] |
| | 11 | {{{ |
| | 12 | $ cd /usr/src ; wget http://bits.xensource.com/oss-xen/release/3.1.3/xen-3.1.3.tar.gz |
| | 13 | $ tar zxvf xen-3.1.3.tar.gz |
| | 14 | $ cd xen-3.1.3 |
| | 15 | $ make -j 4 world |
| | 16 | $ make install |
| | 17 | $ update-grub |
| | 18 | |
| | 19 | ### If your loop is build-in kernel ### |
| | 20 | $ vim /boot/grub/menu.lst |
| | 21 | netloop.nloopbacks=200 |
| | 22 | }}} |
| | 23 | |
| | 24 | [[BR]] |
| | 25 | == 3. Install xen-tools == |
| | 26 | * [http://www.xen-tools.org/software/xen-tools/ xen-tools] |
| | 27 | {{{ |
| | 28 | $ wget http://www.xen-tools.org/software/xen-tools/xen-tools-3.9.tar.gz |
| | 29 | $ tar xen-tools-3.9.tar.gz |
| | 30 | $ cd xen-tools-3.9 ; make install |
| | 31 | |
| | 32 | ### Edit xen-tools config ### |
| | 33 | $ vim /etc/xen-tools/xen-tools.conf |
| | 34 | }}} |
| | 35 | |
| | 36 | [[BR]] |
| | 37 | == 4. Test Xen == |
| | 38 | {{{ |
| | 39 | ### Edit xen config for you demand ### |
| | 40 | $ vim /etc/xen/xend-config.sxp |
| | 41 | |
| | 42 | ### Startup Xen ### |
| | 43 | $ xend start |
| | 44 | |
| | 45 | ### Check Xen ### |
| | 46 | $ ifconfig |
| | 47 | $ less /var/log/xen/xend.log |
| | 48 | $ less /var/log/xen/xend-debug.log |
| | 49 | //If xend and xen networking can normal startuped, you can go to next step. If you meet problem, check your xen config, network, loop device and log message. |
| | 50 | |
| | 51 | ### Create VM ### |
| | 52 | $ xen-create-image --hostname vm01 --ip 140.110.X.X |
| | 53 | |
| | 54 | ### Booting VM01 ### |
| | 55 | $ cd /etc/xen |
| | 56 | $ xm create vm01.cfg -c |
| | 57 | //If vm01 can normal booting! God job! |
| | 58 | }}} |
| | 59 | |