Skip to contentSkip to conversation

Detecting Guest Shutdown

DISCUSSION Erik Rull 2 participants 2 messages May 22, 2010 – May 23, 2010 KVM

lore
Share & tools
lore

Erik Rull

author
#0 lore raw

Hi all,

is it possible to detect a guest shutdown?

I want to stop a service if my windows guest is shutted down and force a sync of the disks - because it could be possible that the user switches off the system afterwards and he has no possiblity to tell linux to shut down safely, because he only sees the shutted down screen of windows.

Best regards,

Erik

#1 lore raw
Quoted 3 lines · Erik Rull

Hi all,

is it possible to detect a guest shutdown?

qemu exits on guest shutdown.

Quoted 2 lines

I want to stop a service if my windows guest is shutted down and force a sync of the disks - because it could be possible that the user switches off the system afterwards and he has no possiblity to tell linux to shut down safely, because he only sees the shutted down screen of windows.

Install Windows with ACPI enabled.

Signature · 1 line
error compiling committee.c: too many arguments to function