[one-users] Long Running Servers

Carlos Martín Sánchez cmartin at opennebula.org
Wed Jun 29 06:29:30 PDT 2011

Hi Richard,

The template you propose looks fine, but let me make a couple of comments.

Instead of 'source' and 'save' for DISC, you should use the Image
repository, and take advantage of the persistent flag [1] to make sure the
contents are saved.
This way you can forget about the 'save', 'clone' and 'readonly' attributes.

And just in case, when you say "to ensure it keeps its state between
restarts", keep in mind that a onevm shutdown command will save the disk,
but not the VM state (RAM).
If that's what you need, take a look at the suspend and cancel commands [2].

Please also note that onevm restart will not start over the life cycle of a
VM, it is a way to resubmit the booting command to the hypervisor in cases
when the VM gets stuck in the BOOT state.
To continue the execution of a VM you previously shut down, you have to
create a new VM instance from the same template file.

Best regards,


Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org

On Mon, Jun 27, 2011 at 6:34 PM, Richard Palmer
<richard.d.palmer at kcl.ac.uk>wrote:

> Dear list,
>        To setup a long running server I assume I need to create a specific
>        template file for it something like this:
>        NAME = long-running-server-name
>        ...
>        DISC = [ source = "/path/to/disk/image/for/this/server/only.img",
>                 save = "yes",
>                 ....
>               ]
>        NIC = [ IP = "XXX.XXX.XXX.XXX" ] # Fixed IP for this server
>        ...
>        to ensure it keeps its state between restarts. Is anything else
>        needed ?.
> regards,
> Richard
> --
> Richard Palmer                  | Centre for E-Research
>                                |  King's College London
> richard.d.palmer at kcl.ac.uk      |
> Tel: 0207 848 1973           |
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110629/b2636b31/attachment-0003.htm>

More information about the Users mailing list