QEMU/KVM ACPI Guest Shutdown

From Proxmox VE
Revision as of 13:45, 14 October 2020 by Thomas Lamprecht (talk | contribs) (Thomas Lamprecht moved page Acpi kvm to QEMU/KVM ACPI Guest Shutdown)
Jump to navigation Jump to search

Introduction

Proxmox VE uses ACPI to send shutdown signals to the Virtual Machines (QEMU/KVM). Thus your Virtual Machines needs to support ACPI so that it may react to such signals.

You should check if your VM reacts properly to the ACPI signals. Else the VM may not shutdown and Proxmox VE will stop it after a timeout on some API calls. Such a stop can lead to data loss in the worst case.

Linux

For Linux Virtual Machines, make sure that the ACPI event daemon is installed and running. Desktop distributions should already have it, but minimal or Server distributions may not.

For Ubuntu and Debian install the 'acpid' package in the Virtual Machine.

Windows

For Windows, make sure an ACPI HAL is installed.

On Windows server 2003/8 also make sure to change policy to allow shutdown without being logged into the system. Start -> Run:

 gpedit.msc

Find the following key:

Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Shutdown: Allow system to be shut down without having to log on

Change it to Enabled.

Windows HAL Links

QEMU Guest Agent as Alternative

ACPI shutdown may not always work, one can setup the QEMU Guest Agent (QGA) as an alternative.

Just ensure that you enable it in the VMs Options in the Proxmox VE webinterface, and to install and run the agent inside the VM.