qemu-guest-agent shutdown

roik

New Member
Aug 4, 2025
1
0
1
Hey All,
I'm working on a project to integrate the qemu-guest-agent service into a RHEL_9_4 based OS in my company.
As part of the development process of this project, I downloaded the qemu-kvm 8.2.0-12 rpm from the redhat package manager - link
After bringing the untainted package I modified it to compile in the designated environment & stripped all non qemu-guest-agent related features from the .spec file.

During testing, the guest agent functions as expected except for the graceful shutdown capability - both from UI button & from server host using "qm shutdown <vmid>".
Environment
host-
1754303211645.png
guest-
1754303392593.png
qemu-guest-agent on guest side -
1754304043236.png
1754304068668.png

Reasearch
When debugging this issue, I tried sending shutdown request from the proxmox host server with "qm shutdown <vm id>"
1754303758131.gif
The shutdown request was received from agent side but guest remains running
1754303788823.gif
when connecting directly to the socket and sending acpi request - it seems to work ("execute" : "system_powerdown"}
1754304223300.gif

Note: I tested the same rpm on Linux Rocky 9.5 and the graceful shutdown seems to work fine - which makes me think this is OS related.

How can I further investigate this problem? are there any configuration I can test that might resolve this?
Thank' s
 

Attachments

  • 1754303953185.png
    1754303953185.png
    4.8 KB · Views: 2