Skip to content

Instantly share code, notes, and snippets.

@gautamkrishnar
Last active July 10, 2022 09:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gautamkrishnar/e93c7f271697c674db847d9ce0695b85 to your computer and use it in GitHub Desktop.
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

Usage

./kill-vm.sh <vm_id>
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