qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] How does a guest OS differentiate between a Reboot/Shutdown


From: Srinivasan J
Subject: [Qemu-devel] How does a guest OS differentiate between a Reboot/Shutdown ACPI event
Date: Mon, 26 Sep 2016 08:08:44 +0530

Hi,

I have Ubuntu 14.04.1 (ubuntu-14.04.1-server-amd64.iso) guest running
in a KVM host. The host is running Ubuntu 16.04. I'm trying to find
out how Ubuntu 14.04.1 differentiates between virsh shutdown and virsh
reboot commands issued in the host. I see that in both cases the ACPI
event seen at the guest are exactly same. The guest however correctly
shuts down on issuing "virsh shutdown" and correctly reboots on
issuing "virsh reboot".

syslog:Sep 25 12:33:51 ubuntu acpid: waiting for events: event logging is on
syslog:Sep 25 12:34:46 ubuntu acpid: received input layer event
"button/power PBTN 00000080 00000000"
syslog:Sep 25 12:34:46 ubuntu acpid: rule from /etc/acpi/events/powerbtn matched
syslog:Sep 25 12:34:46 ubuntu acpid: executing action "/etc/acpi/powerbtn.sh"
syslog:Sep 25 12:34:46 ubuntu acpid: action exited with status 0
syslog:Sep 25 12:34:46 ubuntu acpid: 1 total rule matched
syslog:Sep 25 12:34:46 ubuntu acpid: completed input layer event
"button/power PBTN 00000080 00000000"
syslog:Sep 25 12:34:46 ubuntu acpid: received netlink event
"button/power LNXPWRBN:00 00000080 00000001"
syslog:Sep 25 12:34:46 ubuntu acpid: rule from /etc/acpi/events/powerbtn matched
syslog:Sep 25 12:34:46 ubuntu acpid: executing action "/etc/acpi/powerbtn.sh"
syslog:Sep 25 12:34:46 ubuntu acpid: action exited with status 0
syslog:Sep 25 12:34:46 ubuntu acpid: 1 total rule matched
syslog:Sep 25 12:34:46 ubuntu acpid: completed netlink event
"button/power LNXPWRBN:00 00000080 00000001"
syslog:Sep 25 12:35:02 ubuntu acpid: starting up with netlink and the
input layer
syslog:Sep 25 12:35:02 ubuntu acpid: 1 rule loaded
syslog:Sep 25 12:35:02 ubuntu acpid: waiting for events: event logging is on
syslog:Sep 25 12:36:13 ubuntu acpid: received input layer event
"button/power PBTN 00000080 00000000"
syslog:Sep 25 12:36:13 ubuntu acpid: rule from /etc/acpi/events/powerbtn matched
syslog:Sep 25 12:36:13 ubuntu acpid: executing action "/etc/acpi/powerbtn.sh"
syslog:Sep 25 12:36:13 ubuntu acpid: action exited with status 0
syslog:Sep 25 12:36:13 ubuntu acpid: 1 total rule matched
syslog:Sep 25 12:36:13 ubuntu acpid: completed input layer event
"button/power PBTN 00000080 00000000"
syslog:Sep 25 12:36:13 ubuntu acpid: received netlink event
"button/power LNXPWRBN:00 00000080 00000001"
syslog:Sep 25 12:36:13 ubuntu acpid: rule from /etc/acpi/events/powerbtn matched
syslog:Sep 25 12:36:13 ubuntu acpid: executing action "/etc/acpi/powerbtn.sh"
syslog:Sep 25 12:36:13 ubuntu acpid: action exited with status 0
syslog:Sep 25 12:36:13 ubuntu acpid: 1 total rule matched
syslog:Sep 25 12:36:13 ubuntu acpid: completed netlink event
"button/power LNXPWRBN:00 00000080 00000001"
syslog:Sep 25 12:36:27 ubuntu acpid: starting up with netlink and the
input layer
syslog:Sep 25 12:36:27 ubuntu acpid: 1 rule loaded
syslog:Sep 25 12:36:27 ubuntu acpid: waiting for events: event logging is on


Guest details:

address@hidden:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

Host details:

address@hidden:~/Downloads$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:        16.04
Codename:       xenial
address@hidden:~/Downloads$ virsh version
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0

Regards,
Srini



reply via email to

[Prev in Thread] Current Thread [Next in Thread]