VM fails to shut down

TwoFour

New Member
Nov 3, 2024
12
1
3
When I try to shut down a VM that is installing a Windows guest, it does not shut down or reset:

1730734879338.png

Not even after it completed installation and rebooted, when I am in the ESC BIOS:

1730735202156.png

How do we recover from a rogue guests running wild and refusing to shut down? This is dangerous.
 
The guest is not installed yet. It is being installed. As in in progress.
So the guest-agent is not installed yet if I understand correctly? Shutdown can only work correctly if the guest agent is installed and running. If you really want to stop the VM during the Windows install, just use the Stop option - this works regardless of guest agent and is somewhat equivalent to just pulling the plug of a physical machine.
 
I must have used a wrong term. I am not looking to gracefully shut the guest OS down. I want to power off the VM but it is not powering off and stays running.
 
The stop command can also fail if there are other shutdown/reboot tasks pending, so check if there are any other tasks running and stop them if need be.

If that doesn't help and you really just want to force the VM to stop, you can simply kill the kvm process of the VM:

1) First find out the process ID of the VM:

ps aux | grep "/usr/bin/kvm -id <insert vmid here>"

2) Then kill the process

kill -9 <process id>
 
Last edited:

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!