Skip to content

Instantly share code, notes, and snippets.

@rd2b
Last active December 11, 2015 11:19
Show Gist options
  • Save rd2b/4593257 to your computer and use it in GitHub Desktop.
Save rd2b/4593257 to your computer and use it in GitHub Desktop.
Commands for virsh and KVM
# Stops All running virtual machines :
for i in $(virsh list |sed -n "s/.*\s\(.*local\).*running/\1/ p")
do
virsh destroy $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment