| 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] |
| 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 |
| | 20 | Checking image |
| | 21 | Tarring image |
| | 22 | Encrypting image |
| | 23 | Splitting image... |
| | 24 | Part: vmlinuz-2.6.27.21-0.1-xen.part.0 |
| | 25 | Generating 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 |
| | 29 | Checking bucket: kernel |
| | 30 | Creating bucket: kernel |
| | 31 | Uploading manifest file |
| | 32 | Uploading part: vmlinuz-2.6.27.21-0.1-xen.part.0 |
| | 33 | Uploaded 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 |
| | 37 | IMAGE eki-2B121184 |