[one-users] Questions about one.vm.savedisk
tinova at fdi.ucm.es
Thu Sep 30 09:17:50 PDT 2010
On Tue, Sep 28, 2010 at 7:42 AM, <Carsten.Friedrich at csiro.au> wrote:
> I’m trying to understand how to use one.vm.savedisk correctly. I have a
> couple of questions:
> 1) As I understand it this command does not immediately save the disk
> image, but only does so when the VM is “shut-down”. Exactly which actions
> will cause this save to happen (I guess all or some of: Shutdown, Stop,
> Suspend, Cancel, Delete/Finalize)?
the savedisk functionality is performed with a hook triggered when the VM
reaches the DONE state. Take a look at  for the VMs lifecycle.
> 2) It seems there are no restriction on State or LCM State on when
> savedisk is allowed in the code. Since it requires a save to happen,
> however, it seems that this probably cannot be successfully achieved from
> all states. My question: in which states does a savedisk make sense and in
> which does it not make sense?
The savedisk makes sense in every state but done or fail, since the
functionality is only used at the end of the lifecycle (it doesn't save the
disk state in an arbitrary point in time, but only after the VM execution)
> 3) From reading the code it seems to me that issuing a savedisk request
> will override and disable the “save” flag from the VM template such that a
> “traditional” save will no longer happen. Is this correct? If yes, I think
> this needs to be documented explicitly.
When using the Image Catalog, the persistency of the image is controlled
using the SAVE_AS attribute of the disk. This will be overridden by the
savedisk functionality, and that is why saveas functionality upon a
persistent image is not allowed.
The saveas functionality is completely segregated from the traditional use
of the SAVE and CLONE attributes.
hope it helps,
Constantino Vázquez Blanco | dsa-research.org/tinova
Virtualization Technology Engineer / Researcher
OpenNebula Toolkit | opennebula.org
> Users mailing list
> Users at lists.opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users