0

I'm running a virtual machine with CentOS 7 guest. ACPI daemon is started.

When I shutdown the hypervisor, then guest operating system powers off. I can see in guest's syslog that it was notified that power button was pressed, but it does not stop all the services. Guest operating system just stops.

Is there a way for hypervisor to wait till all the services in the guest operating system are stopped?

  • depends on the hypervisor, I would say. Which one are you using? – Wouter Verhelst Oct 16 '17 at 11:00
  • 1
    You should definitively tell which virtualization software you are using, and how you shutdown the hypervisor. – WhiteWinterWolf Oct 22 '17 at 15:04
0

First off, are you sure that the guest didn't shut itself down after waiting long enough for services to stop?

I'm going to assume you're using libvirt to manage your qemu VMs. If you want to customize how long your local systemd gives libvirtd to shut down its guests, I believe you would define TimeoutStopSec in a systemd drop-in unit corresponding to libvirtd.service. See here for more information about that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.