Re: shutdown all domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/14/2014 08:14 PM, Peng Yu wrote:
> Hi,
> 
> The following shows a script to shutdown all domains. Is this still
> not available in libvirt-bin? If not, will it added in the future?

The libvirt-guests script is about all the more we ever plan on shipping
in the core libvirt packaging; it is already capable of shutting down
all domains.  Beyond that, it's more of a task for the client of
libvirt, and not something core to libvirt itself, which is why shipping
something else new in the 'libvirt-bin' package is probably overkill.
But as always, since this is open source, you're welcome to modify
libvirt-guests or use it as a starting point in writing your own
management projects on top of libvirt, or to contribute patches to
libvirt with justification of why something belongs in libvirt proper.

> 
> http://lists.centos.org/pipermail/centos-virt/2009-November/001358.html

Enhancements to virsh in the meantime can make the script more efficient
- for example, 'virsh list --uuid' is much more reliable than that
scripts attempts to parse vm names out of a longer 'virsh list' output.
 That script suffers from poor shell programming practices, and will
fall over if you have an VM names containing a space.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux