[SOLVED] can't shut down vm

brapsnifr91

New Member
Jun 4, 2022
3
0
0
Made a windows vm to test, went to delete it. I shut it down, it fails to shut down.

For some damn reason there is no sane way to simply copy paste the log, so here's a picture.

I tried restarting the entire server, but the vm just aut orestarts, is there really no way to power off this vm? what is with this insane issue?

I tried to just delete that file, but it doesn't exist.

"can't lock file '/var/lock/qemu-server/lock-100.conf' - got timeout (500)"............ so what I just have to let this vm run forever?

1654338250650.png
 
Last edited:
For now I have fixed it by deleting /run/lock/qemu-server/lock-100.conf and then unlocking the vm "qm unlock 100" 100 being the number of the vm
 
I'm facing this problem too. After several readings and related test I discover the following. I have a PVE installation on a debian 11.6 vanilla.
When the server starts it does not initialize the resolver: if a ping www.google.com via embedded shell, it says "error in the name resolution" (something like this, I'm not English). Please note that if I start a debian vm with gui, I can surf via firefox.
Now, if do nothing vm shutdown works like a charm (debian and mint distro tested), BUT if I do dhclient in the embedded shell of PVE, vm shutdown stops to work (timeout error).
This is myetc/network/interfaces.
Please note there is a post-up and post-down config for wake-on-lan, that I placed here because I already have, at the end of the file, in the debian config: when I install pve@debian I had to create vmbr0
Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp2s0
iface enp2s0 inet dhcp
        post-up /sbin/ethtool -s enp2s0 wol g
        post-down /sbin/ethtool -s enp2s0 wol g

auto vmbr0
iface vmbr0 inet static
        address 172.16.1.107/24
        gateway 172.16.1.1
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!