Include hostonlyifs cleanup

pull/5584/head
tstromberg 2019-10-09 15:55:30 -07:00
parent 96b230ecf2
commit 34b6f6d4fb
1 changed files with 6 additions and 0 deletions

View File

@ -145,6 +145,12 @@ if type -P vboxmanage; then
vboxmanage startvm $guid --type emergencystop || true
vboxmanage unregistervm $guid || true
done
vboxmanage list hostonlyifs \
| grep "^Name:" \
| awk '{ print $2 }' \
| xargs -n1 vboxmanage hostonlyif remove || true
echo ">> VirtualBox VM list after clean up (should be empty):"
vboxmanage list vms || true
fi