Changes between Version 4 and Version 5 of Eucalyptus/Images


Ignore:
Timestamp:
Aug 3, 2009, 2:55:04 PM (15 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Eucalyptus/Images

    v4 v5  
    66----
    77= 注意事項 =
    8  * 為了讓 VM Image可執行,需上傳和註冊 root disk image, Kernel or Ramdisk 到 Walrus
    9  * 已 source 'eucarc' 檔案
    10  * user 可以註冊 Image,但只有管理者可以註冊 kernel/ramdisks
    11  * 已安裝EC2 tools: ec2-api-tools-1.3-30349 和 ec2-ami-tools-1.3-26357
    12    * 設定好路徑 JAVA_HOME,EC2_HOME,EC2_AMITOOL_HOME,PATH
    13  * [http://open.eucalyptus.com/wiki/EucalyptusUserImageCreatorGuide_v1.5 可下載 Euc 提供的 Image]
     8 * 需 source 'eucarc'
     9 * 使用者可註冊 Image,但只有管理者才可註冊 kernel/ramdisks
     10 * 已安裝 Euca2ools,設定好路徑 JAVA_HOME,EC2_HOME,EC2_AMITOOL_HOME,PATH
     11 * [http://open.eucalyptus.com/wiki/EucalyptusUserImageCreatorGuide_v1.5.2 可下載 Euca 提供的 Image]
    1412----
    1513= 4.1.1 新增 Image =
    1614 * 增加 root FS,Kernel 和 Ramdisks
    1715{{{
    18 ### 1. 使用 Euc 提供的 image ###
     16### 1. 使用 Euca 提供的 image ###
    1917### 2. 新增 Kernel 到 Walrus 並註冊 ###
    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 // 會再 clent的 tmp/ 生檔案
    22 $ ec2-register <kernel-bucket>/vmlinuz-2.6.16.33-xen.manifest.xml
     18// 產生 manifest (注意:此 /tmp 是client路徑下的)
     19$ euca-bundle-image -i vmlinuz-2.6.27.21-0.1-xen --kernel true 
     20Checking image
     21Tarring image
     22Encrypting image
     23Splitting image...
     24Part: vmlinuz-2.6.27.21-0.1-xen.part.0
     25Generating manifest
     26
     27// 上傳 manifest 和 kernel (注意:此 /tmp 是client路徑下的,-b 是在 Front產生一個資料夾)
     28$ euca-upload-bundle -b kernel -m /tmp/vmlinuz-2.6.27.21-0.1-xen.manifest.xml
     29Checking bucket: kernel
     30Creating bucket: kernel
     31Uploading manifest file
     32Uploading part: vmlinuz-2.6.27.21-0.1-xen.part.0
     33Uploaded image as kernel/vmlinuz-2.6.27.21-0.1-xen.manifest.xml
     34
     35//註冊此 kenerl (注意:此路徑是 Front)
     36$ euca-register kernel/vmlinuz-2.6.27.21-0.1-xen.manifest.xml
     37IMAGE   eki-2B121184
    2338
    2439### 3. 增加 root FS Image 給 Walrus ###
     
    3247$ ec2-register <bucket name>/initrd.img.manifest.xml
    3348}}}
    34 
     49 * 可以到 https://Server_IP:8443/#images,去看上傳的檔案
    3550 * 分配 Kernel 和 Ramdisks 給 VMs (有三種方法)
    3651   * 在 'ec2-bundle-image' 步驟指定