Planning for the procedure
Background knowledge
You must create the OpenStack image for each node type using this procedure because OpenStack does not provide a mechanism to deploy instances directly from a QCOW2 virtual appliance.
You should have some knowledge of VMs and familiarity with OpenStack’s host software. You must also have set up your OpenStack environment permissions before you start this procedure. See Manual ShCM installation on OpenStack if you need more information on configuring your OpenStack deployment.
Method of procedure
This procedure requires you to enter complex and detailed OpenStack commands which also require the input of lengthy parameters. We strongly recommend that you create these commands in a text editor and then copy and paste them into the SSH session for execution. |
Create the OpenStack Image
Download the QCOW2 image to the OpenStack host
Transfer the QCOW2 file to the host platform’s /tmp
directory.
Create the OpenStack image
Carry out the following steps from a command line interface on the OpenStack host platform.
Detailed procedure
-
Create an OpenStack image from the QCOW2 virtual appliance using the following command, replacing
<full-version>
with the correct version number for the node you are creating.glance image-create \ --name shcm-<full-version> \ --disk-format qcow2 \ --visibility public \ --container-format bare \ --file /tmp/shcm-<full-version>.qcow2
-
List the image for verification purposes:
openstack image show shcm-<full-version>
The image
status
should be active. -
Cleanup disk space by removing the QCOW2 virtual appliance:
sudo rm -f /tmp/shcm-<full-version>.qcow2
Backout procedure
If necessary, you can delete an OpenStack image.
Delete images as required
Delete the image
-
Run the following command to display a list of image identifiers to ensure that you have the correct image id for the image you want to delete.
openstack image list
-
Run the following command to delete an OpenStack image, replacing <image id> with the identifier of the image you want to delete.
glance image-delete <image id>
Next step
Once you have created the OpenStack image, determine the network names and security group.