./kill-vm.sh <vm_id>
Last active
July 10, 2022 09:31
-
-
Save gautamkrishnar/e93c7f271697c674db847d9ce0695b85 to your computer and use it in GitHub Desktop.
Shell script to force kill a Proxmox VE VM when it stop responding using the VM ID
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
ps aux | grep "/usr/bin/kvm -id "$1 | awk '{print $2}' | head --line=1 | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment