Managing your cloud resources with OpenStack: Difference between revisions

Added an overview of images
No edit summary
(Added an overview of images)
Line 122: Line 122:


=Working with images= <!--T:42-->
=Working with images= <!--T:42-->
Images are files which contain the contents of a virtual disk. Often Images contain a base operating system used to create an initial volume or ephemeral disk from which a virtual machine boots. An ephemeral disk is a virtual disk file which resides on the host (or hypervisor) where the virtual machine is running. Ephemeral disk files are destroyed when a VM is destroyed in contrast to [[OpenStack#Working with Volumes|volumes]]. Images are portable in that they can be download from the cloud, used to create a virtual machine using virtual box or similar on your laptop, and uploaded to another cloud and used to create a new virtual machine there. This is not the case with volumes or ephemeral disks. Images come in a variety of formats. Some commonly encountered formats are, raw, qcow2, vmdk, and vdi.
If sharing your virtual machine images be sure to remove sensitive information such as public/private keys, configuration files containing passwords etc. If uploading images created from a virtual box virtual machine to be used on many cloud platforms (including OpenStack) it must have cloud-init installed and configured correctly to work within the cloud (see openstack docs on [https://docs.openstack.org/image-guide/create-images-manually.html creating images mannual] for more details and examples on a few common operating systems).
==Creating an Image from a VM==
==Creating an Image from a VM==
The procedure for creating an image of a VM depends on whether it is booting from a volume (typically "p" flavors), or from an ephemeral disk (typically "c" flavors).
The procedure for creating an image of a VM depends on whether it is booting from a volume (typically "p" flavors), or from an ephemeral disk (typically "c" flavors).
cc_staff
1,486

edits