Managing your cloud resources with OpenStack/en: Difference between revisions

Jump to navigation Jump to search
Importing a new version from external source
(Importing a new version from external source)
(Importing a new version from external source)
Line 90: Line 90:
{{Command|openstack image create --disk-format <format> --volume <volume_name> <image_name>}}
{{Command|openstack image create --disk-format <format> --volume <volume_name> <image_name>}}
where  
where  
* <format> is the disk format (two possible values are [https://en.wikipedia.org/wiki/Qcow qcow2] and [https://en.wikipedia.org/wiki/VMDK vmdk]),
* <format> is the disk format (two possible values are qcow2 and vmdk),
* <volume_name> can be found from the OpenStack dashboard by clicking on the volume name, and
* <volume_name> can be found from the OpenStack dashboard by clicking on the volume name, and
* <image_name> is a name you choose for the image.
* <image_name> is a name you choose for the image.
You can then [[OpenStack#Downloading an image |download the image]] as described below. It is best to detach the volume from the VM before you create an image from the volume. If the volume is a boot volume you will likely need to delete your VM to detach it, however, make sure you have not checked "Delete Volume on Instance Delete" when creating the VM.
You can then download the image as described in [[OpenStack#Downloading an image into a local VirtualBox | Downloading an image into a local VirtualBox]].


=Creating an Image From a VM=
=Creating an Image From a VM=
1,221

edits

Navigation menu