Changes between Version 29 and Version 30 of Eucalyptus/Install


Ignore:
Timestamp:
May 14, 2009, 11:01:09 AM (15 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Eucalyptus/Install

    v29 v30  
    8888----
    8989= 【4.管理】 =
    90 == ''__4.1 Euc 印象檔管理__'' ==
    91  * 執行前的注意事項: (1)已 source 'eucaer' 檔案 (2)user 可以註冊 Image,但只有管理者可以註冊 kernel/ramdisks (3)已安裝EC2 tools: ec2-api-tools-1.3-30349 和 ec2-ami-tools-1.3-26357)
    92  * 新增 Image
    93 {{{
    94 ### Euc 提供的 test image ###
    95 $ cd $EUCALYPTUS_SRC/eucalyptus-src-deps
    96 $ tar zxvf euca-ttylinux.tgz
    97 
    98 ### 新增 Kernel 到 Walrus 並再 Euc 註冊此 Kernel ###
    99 $ ec2-bundle-image -i ttylinux/vmlinuz-2.6.16.33-xen --kernel true
    100 $ ec2-upload-bundle -b kernel-bucket -m /tmp/vmlinuz-2.6.16.33-xen.manifest.xml
    101 $ ec2-register kernel-bucket/vmlinuz-2.6.16.33-xen.manifest.xml
    102 
    103 ### 增加 root FS Image 給 Walrus ###
    104 $ ec2-bundle-image -i ttylinux/ttylinux.img
    105 $ ec2-upload-bundle -b image-bucket -m /tmp/ttylinux.img.manifest.xml
    106 $ ec2-register image-bucket/ttylinux.img.manifest.xml
    107 
    108 ### 測試的 Image 可以不用 ramdisks,但若需要可以用以下指令新增 ###
    109 $ ec2-bundle-image -i <path/to/my/>initrd.img --ramdisk true
    110 $ ec2-upload-bundle -b <bucket_name> -m <path/to/my/>initrd.img.manifest.xml
    111 $ ec2-register <bucket_name>/initrd.img.manifest.xml
    112 }}}
    113  * 分配 Kernel 和 Ramdisks 給 VMs (有三種方法)
    114    i. 在 'ec2-bundle-image' 步驟指定
    115 {{{
    116 $ ec2-bundle-image -i <path/to/my/>vmimage.img --kernel <eki-XXXXXXXX> --ramdisk <eri-XXXXXXXX>
    117 }}}
    118    ii. 再執行時指定 'ec2-run-instances'
    119 {{{
    120 ec2-run-instances <emi-XXXXXXXX> --kernel <eki-XXXXXXXX> --ramdisk <eri-XXXXXXXX>
    121 }}}
    122    iii. 在 https://your.cloud.server:8443 選擇 'Configuration' 標籤,新增 <eki-xxxxxxxx> 和 <eri-xxxxxxxx> 作為預設的 kernel 和 ramdisk 
    123  * 刪除 Image
    124 {{{
    125 ### 先取消註冊 ###
    126 ec2-deregister <emi-XXXXXXXX>
    127 
    128 ### 移除存於 bucke 的檔案 ###
    129 ec2-delete-bundle -a $EC2_ACCESS_KEY -s $EC2_SECRET_KEY --url $S3_URL -b <bucket> -p <file prefix>
    130 
    131 ### 移除檔案和 bucke (--clear)###
    132 ec2-delete-bundle -a $EC2_ACCESS_KEY -s $EC2_SECRET_KEY --url $S3_URL -b <bucket> -p <file prefix> --clear
    133 }}}
    134 
     90== ''__[wiki:Eucalyptus/Images 4.1 Euc 印象檔管理]''__ ==
    13591== ''__4.2 Euc 管理__'' ==
    13692 * 管理者環境