Re: [one-users] Long Running Servers

2011-06-29 Thread Carlos Martín Sánchez
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.

[1]
http://opennebula.org/documentation:rel2.2:img_guide#making_images_persistent
[2]
http://opennebula.org/documentation:rel2.2:vm_guide#virtual_machine_life-cycle

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


On Mon, Jun 27, 2011 at 6:34 PM, Richard Palmer
richard.d.pal...@kcl.ac.ukwrote:

 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.pal...@kcl.ac.uk  |
 Tel: 0207 848 1973   |
 ___
 Users mailing list
 Users@lists.opennebula.org
 http://lists.opennebula.org/listinfo.cgi/users-opennebula.org

___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


Re: [one-users] Long Running Servers

2011-06-29 Thread Richard Palmer
Dear Carlos,

 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.

Right, this is where I got confused, because from the description of the Image
Repository it seemed to be only for virtual servers you expect to be used
multiple times for different purposes (say a Debian 6.0 + Apache image),
not just single project servers that will only ever have one instance.

But I will start using it now.

thanks,

Richard



-- 
Richard Palmer  | Centre for E-Research
|  King's College London
richard.d.pal...@kcl.ac.uk  | 
Tel: 0207 848 1973  |
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Long Running Servers

2011-06-27 Thread Richard Palmer
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.pal...@kcl.ac.uk  | 
Tel: 0207 848 1973  |
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org