
glance --insecure image-update --name <Windows-image.vmdk> --property vmware_ostype=windows8Server64Guest
--property vmware_adaptertype=lsiLogicsas
While uploading a Windows image using the Glance CLI
When you use the OpenStack Glance CLI to upload the image, you can set the attributes and
upload the image at the same time.
On a Windows or Linux system where you installed the OpenStack CLI package for CloudSystem
and which contains the image to upload, enter the following command, where Windows-image.vmdk
is the name of the Windows image, and new-Windows-image.vmdk is the name of the modified
image that is uploaded to CloudSystem:
glance --insecure image-create --name <Windows-image.vmdk> --disk-format=vmdk --container-format=bare --file
<new-Windows-image>.vmdk --property vmware_ostype=windows8Server64Guest --property vmware_adaptertype=lsiLogicsas
For information about installing the OpenStack CLI packages for CloudSystem on a Windows or
Linux system see the HP CloudSystem Installation and Configuration Guide at Enterprise Information
Library. These packages allow you to run the supported OpenStack Nova, Glance, Keystone,
Neutron, and Cinder commands.
For more information, see OpenStack glance commands at OpenStack Cloud Software.
Create image from a snapshot of a virtual machine
Use this procedure to create an image from a snapshot of a currently defined virtual machine
instance. You can also accomplish this action in the CloudSystem Portal. By creating an image
from a known instance, you can copy the attributes of the instance into the format of an image,
so that you can use it to create other instances.
You can create an image of an instance from a running instance or from an instance that is
paused. If the instance is running at the time of the snapshot, the instance is paused before the
snapshot is taken. The instance is automatically restarted after the snapshot is captured.
Prerequisites
• Minimum required privileges: Infrastructure administrator
• The state of the instance is Active or Paused.
Procedure 37 Creating an image from a snapshot of an instance
1. From the main menu, select Instances.
The Instances overview screen is displayed.
2. Select the instance from which you want to create the new image.
3. Select Actions→Create image.
The Create image from a snapshot server instance screen is displayed.
4. Enter the following information:
• The name of the image to be created.
• A description (optional).
5. To complete the action, click Create.
6. Verify that the image is displayed on the Images overview screen.
Add Image
Use this procedure to add an image that can be used to create an instance.
For information about creating an image from a server instance, see Create image from a snapshot
of a virtual machine (page 86).
86 Image management
Comentarios a estos manuales