docs: update virt/vm

This commit is contained in:
2025-06-19 18:52:21 +00:00
parent 63afab965c
commit 8931b6ae2b

View File

@ -2,7 +2,7 @@
title: Machine definition
description: Virtual machine hardware
published: true
date: 2025-06-19T18:47:54.376Z
date: 2025-06-19T18:52:19.311Z
tags:
editor: markdown
dateCreated: 2025-06-01T17:37:29.262Z
@ -255,3 +255,24 @@ Despite its scary name, the `destroy` means that the domain will be terminated c
- [Events configuration on libvirt website](https://libvirt.org/formatdomain.html#events-configuration)
## Power Management
This define section defines ACPI sleep states, suspend to memory meaning S3 state and suspend to disk S4 state.
```
<domain type='kvm'>
[...]
<pm>
<suspend-to-disk enabled='no'/>
<suspend-to-mem enabled='yes'/>
</pm>
[...]
</domain>
```
Despite its scary name, the `destroy` means that the domain will be terminated completely and all associated resources released, not that the domain will be erased.
### Resources about Power Management
- [Power Management section on libvirt website](https://libvirt.org/formatdomain.html#power-management)