modify-image

Modify the details or location of an image.

This command can be used to change the description or OS type of an image, add it to some storage location, or remove it from one.

The image ID is specified with the --id parameter. The new description is set with the --desc flag followed by a description, and the new OS type with the --os flag. Valid OS codes are like centos, debian and solaris.

To add a new storage location for the image's files, use the --add-storage flag followed by a storage spec, typically in host:path format.
The spec can also be just a path, indicating that the image will be stored on the Cloudmin master.

To remove a storage location, use the --remove-storage flag followed by a storage spec. All files in the image in the given directory will be removed.

To copy an image to all the global default storage locations, use the --default-storage flag. This is not recommended if you have images stored on the host system they were created on, as Cloudmin cannot necessarily determine which host an image is supposed to be on.

Example usage

  cloudmin modify-image --id xen-centos-test1 --desc "My test image"
  Image xen-centos-test1 successfully updated.

  cloudmin modify-image --id xen-centos-test1 --add-storage imageserver:/images
  Copying image files to imageserver:/image ..
  ..done

Command Line Help

Modify the details or location of an image.

cloudmin modify-image --id image-id
                     [--desc new-description]
                     [--os os-code]
                     [--add-storage storagespec]
                     [--remove-storage storagespec]
                     [--default-storage]