Managing your cloud resources with OpenStack: Difference between revisions

→‎Booting From a Volume: clarification & language review
(→‎Booting From a Volume: clarification & language review)
Line 63: Line 63:


==Booting From a Volume==
==Booting From a Volume==
If running a persistent machine, booting from a volume is a safer option. When creating a VM booting from an image, rather than a volume, it will store the VM on the local disk of the actual machine running the VM. If something went wrong with that machine or its disk, there is a good chance your VM would be lost. Volume storage has a built in redundancy which will protect your volumes from hardware failure.
If you want to run a persistent machine, it is safest to boot from a volume. When you boot a VM from an image rather than a volume, the VM is stored on the local disk of the actual machine running the VM. If something goes wrong with that machine or its disk the VM may be lost. Volume storage has redundancy which protects the VM from hardware failure.


There are several ways to boot a VM from a volume, you can either create a volume (or use a pre-existing one) and then select to boot from it, or you can create a volume as part of the process of launching a VM.
There are several ways to boot a VM from a volume. You can
* boot from an image, creating a new volume, or  
* boot from a pre-existing volume, or
* boot from a snapshot, creating a new volume.


If creating a volume first, proceed in the same way as described above, except that you choose a volume source. You can either use an image or another volume as the source for your new volume. When launching a VM from a pre-existing volume OpenStack does not load an operating system onto the volume. This is what you would want if you were booting from a volume which you have already been working with previously, containing a working and configured operating system. However, if you create an empty volume as done above, there will be no operating system loaded to boot from so you will not be able to use your VM.
If you have not done this before, then the first one is your only option. The other two are only possible if you have already created a bootable volume or an image snapshot.


If creating a volume as part of the process of launching the VM, select <code>Boot from image (creates a new volume)</code> select the image to use and the size of the volume. The default device name of <code>vda</code> should work well. If this volume is something you would like to remain longer than the VM ensure that the "Delete on Terminate" check box is unchecked. If you are unsure about this option, it is better to leave this box unchecked as you can always manually delete the volume later as an extra step.
If creating a volume as part of the process of launching the VM, select <code>Boot from image (creates a new volume)</code>, select the image to use, and the size of the volume. If this volume is something you would like to remain longer than the VM ensure that the "Delete on Terminate" box is unchecked. If you are unsure about this option, it is better to leave this box unchecked. You can manually delete the volume later.


==Creating an Image From a Volume==
==Creating an Image From a Volume==
Bureaucrats, cc_docs_admin, cc_staff
2,879

edits