Reboot and Shutdown not functioning in custom image

lancethepants

New Member
Jun 22, 2023
5
0
1
I've created a bootable linux image that uses grub2 and x86-64-efi to boot (using the OVMF (UEFI) bios option). I've enable "QEMU guest agent" and have qemu-ga running on the VM. I was hoping that would be enough for the webui reboot and shutdown commands to work. This page says qemu-ga can be an alternative, and I don't get any errors when I "ping" the VM qemu-agent , plus I also see IPs and interfaces in the VM summary, so I know qemu-ga is talking to proxmox.
https://pve.proxmox.com/wiki/QEMU/KVM_ACPI_Guest_Shutdown

I also tried disabling "ACPI support" for the VM because maybe that would force it to use qemu-ga instead of acpi, but then my VM just fails to boot at all with that disabled.
I just updated today to proxmox 8 but also couldn't get it to work on proxmox 7.

thanks!
 
Last edited:
So it looks like qemu-ga issues the request through the "shutdown" command. I have a custom init so I'm not using systemd or others inits that may come with the shutdown command. I'll just have to figure out something myself cause this is a bit of a special case I think.
 

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!