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.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.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