Obsolete:RunningNova/ManualImageRegistration

= Manual image registration process =

Decompress the image file
Use this command to extract the image files.

tar xvzf images.tgz

You get a directory listing like so:

images `-- ari-lucid |-- image `-- info.json
 * -- aki-lucid
 * |-- image
 * `-- info.json
 * -- ami-tiny
 * |-- image
 * `-- info.json

Send commands to upload sample image to the cloud
Type or copy/paste the following commands to create a manifest for the kernel.

euca-bundle-image -i images/aki-lucid/image -p kernel --kernel true

You should see this in response:

Checking image Tarring image Encrypting image Splitting image... Part: kernel.part.0 Generating manifest /tmp/kernel.manifest.xml

Type or copy/paste the following commands to create a manifest for the ramdisk.

euca-bundle-image -i images/ari-lucid/image -p ramdisk --ramdisk true

You should see this in response:

Checking image Tarring image Encrypting image Splitting image... Part: ramdisk.part.0 Generating manifest /tmp/ramdisk.manifest.xml

Type or copy/paste the following commands to upload the kernel bundle.

euca-upload-bundle -m /tmp/kernel.manifest.xml -b mybucket

You should see this in response:

Checking bucket: mybucket Creating bucket: mybucket Uploading manifest file Uploading part: kernel.part.0 Uploaded image as mybucket/kernel.manifest.xml

Type or copy/paste the following commands to upload the ramdisk bundle.

euca-upload-bundle -m /tmp/ramdisk.manifest.xml -b mybucket

You should see this in response:

Checking bucket: mybucket Uploading manifest file Uploading part: ramdisk.part.0 Uploaded image as mybucket/ramdisk.manifest.xml

Type or copy/paste the following commands to register the kernel and get its ID.

euca-register mybucket/kernel.manifest.xml

You should see this in response:

IMAGE  ami-fcbj2non

Type or copy/paste the following commands to register the ramdisk and get its ID.

euca-register mybucket/ramdisk.manifest.xml

You should see this in response:

IMAGE  ami-orukptrc

Type or copy/paste the following commands to create a manifest for the machine image associated with the ramdisk and kernel IDs that you got from the previous commands.

euca-bundle-image -i images/ami-tiny/image -p machine --kernel ami-fcbj2non --ramdisk ami-orukptrc

You should see this in response:

Checking image Tarring image Encrypting image Splitting image... Part: machine.part.0 Part: machine.part.1 Part: machine.part.2 Part: machine.part.3 Part: machine.part.4 Generating manifest /tmp/machine.manifest.xml

Type or copy/paste the following commands to upload the machine image bundle.

euca-upload-bundle -m /tmp/machine.manifest.xml -b mybucket

You should see this in response:

Checking bucket: mybucket Uploading manifest file Uploading part: machine.part.0 Uploading part: machine.part.1 Uploading part: machine.part.2 Uploading part: machine.part.3 Uploading part: machine.part.4 Uploaded image as mybucket/machine.manifest.xml

Type or copy/paste the following commands to register the machine image and get its ID.

euca-register mybucket/machine.manifest.xml

You should see this in response:

IMAGE  ami-g06qbntt

You can proceed to Starting an instance