UECBundlingImages

From OnnoWiki
Revision as of 07:15, 21 October 2010 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

Penggunaan UEC pada dasarnya adalah proses membuat dan mendaftarkan Image ke Cloud Controller.

Disini akan di jelaskan proses untuk Ubuntu 10.04 LTS.

Ada beberapa cara untuk memperoleh virtual Image.

  • Download Image dari Internet, di bundel dan di uploadke Cloud Controller.
  • Membuat custom Image menggunakan VMBuilder.
  • Menggunakan Image store untuk mendownload dan install Image.

Disini akan di jelaskan proses untuk mendownload salah satu dari daily builds yang dibuat dan di publikasi secara automatis. Proses ini mirip untuk Official Released Images

CATATAN: Note: the shell variables that are set in the below code snippets are very useful for scripts or to reuse them when typing commands.

  • Download the UEC image for the architecture you want. You can do it from your browser or from the command line:
TIMESTAMP=$(date +%Y%m%d%H%M%S)
RELEASE=lucid
ARCH=amd64    # Or this might be i386
[ $ARCH = "amd64" ] && IARCH=x86_64 || IARCH=i386
UEC_IMG=$RELEASE-server-uec-$ARCH
URL=http://uec-images.ubuntu.com/$RELEASE/current/
[ ! -e $UEC_IMG.tar.gz ] &&  wget $URL/$UEC_IMG.tar.gz
uec-publish-tarball $UEC_IMG.tar.gz $RELEASE-$TIMESTAMP
  • Now, your kernel and image will have been uploaded into Eucalyptus and should be ready to run. To confirm, run the following command:
euca-describe-images
EMI=$(euca-describe-images | grep emi- | head -n1 | awk '{print $2}')

You should see a registered kernel and image and they should be marked as 'available'.

Referensi

Pranala Menarik