On Thu, Jun 18, 2020 at 12:33 AM Louis Bohm <louisbohm(a)gmail.com> wrote:
I have a single ovirt host running 2 VMs. If I do a shutdown -h now on the kvm host will
ovirt do a similar shutdown command on the VMs? And wait for them to shutdown before
finishing it's shutdown?
No. To shut down a host you should do:
In oVirt UI (or via the API):
1. Shut down vms running on host
2. Put host to maintenance
3. Shut down the host
If you have more than one host, you can simply do:
1. Put host to maintenance
2. Shut down the host
oVirt will migrate the VMs to other hosts.
Please do not tell me I should have 2 physical hosts. I know but
it's not in the clients budget.
More hosts are useful but not required.
You can automate this using the oVirt API, SDK, or ansible, and add a service
that runs at shutdown and does what you want.
Nir