layout |
---|
default |
Remember:
VMs are created by instantiating a
template
, which is where you specify whichimage
s the VM will need. Multiple VMs can shareimage
s (regardless of anytemplate
s that the VMs orimage
s may be related to) only when theimage
s are not persistent.
Storage for a VM is specified in terms of disk
s (which are image
s linked to template
s). On the Storage tab of the template
-editing screen, you can see two columns:
- on the left, the list of all
disk
s already defined on thattemplate
- on the right, the particularities for a
disk
selected from the left.
You can add as many disk
s as you need to a given template
, each referring to an existing image
or to a volatile disk
.
NOTE:
When you import an appliance from the AppMarket, that action usually downloads one
image
along with atemplate
, that relates to it. You can still personalise thattemplate
on this Storage tab of thetemplate
.
When you click on a disk
of a template
(on the left column of the Storage tab), or when you click on +, you will select that disk
for editing (it will get a blue line on the left of its name and its options will show on the right column).
The options you have for a disk
are:
- Image: to attach an existing
image
to thetemplate
you are editing - Volatile Disk: to create a storage place on the fly whenever a VM is instantiated from the
template
you are editing. A practical usage is to add (arbitrarily big) extra scratch space to your VM, while keeping a basic core OS image that is easy to move around in the system.
When you select Image as the storage option for a disk
in a template
, you see a table where you get to choose the image
you want from the list of your existing image
s. You can sort and filter that table to help you find the image
you want to use. When you find the image
you want and you click on it, its name will appear in blue under that table.
⚠ WARNING:
Volatile
disk
s are only available as long as a VM is running with them attached, and everything stored on Volatiledisk
s is lost once their associated VM is shut down.Furthermore, volatile
disk
s cannot be saved-as.
Make sure you understand these facts and, therefore, place in volatile disk
s only data that you are ready to loose after the VM is gone.
NOTE: By default all the projects get 10GB volatile quota. Please contact us if you need more quota than the default.
When you select Volatile Disk as the storage option for a disk
in a template
, you must specify the Size you want for the disk
. You can also specify the combination of Type and/or Format.
NOTE:
It does not really matter what you choose for FS and Format, because you can format your drives via the operating system tools.
Next to the name of each disk
on the list of disk
s when editing a template
, you can see a black (x) button. If you click on it, the disk
will be removed from the template
.
NOTE on Advanced options:
The Advanced options that you can see on the screen are very specific ones that we do not use every day. If you think you need to use them, we recommend you try and learn about them on the official OpenNebula documentation (for example, here). And if you find benefits in using them, please send us an e-mail to let us know: [email protected].