git.infertux.com bin-scripts / master VBoxClean
master

Tree @master (Download .tar.gz)

VBoxClean @masterraw · history · blame

1
2
3
4
5
6
7
#!/bin/bash -eu

set -o pipefail

VBoxManage list vms
VBoxManage list runningvms | awk '{print $2}' | xargs -I vmid VBoxManage controlvm vmid poweroff
VBoxManage list vms | awk '{print $2}' | xargs -I vmid VBoxManage unregistervm --delete vmid