Changes between Initial Version and Version 1 of Xen_Installation/Xen4.0.1


Ignore:
Timestamp:
Sep 2, 2010, 5:04:18 PM (14 years ago)
Author:
rider
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xen_Installation/Xen4.0.1

    v1 v1  
     1[[PageOutline]]
     2{{{
     3#!html
     4<h1 style="text-align: center; color: blue">Xen 4.0.1_rc6 on Debian 6.0 Squeeze</h1>
     5}}}
     6
     7= 【Step 1: 安裝 Xen Hypervisor和 Xen-patched Kernel】 =
     8 * 在 Debian Squeeze Testing 版本上快速安裝 Xen-4.0.1 Hypervisor & Xen patched kernel - 2.6.32-5
     9{{{
     10$ sudo apt-get update
     11$ sudo apt-get install xen-linux-system-2.6.32-5-xen-amd64
     12}}}
     13----
     14= 【Step 2: 編輯 Xend 設定檔 & 開機選單】 =
     15 * 編輯 xend 的設定檔 /etc/xen/xend-config.sxp
     16{{{
     17$ sudo su
     18# echo HWCLOCKACCESS=no >>/etc/default/rcS
     19# echo loop max_loop=100 >> /etc/modules
     20# echo blktap >> /etc/modules
     21[CTRL+D]
     22$ sudo vim /etc/xen/xend-config.sxp
     23}}}
     24{{{
     25#!sh
     2660  (xend-http-server yes)
     2761  (xend-unix-server yes)
     2862  (xend-tcp-xmlrpc-server yes)
     2964  (xend-relocation-server yes)
     3068  (xend-unix-path /var/lib/xend/xend-socket)
     31
     3274  (xen-tcp-xmlrpc-server-port 8006)
     3384  (xend-port            8000)
     3488  (xend-relocation-port 8002)
     35107 (xend-address localhost)
     36125 (xend-relocation-hosts-allow '')
     37
     38149  (network-script 'network-bridge netdev=eth1')
     39}}}
     40 * 編輯 boot menu
     41{{{
     42$ sudo vim /boot/grub/grub.cfg
     43menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64' --class debian --class gnu-linux --class gnu --class os {
     44        insmod part_msdos
     45        insmod ext2
     46        set root='(hd0,msdos1)'
     47        search --no-floppy --fs-uuid --set 5b161b4b-e438-4827-8227-4396d26acfe0
     48        echo    'Loading Linux 2.6.32-5-xen-amd64 ...'
     49        multiboot (hd0,1)/boot/xen-4.0-amd64.gz
     50        module  /boot/vmlinuz-2.6.32-5-xen-amd64 root=UUID=5b161b4b-e438-4827-8227-4396d26acfe0 ro  quiet
     51        echo    'Loading initial ramdisk ...'
     52        module  /boot/initrd.img-2.6.32-5-xen-amd64
     53}
     54}}}
     55 * 重開機
     56{{{
     57$ sync ; sudo reboot
     58}}}
     59= 【Step 3: 安裝 Xen image 製作工具】 =
     60 * 安裝 xen-tools
     61{{{
     62$ sudo apt-get install xen-tools
     63}}}
     64 * 編輯 xen-tools 的設定檔
     65{{{
     66$ sudo vim /etc/xen-tools/xen-tools.conf
     67}}}
     68{{{
     69#!sh
     7045  dir = /home
     7183  install-method = debootstrap
     72128 size   = 2Gb      # Disk image size.
     73129 memory = 128Mb    # Memory size
     74130 swap   = 128Mb    # Swap size
     75132 fs     = ext3     # use the EXT3 filesystem for the disk image.
     76133 dist   = lucid    # Default distribution to install.
     77134 image  = sparse   # Specify sparse vs. full disk images.
     78
     79
     80163 gateway   = 192.168.1.254
     81164 netmask   = 255.255.255.0
     82165 broadcast = 192.168.1.255
     83
     84233 passwd = 1
     85261 mirror = http://archive.ubuntu.com/ubuntu
     86313 serial_device = hvc0
     87331 output    = /home/domains
     88}}}
     89= 【Step 4: Xen Information Check】 =
     90$ sudo xm info
     91{{{
     92host                   : VMserver
     93release                : 2.6.32-5-xen-amd64
     94version                : #1 SMP Thu Aug 12 15:17:50 UTC 2010
     95machine                : x86_64
     96nr_cpus                : 4
     97nr_nodes               : 1
     98cores_per_socket       : 4
     99threads_per_core       : 1
     100cpu_mhz                : 2826
     101hw_caps                : bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000
     102virt_caps              : hvm hvm_directio
     103total_memory           : 8025
     104free_memory            : 1509
     105node_to_cpu            : node0:0-3
     106node_to_memory         : node0:1509
     107node_to_dma32_mem      : node0:813
     108max_node_id            : 0
     109xen_major              : 4
     110xen_minor              : 0
     111xen_extra              : .1-rc6
     112xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
     113xen_scheduler          : credit
     114xen_pagesize           : 4096
     115platform_params        : virt_start=0xffff800000000000
     116xen_changeset          : unavailable
     117xen_commandline        :
     118cc_compiler            : gcc version 4.4.5 20100816 (prerelease) (Debian 4.4.4-9)
     119cc_compile_by          : waldi
     120cc_compile_domain      : debian.org
     121cc_compile_date        : Tue Aug 17 21:17:33 UTC 2010
     122xend_config_format     : 4
     123}}}