# HG changeset patch # User Oleksandr Gavenko # Date 1654598465 -10800 # Node ID 02ca7e4cc63139ff7ce92650a196b217c015d80b # Parent 17158fb949a8f378f0a3cea7281f5f59f17c0c68 Added utility function for halting all VBox VMs. diff -r 17158fb949a8 -r 02ca7e4cc631 .bashrc --- a/.bashrc Tue Sep 28 12:45:16 2021 +0300 +++ b/.bashrc Tue Jun 07 13:41:05 2022 +0300 @@ -328,3 +328,9 @@ -------------------------\n\ total: %{time_total}\n" "$@" } + +myvbox-halt-all() { + vboxmanage list runningvms |& tr -d '\r' | while read name uuid; do + vboxmanage controlvm "$uuid" acpipowerbutton + done +}