Re: [one-users] Shutting down a VM

2014-03-21 Thread Carlos Martín Sánchez
Hi, On Fri, Mar 21, 2014 at 12:59 PM, Vassilis Vatikiotis < vatik...@iit.demokritos.gr> wrote: > Carlos, thanks for your answer. > > Is there a way of restarting a VM which has been shutdown from within, > i.e. not using thge onevm command/Sunstone command? Whenever I try to > do such a thing a g

Re: [one-users] Shutting down a VM

2014-03-21 Thread Vassilis Vatikiotis
Carlos, thanks for your answer. Is there a way of restarting a VM which has been shutdown from within, i.e. not using thge onevm command/Sunstone command? Whenever I try to do such a thing a get a Wrong state error, in Sunstone. Regards On Thu, Mar 20, 2014 at 12:01 PM, Carlos Martín Sánchez wr

Re: [one-users] Shutting down a VM

2014-03-20 Thread Carlos Martín Sánchez
Hi, On Wed, Mar 19, 2014 at 6:25 PM, Vassilis Vatikiotis < vatik...@iit.demokritos.gr> wrote: > Hello all, > > shutdown down a VM from within this VM using shutdown or poweroff > stops? the VM leaving it in State: Active and LCM State: Unknown. The > VM template has been configured with ACPI and

[one-users] Shutting down a VM

2014-03-19 Thread Vassilis Vatikiotis
Hello all, shutdown down a VM from within this VM using shutdown or poweroff stops? the VM leaving it in State: Active and LCM State: Unknown. The VM template has been configured with ACPI and acpid runs inside the VM. Is it possible to use the linux commands (shutdown/poweroff) to bring a VM dow

Re: [one-users] Shutting down a VM from within the VM

2013-11-08 Thread Carlos Martín Sánchez
Hi Simon, On Tue, Oct 29, 2013 at 6:04 PM, Simon Boulet wrote: > > > Rubén could not retrieve that 'paused' state from libvirt, no matter how > the > > vm was destroyed, he always got 'stopped'. Are we missing something? > > It depends of the Libvirt backend you're using and how it detects the >

Re: [one-users] Shutting down a VM from within the VM

2013-11-04 Thread Nistor Andrei
On Tue, Oct 29, 2013 at 7:04 PM, Simon Boulet wrote: > > Oh, yes, I get your point. The Core uses "disappear" for setting the > VM as UNKNOWN. I think we need to keep "disappear" as it is, or at > least keep the current UNKNOWN behaviour. If the VM can't be monitored > for some reason (the host is

Re: [one-users] Shutting down a VM from within the VM

2013-10-29 Thread Simon Boulet
On Tue, Oct 29, 2013 at 12:26 PM, Carlos Martín Sánchez wrote: > Hi, > > On Tue, Oct 29, 2013 at 4:43 PM, Simon Boulet wrote: >> >> The libvirt "paused" method I >> suggested is a hack that works with OpenNebula and turns the VM that >> are internally shutdown to "SUSPENDED" in OpenNebula. > > >

Re: [one-users] Shutting down a VM from within the VM

2013-10-29 Thread Carlos Martín Sánchez
Hi, On Tue, Oct 29, 2013 at 4:43 PM, Simon Boulet wrote: > The libvirt "paused" method I > suggested is a hack that works with OpenNebula and turns the VM that > are internally shutdown to "SUSPENDED" in OpenNebula. Rubén could not retrieve that 'paused' state from libvirt, no matter how the v

Re: [one-users] Shutting down a VM from within the VM

2013-10-29 Thread Simon Boulet
Hi Carlos > We could have a global default in oned.conf, and then allow to change the > behaviour with an attribute in the > VM template. This wouldn't require any extra hooks, and it would work with > any hypervisor. > I think thats the ideal solution! The libvirt "paused" method I suggested i

Re: [one-users] Shutting down a VM from within the VM

2013-10-29 Thread Carlos Martín Sánchez
Hi, I find this thread interesting, especially the --instance-initiated-shutdown-behavior option. In our case, when the driver reports that the VM has disappeared, we could choose to move it to the following states: unknown, done, poweroff, undeployed. We could have a global default in oned.conf,

Re: [one-users] Shutting down a VM from within the VM

2013-10-10 Thread Nistor Andrei
Hi Ruben, Do we really care if the VM was shut down from the inside or not? I was thinking of a hook script like the following: #!/bin/bash VMID=$(echo $1 | cut -d- -f2) if [ $2 == "stopped" ]; then onevm shutdown $VMID fi It's obviously just a big fat (untested) hack, which will probably ba

Re: [one-users] Shutting down a VM from within the VM

2013-10-10 Thread Ruben S. Montero
Hi Simon + Nistor, We've done some tests in the stock drivers when the VM is shutdown (from inside) the VM disappears from the list, show we cannot get the state (not even with --all). How do you get the paused state? On the other hand, the libvirt hook seems a good approach, since we could creat

Re: [one-users] Shutting down a VM from within the VM

2013-10-07 Thread Nistor Andrei
Hi, Maybe you can use libvirt hooks[1] to notify oned via the xmlrpc that the VMs have shut down? [1] http://libvirt.org/hooks.html Andrei On Fri, Oct 4, 2013 at 6:45 PM, Simon Boulet wrote: > Hi, > > Here our driver reports the state as returned by Libvirt [1], which > reports VM terminated

Re: [one-users] Shutting down a VM from within the VM

2013-10-04 Thread Simon Boulet
Hi, Here our driver reports the state as returned by Libvirt [1], which reports VM terminated from the inside (shutdown) as Paused. When the OpenNebula driver sees a VM as being reported as paused [2], it switches the VM to SUSPENDED state in OpenNebula. Then you can restart the VM by issuing the

Re: [one-users] Shutting down a VM from within the VM

2013-10-04 Thread Parag Mhashilkar
Hi Sharuzzaman, Thanks for your response. I am aware of the fact that OpenNebula requires human intervention when shutdown is issued from inside the VM. We can write scripts to do lot of things, but when in the business of resource provisioning, the resource provider does not necessarily contro

Re: [one-users] Shutting down a VM from within the VM

2013-10-03 Thread Sharuzzaman Ahmat Raslan
Hi Parag, I believe OpenNebula need to have human intervention to really determine whether to remove or not the VM that it has deployed. I also think that you can write a script that signal or call OpenNebula command as soon as the task finish, to shutdown the VM. Or if direct calling command not

[one-users] Shutting down a VM from within the VM

2013-10-03 Thread Parag Mhashilkar
Hi, Does OpenNebula EC2 interface support shutting down a VM from with in the VM itself and have the scheduler recognize that VM has been stopped/shutdown? How do we enable this feature? At Fermi, we have OpenNebula v3.2 and when the VM is shutdown it stays in the UNKNOWN state. Can OpenNebula