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 guest calls halt -d -f -i -p -h
from /etc/rc0.d/S90halt
. I don't see a change to runlevel 6 when virsh reboot
is used (confirmed using echo to file in /etc/rc0.d/S90halt
and /etc/rc6.d/S90reboot
).
I also found that in Ubuntu 14.04.1 systemd-logind processes the acpi event and in turn does a dbus call to get systemd-shim
running, which calls shutdown to get the runlevel changed to '0' through upstart. Any help in understanding this better it much appreciated.
Guest details:
srinij@ubuntu:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
Host details:
srinij@ubuntu-server-16x:~/Downloads$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
srinij@ubuntu-server-16x:~/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