cc_staff
1,486
edits
(Updated "creating an image from a VM" to properly distinguish the differences between VMs that boot from volumes and ephemeral disk.) |
(Creating an Image from a VM, small tweak to make different streams appear more distinct) |
||
Line 125: | Line 125: | ||
The proceedure for creating an image of a VM depends on weather it is booting from a volume (typically "p" flavors), or from an ephemeral disk (typically "c" flavors). | The proceedure for creating an image of a VM depends on weather it is booting from a volume (typically "p" flavors), or from an ephemeral disk (typically "c" flavors). | ||
If booting from an ephemeral disk the [[OpenStack Command Line Clients]] can be used with the command: | ===If booting from an ephemeral disk=== | ||
the [[OpenStack Command Line Clients]] can be used with the command: | |||
{{Command| openstack server image create <server-name>}} | {{Command| openstack server image create <server-name>}} | ||
where <code><server-name></code> should be replaced with the name of your server. This action will only include the VM's root drive (e.g. /dev/vda) in the image. Ephemeral drives and non-boot attached volumes will not be included in the image so additional measures should be taken to preserve this data. In addition, if the VM is writing to disk while the image is being created the file system may be captured in an inconsistent state. We recommend the VM be shut off (not deleted) before an image is created from it. | where <code><server-name></code> should be replaced with the name of your server. This action will only include the VM's root drive (e.g. /dev/vda) in the image. Ephemeral drives and non-boot attached volumes will not be included in the image so additional measures should be taken to preserve this data. In addition, if the VM is writing to disk while the image is being created the file system may be captured in an inconsistent state. We recommend the VM be shut off (not deleted) before an image is created from it. | ||
If it is booting from a volume see [OpenStack#Creating_an_Image_from_a_Volume] | ===If it is booting from a volume=== | ||
see [OpenStack#Creating_an_Image_from_a_Volume] | |||
==Sharing an image with another project== <!--T:54--> | ==Sharing an image with another project== <!--T:54--> |