mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
14 lines
235 B
Bash
14 lines
235 B
Bash
#!/bin/bash5
|
|
|
|
vbm=VBoxManage
|
|
|
|
$vbm list runningvms
|
|
|
|
for vm in $($vbm list runningvms |awk '{print $2}' |tr -d '{}'); do
|
|
echo "$(date) - Stopping $vm"
|
|
$vbm controlvm $vm savestate
|
|
sleep 2 # allow disk to catch up a bit
|
|
done
|
|
|
|
date
|