<on_crash>
Configures the behavior of the virtual server in the crashed state.
If kdump is set up for the KVM guest that runs on the virtual server, kdump takes priority and the <on_crash> configuration takes effect only if kdump fails.
Text content
- preserve
- Preserves the crashed state.
- coredump-destroy
- Write a core dump to /var/lib/libvirt/qemu/dump, then stop the virtual server and release all resources.
- coredump-restart
- Write a core dump to /var/lib/libvirt/qemu/dump, then restart the virtual server. This setting incurs the danger of restart and crash cycles with dumps accumulating on the KVM host.
- destroy
- Stop the virtual server and release all resources. This is the default.
- restart
- Restart the crashed virtual server. This setting incurs the danger of unnoticed restart and crash cycles.
Selected attributes
None.Usage
Parent elements
<domain>Child elements
None.Example
<on_crash>preserve</on_crash>