Eucalyptus - インスタンスイメージを追加する2013/02/24 |
インスタンスのイメージを追加します。
ここでは例として以下のような環境で構築しています。
#1) frontend.srv.world [10.0.0.30] ⇒ 管理サーバー ( CLC, Walrus, SC, CC インストール )
#2) node01.srv.world [10.0.0.40] ⇒ ノードコントローラ ( NC インストール, KVMホスト構築済み ) |
|
[1] | 管理サーバー上で、例として、CentOS 6.3 のイメージを登録してみます。 |
[root@frontend ~]# wget http://emis.eucalyptus.com/starter-emis/euca-centos6.3-2012.11.07-x86_64.tgz [root@frontend ~]# tar zxvf euca-centos6.3-2012.11.07-x86_64.tgz [root@frontend ~]# cd centos-6.3-x86_64 [root@frontend centos-6.3-x86_64]# euca-bundle-image -i kvm-kernel/vmlinuz-2.6.32-279.14.1.el6.x86_64 --kernel true Checking image Compressing image Encrypting image Splitting image... Part: vmlinuz-2.6.32-279.14.1.el6.x86_64.part.00 Generating manifest /tmp/vmlinuz-2.6.32-279.14.1.el6.x86_64.manifest.xml [root@frontend centos-6.3-x86_64]# euca-upload-bundle -b centos-kernel-bucket -m /tmp/vmlinuz-2.6.32-279.14.1.el6.x86_64.manifest.xml Checking bucket: centos-kernel-bucket Creating bucket: centos-kernel-bucket Uploading manifest file Uploading part: vmlinuz-2.6.32-279.14.1.el6.x86_64.part.00 Uploaded image as centos-kernel-bucket/vmlinuz-2.6.32-279.14.1.el6.x86_64.manifest.xml [root@frontend centos-6.3-x86_64]# euca-register centos-kernel-bucket/vmlinuz-2.6.32-279.14.1.el6.x86_64.manifest.xml IMAGE eki-FAE037C8 [root@frontend centos-6.3-x86_64]# euca-bundle-image -i kvm-kernel/initrd-2.6.32-279.14.1.el6.x86_64.img --ramdisk true Checking image Compressing image Encrypting image Splitting image... Part: initrd-2.6.32-279.14.1.el6.x86_64.img.part.00 Generating manifest /tmp/initrd-2.6.32-279.14.1.el6.x86_64.img.manifest.xml [root@frontend centos-6.3-x86_64]# euca-upload-bundle -b centos-ramdisk-bucket -m /tmp/initrd-2.6.32-279.14.1.el6.x86_64.img.manifest.xml Checking bucket: centos-ramdisk-bucket Creating bucket: centos-ramdisk-bucket Uploading manifest file Uploading part: initrd-2.6.32-279.14.1.el6.x86_64.img.part.00 Uploaded image as centos-ramdisk-bucket/initrd-2.6.32-279.14.1.el6.x86_64.img.manifest.xml [root@frontend centos-6.3-x86_64]# euca-register centos-ramdisk-bucket/initrd-2.6.32-279.14.1.el6.x86_64.img.manifest.xml IMAGE eri-B59B32EF [root@frontend centos-6.3-x86_64]# euca-bundle-image -i centos-6.3-x86_64.img --kernel eki-FAE037C8 --ramdisk eri-B59B32EF Checking image Compressing image Encrypting image Splitting image... Part: centos-6.3-x86_64.img.part.00 Part: centos-6.3-x86_64.img.part.01 Part: centos-6.3-x86_64.img.part.02 Part: centos-6.3-x86_64.img.part.03 Part: centos-6.3-x86_64.img.part.04 Part: centos-6.3-x86_64.img.part.05 Part: centos-6.3-x86_64.img.part.06 Part: centos-6.3-x86_64.img.part.07 Part: centos-6.3-x86_64.img.part.08 Part: centos-6.3-x86_64.img.part.09 Part: centos-6.3-x86_64.img.part.10 Part: centos-6.3-x86_64.img.part.11 Part: centos-6.3-x86_64.img.part.12 Part: centos-6.3-x86_64.img.part.13 Part: centos-6.3-x86_64.img.part.14 Part: centos-6.3-x86_64.img.part.15 Part: centos-6.3-x86_64.img.part.16 Part: centos-6.3-x86_64.img.part.17 Part: centos-6.3-x86_64.img.part.18 Part: centos-6.3-x86_64.img.part.19 Generating manifest /tmp/centos-6.3-x86_64.img.manifest.xml [root@frontend centos-6.3-x86_64]# euca-upload-bundle -b centos-image-bucket -m /tmp/centos-6.3-x86_64.img.manifest.xml Checking bucket: centos-image-bucket Creating bucket: centos-image-bucket Uploading manifest file Uploading part: centos-6.3-x86_64.img.part.00 Uploading part: centos-6.3-x86_64.img.part.01 Uploading part: centos-6.3-x86_64.img.part.02 Uploading part: centos-6.3-x86_64.img.part.03 Uploading part: centos-6.3-x86_64.img.part.04 Uploading part: centos-6.3-x86_64.img.part.05 Uploading part: centos-6.3-x86_64.img.part.06 Uploading part: centos-6.3-x86_64.img.part.07 Uploading part: centos-6.3-x86_64.img.part.08 Uploading part: centos-6.3-x86_64.img.part.09 Uploading part: centos-6.3-x86_64.img.part.10 Uploading part: centos-6.3-x86_64.img.part.11 Uploading part: centos-6.3-x86_64.img.part.12 Uploading part: centos-6.3-x86_64.img.part.13 Uploading part: centos-6.3-x86_64.img.part.14 Uploading part: centos-6.3-x86_64.img.part.15 Uploading part: centos-6.3-x86_64.img.part.16 Uploading part: centos-6.3-x86_64.img.part.17 Uploading part: centos-6.3-x86_64.img.part.18 Uploading part: centos-6.3-x86_64.img.part.19 Uploaded image as centos-image-bucket/centos-6.3-x86_64.img.manifest.xml [root@frontend centos-6.3-x86_64]# euca-register centos-image-bucket/centos-6.3-x86_64.img.manifest.xml IMAGE emi-58E13B1A |
Sponsored Link |