How to make it so that a "reboot" is enough to apply pending QEMU settings changes ?

shodan

Well-Known Member
Sep 1, 2022
305
75
48
Hi,

I rebooted this machine, but the settings did not apply.

1789928853402.png
I think during the reset itself, proxmox should reset or reload settings on the QEMU process.
The alternative is that you have to fully shutdown and go in and restart it. I would like it to be enough to reboot from the guest OS and the pending changes would apply !
 
Ok, I test
Without guest agent, nothing but a full shutdown with the VM stopping worked
With guest agent, the VM rebooting itsef, like below, doesn't work
1789971733770.png
Rebooting the VM using the external control (which require the Guest agent), that works
1789971760771.png
----------------
That remind me, Shutdown and reboot should not even be visible as options if the guest agent it not tested-operational (and probably not hibernate either ? does it have guest-hibernate and proxmox hibernate ? If yes then we should have separate option for hypervisor hibernate and guest hibernate as those are really distinct operations )
 
So the big question is

Can QEMU recognize when the VM actually resets it's processor ?
I feel like that is a really special and easy to distinguish moment for the hypervisor, and it should be possible for the hypervisor orchestrator to detect that, since it has pending changes, it should re-launch the QEMU process.

And also, QEMU should be able to just enable that on fly WITHOUT a reboot, the virtual display, memory, cpu cores, audio devices, cdroms, serial ports, parrallel ports and PCIE passthrough should all be hot plug hot swap and hot disconnect