[ovirt-users] Shutdown all VM's command line

Yaniv Kaul ykaul at redhat.com
Wed Jan 10 06:55:40 UTC 2018


On Jan 10, 2018 1:56 AM, "Marcelo Leandro" <marceloltmm at gmail.com> wrote:

Do you can do this with python sdk, do you can build a list and shutdown
all vms. If you want I can make a script to you tomorrow.


Or with Ansible.
But in 4.2, I believe the VMs are registered with libvirt and will be shut
down nicely with the host.
Y.



Marcelo Leandro

Em 09/01/2018 8:30 PM, "Wesley Stewart" <wstewart3 at gmail.com> escreveu:

> Is there an easy way to do this?
>
> I have a UPS connected to my freenas box, and using NUT and UPSC I can
> monitor the battery level on my centos 7 host.
>
> In the case of an emergency, and my UPS goes below, lets say 40% battery,
> I would like to make a script to shutdown all running VMs, and then reboot
> the host.
>
> Otherwise I am afraid of sending a straight reboot command to the host
> without taking care of the virtual machines first.
>
> Thanks!
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
Users at ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180110/34eda3ab/attachment.html>


More information about the Users mailing list