[one-users] VM reboot, was [Cannot shutdown VM]
Ruben S. Montero
rubensm at dacya.ucm.es
Thu Aug 13 02:19:13 PDT 2009
Hi,
You can:
1.- Shutdown the VM within the guest OS (NOT onevm shutdown), then the
VM will go to the *unknown* state, the you can restart it with onevm
restart
2.- Suspend the VM (onevm suspend NOT onevm stop) and then resume it
with (onevm resume)
In both situations the images will NOT be removed from the cluster
node NEITHER the capacity allocated by the VM will be freed, so you
will be always able to restore the VM.
Cheers
Ruben
On Wed, Aug 12, 2009 at 6:22 AM, Harsha Buggi<Harsha_Buggi at mindtree.com> wrote:
> Hi,
>
> Can we atleast have a mechanism to shutdown a VM and restart the same VM if reboot is not possible, like we have in virt-manager? The behaviour we have now is that when we perform a shutdown in the VM is stopped and the VM image is completly deleted from the server. 'Delete' could handle this behaviour and we could have a 'Shutdown' and 'Start' functionality as a workaround for reboot.
>
> Regards,
> Harsha
>
> ________________________________________
> From: rsmontero at gmail.com [rsmontero at gmail.com] On Behalf Of Ruben S. Montero [rubensm at dacya.ucm.es]
> Sent: Tuesday, August 11, 2009 10:32 PM
> To: users at lists.opennebula.org; Harsha Buggi
> Subject: VM reboot, was [Cannot shutdown VM]
>
> Hi,
>
> It seems that KVM/QEMU does not implements reboot, as for v 0.7.0
>
> http://libvirt.org/git/?p=libvirt.git;a=blob;f=src/qemu_driver.c;h=412b68d44973c76ce3efc72fc4c057874a17b2ec;hb=22a5ebe44b935572dfc585ccca0d477587a44ed8#l6757
>
> Xen implements this but it probably needs on_reboot="restart". However it
> seems that it does not work for all versions (I am trying with 3.2.0
> and the VM does not restart...)
>
> Vmware VI SDK provides a RebootGuest method so it should not be an issue.
>
> As the reboot action needs some hypervisor modification/tunning and it
> does not work for all of them I propose to move this feature to 1.4.2
>
>
> Cheers
>
> Ruben
>
> --
> +---------------------------------------------------------------+
> Dr. Ruben Santiago Montero
> Associate Professor
> Distributed System Architecture Group (http://dsa-research.org)
>
> URL: http://dsa-research.org/doku.php?id=people:ruben
> Weblog: http://blog.dsa-research.org/?author=7
>
> GridWay, http://www.gridway.org
> OpenNebula, http://www.opennebula.org
> +---------------------------------------------------------------+
>
> http://www.mindtree.com/email/disclaimer.html
>
--
+---------------------------------------------------------------+
Dr. Ruben Santiago Montero
Associate Professor
Distributed System Architecture Group (http://dsa-research.org)
URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
GridWay, http://www.gridway.org
OpenNebula, http://www.opennebula.org
+---------------------------------------------------------------+
More information about the Users
mailing list