[one-users] Shutdown of a virtual machine deletes the machine in onevm database
Ruben S. Montero
rubensm at dacya.ucm.es
Mon Apr 5 13:29:03 PDT 2010
Hi Florian
That is the expected behavior. Some thoughts:
* The VM is not deleted from the database is moved to DONE state and
hence not shown in onevm list. However it is available in the DB for
accounting purposes.
* You can use suspend, this will generate a checkpoint and recover the
VM in the original host. However I guess this is not what you are
looking for... (note also that capacity for the VM is not freed in
that host.)
* Usually people makes some modifications to the SSH driver. You can
make a very simple cache by copying the images to a cache dir in the
cluster nodes and then link to the location OpenNebula will look for
it. In this way you can just see if the file exists before copying it
again. The TM scripts should be very readable so you can easily adapt
them to the cloud your architecting... (come back if you need help
with the TM scripts). If the images are more or less stable you can
look at the LVM backend...
Cheers
Ruben
On Thu, Apr 1, 2010 at 5:15 PM, Florian Kruse
<florian.kruse at tu-dortmund.de> wrote:
> Hi!
>
> We are using OpenNebula 1.2 as it is shipped in Ubuntu Server 9.10 (together with libvirt 0.7.0 and KVM/QEMU for virtualization). Our implementation uses the SSH transfer manager. Deploying VMs works as well as stopping and resuming VMs. However, OpenNebula acts somewhat strange when a machine is shut down (either by onevm shutdown or from inside the machine). It copies the machine's image back (save = yes) and removes the machine from the database.
>
> In our use case we want to shut down machines and still be able to boot them again. Of course we could copy the disk image over the original one used for creating the machine and re-create it after that. But that would be very impractical.
>
> Is there a way to make one not forget the machine after the shutdown so it can be restarted by onevm deploy/resume or something similar?
>
> Thanks for help in advance! Greetings,
>
> Florian
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
--
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid
URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
More information about the Users
mailing list