Ask Your Question

Revision history [back]

Hello,

qcow images have their kernel and ramdisk contained in the image. As far as I know, there's no way to have qcow images use a kernel and ramdisk specified in another location. If you want to use a different kernel in your instance, you can simply install it inside the instance and reboot.

AMI/AKI/ARI images, on the other hand, need connected together in Glance.

  • AMI is the "disk" portion
  • AKI is the "kernel"
  • ARI is the "ramdisk"

In order to upload these three images into Glance and have them work with each other, you will need to do something like the following:

$ glance image-create --name="my-kernel" --disk-format=aki --container-format=aki < my-kernel
(new uuid will be returned - make note of it)
$ glance image-create --name="my-ramdisk" --disk-format=ari --container-format=ari < my-ramdisk
(new uuid will be returned - make note of it)
$ glance image-create --name="my-linux" --disk-format=ami --container-format=ami \
 kernel_id=<kernel uuid> ramdisk_id=<ramdisk uuid> < my-linux

You can find an example of these three files by downloading "precise-server-cloudimg-amd64.tar.gz" from http://cloud-images.ubuntu.com/precise/current/ .

Also, you can find more information on OpenStack and images at the OpenStack Virtual Machine Image Guide: http://docs.openstack.org/image-guide/content/

Hope that helps,

Joe