Skip to content

Instantly share code, notes, and snippets.

@furlongm
Last active December 19, 2016 03:57
Show Gist options
  • Save furlongm/b30b194e24aea3eb4d0bd44f4e6b2844 to your computer and use it in GitHub Desktop.
Save furlongm/b30b194e24aea3eb4d0bd44f4e6b2844 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in $(virsh list ${1} | head -n -1 | tail -n +3 | awk {'print $2'}) ; do
virsh dumpxml ${i}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment