Created
December 6, 2013 06:24
-
-
Save phunehehe/7819413 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in $(virsh list | grep running | awk '{print $2}') | |
do | |
virsh autostart $i | |
done | |
for i in $(virsh list --all | grep 'shut off' | awk '{print $2}') | |
do | |
virsh autostart --disable $i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment