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
#!/bin/bash | |
# | |
# Usage: hibernate-vm NAME | |
# | |
# Hibernates the VM specified in NAME and waits for it to finish shutting down | |
# | |
if virsh dompmsuspend "$1" disk; then | |
echo "Waiting for domain to finish shutting down.." >&2 |