Proxmox is a complete opensource server virtualization management solution. It offers the ability to manage virtual server (VPS) technology with the Linux OpenVZ and KVM technologies.
Today I error VM (Virtual Machine) on proxmox can not be restarted. The following error message I get
VM QUIT POWERDOWN FAILED PROXMOX
1 |
qm shutdown 100 |
VM quit/powerdown failed – got timeout
To fix this, you can try find a guest VM process ID (PID)
1 |
ps aux | grep "/usr/bin/kvm -id VMID" |
kill the PID with the command
1 |
kill -9 PID |
and then start again your VM
1 |
qm start VMID |
verify your VM working
1 |
qm list |
that’s it!
Or
Script
1 |
nano vm-lock.sh |
add
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#!/bin/sh echo echo '-----AUTHOR: https://galaxydata.ru-----' echo echo 'Existing lock files' ls -l /run/lock/qemu-server read -p 'Enter the VM ID here to delete corresponding lock e.g. 101: ' vmid qm unlock $vmid rm -f /run/lock/qemu-server/lock-$vmid.conf qm unlock $vmid sleep 5 qm start $1 echo echo '---Remaining locks---' ls -l /run/lock/qemu-server |
1 |
chmod +x vm-lock.sh |
run script
1 |
./vm-lock.sh |
1 2 3 4 5 6 |
-----AUTHOR: https://galaxydata.ru----- Existing lock files total 0 -rw-r--r-- 1 root root 0 Dec 23 18:50 lock--1.conf Enter the VM ID here to delete corresponding lock e.g. 101: |