Changes between Initial Version and Version 1 of Eucalyptus/Images


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Eucalyptus/Images

    v1 v1  
     1[[PageOutline]]
     2{{{
     3#!html
     4<h1 style="text-align: center; color: blue">4.1 印象檔管理</h1>
     5}}}
     6----
     7= 注意事項 =
     8 * 已 source 'eucaer' 檔案
     9 * user 可以註冊 Image,但只有管理者可以註冊 kernel/ramdisks
     10 * 已安裝EC2 tools: ec2-api-tools-1.3-30349 和 ec2-ami-tools-1.3-26357
     11 * [http://open.eucalyptus.com/wiki/EucalyptusUserImageCreatorGuide_v1.5 可下載 Euc 提供的 Image]
     12----
     13= 4.1.1 新增 Image =
     14{{{
     15### Euc 提供的 test image ###
     16$ cd $EUCALYPTUS_SRC/eucalyptus-src-deps
     17$ tar zxvf euca-ttylinux.tgz
     18
     19### 新增 Kernel 到 Walrus 並再 Euc 註冊此 Kernel ###
     20$ ec2-bundle-image -i ttylinux/vmlinuz-2.6.16.33-xen --kernel true
     21$ ec2-upload-bundle -b kernel-bucket -m /tmp/vmlinuz-2.6.16.33-xen.manifest.xml
     22$ ec2-register kernel-bucket/vmlinuz-2.6.16.33-xen.manifest.xml
     23
     24### 增加 root FS Image 給 Walrus ###
     25$ ec2-bundle-image -i ttylinux/ttylinux.img
     26$ ec2-upload-bundle -b image-bucket -m /tmp/ttylinux.img.manifest.xml
     27$ ec2-register image-bucket/ttylinux.img.manifest.xml
     28
     29### 測試的 Image 可以不用 ramdisks,但若需要可以用以下指令新增 ###
     30$ ec2-bundle-image -i <path/to/my/>initrd.img --ramdisk true
     31$ ec2-upload-bundle -b <bucket_name> -m <path/to/my/>initrd.img.manifest.xml
     32$ ec2-register <bucket_name>/initrd.img.manifest.xml
     33}}}
     34 * 分配 Kernel 和 Ramdisks 給 VMs (有三種方法)
     35   i. 在 'ec2-bundle-image' 步驟指定
     36{{{
     37$ ec2-bundle-image -i <path/to/my/>vmimage.img --kernel <eki-XXXXXXXX> --ramdisk <eri-XXXXXXXX>
     38}}}
     39   ii. 再執行時指定 'ec2-run-instances'
     40{{{
     41ec2-run-instances <emi-XXXXXXXX> --kernel <eki-XXXXXXXX> --ramdisk <eri-XXXXXXXX>
     42}}}
     43   iii. 在 https://your.cloud.server:8443 選擇 'Configuration' 標籤,新增 <eki-xxxxxxxx> 和 <eri-xxxxxxxx> 作為預設的 kernel 和 ramdisk 
     44----
     45= 4.1.2 刪除 Image =
     46{{{
     47### 先取消註冊 ###
     48ec2-deregister <emi-XXXXXXXX>
     49
     50### 移除存於 bucke 的檔案 ###
     51ec2-delete-bundle -a $EC2_ACCESS_KEY -s $EC2_SECRET_KEY --url $S3_URL -b <bucket> -p <file prefix>
     52
     53### 移除檔案和 bucke (--clear)###
     54ec2-delete-bundle -a $EC2_ACCESS_KEY -s $EC2_SECRET_KEY --url $S3_URL -b <bucket> -p <file prefix> --clear
     55}}}