![]()
In the previous article we created a CentOS virtual machine image that was usable with Xen. In this short article we will use this image in Eucalyptus.
Bundle, upload and register the kernel with Eucalyptus:
ec2-bundle-image --image /boot/vmlinuz-2.6.18-128.1.6.el5xen --kernel true ec2-upload-bundle --bucket centos-kernel-bucket --manifest /tmp/vmlinuz-2.6.18-128.1.6.el5xen.manifest.xml ec2-register centos-kernel-bucket/vmlinuz-2.6.18-128.1.6.el5xen.manifest.xml
Bundle, upload and register the ramdisk with Eucalyptus:
ec2-bundle-image --image /root/centos-ramdisk.img --ramdisk true ec2-upload-bundle --bucket centos-ramdisk-bucket --manifest /tmp/centos-ramdisk.img.manifest.xml ec2-register centos-ramdisk-bucket/centos-ramdisk.img.manifest.xml
Bundle, upload and register the filesystem with Eucalyptus:
ec2-bundle-image --image /root/centos-root.img ec2-upload-bundle --bucket centos-root-bucket --manifest /tmp/centos-root.img.manifest.xml ec2-register centos-root-bucket/centos-root.img.manifest.xml
Start an instance, replacing the emi-, eki- and eri-identifiers with your own:
ec2-run-instances emi-F4CB118E --kernel eki-38AC43DC --ramdisk eri-98FE2101
When I try to register my ramdisk, I get the following error, It appears i’m the only one as google turns up no results for ramdisk:
ec2-register -C cert.pem -K pk.pem ari-aki-test/initrd-2.6.18-274.12.1.el5xen.img.manifest.xml -n aki-cnc –region ap-northeast-1
Client.InvalidManifest: Invalid or unaccessible ramdisk id in ami manifest: true