libvirtlibvirt knows how to handle this. If you don`tdon't mind installing libvirtdlibvirtd and virshvirsh, then you can use:
virsh list
virsh list
to show the name(s) of the guest(s) and. And, to shutdown gracefully the guest with name guest_001 -guest_001, use the command:
virsh shutdown guest_001
virsh shutdown guest_001