Proxmox VE closes the virtual machine and closes the timeout manually

When directly using PVE to close the virtual machine timeout, enter the PVE host and use the following command

1. First check the vmID of the virtual machine that needs to be shut down

root@matchpve02:~# qm list
      VMID NAME                 STATUS     MEM(MB)    BOOTDISK(GB) PID       
     10010 Centos01             stopped    1024               6.00 0         
     10011 Centos02             running    2048               6.00 26740

2. Try shutting down the virtual machine with the command

qm stop vmID

If it cannot be closed, an error is reported at the same time:

can't lock file '/var/lock/qemu-server/lock-10011.conf' - got timeout
Solution:

1. First delete the lock file

rm -rf /var/lock/qemu-server/lock-10011.conf

2. Then try to use the command to close

qm stop vmID

Guess you like

Origin blog.csdn.net/shoujoai/article/details/132123675