In addition to the operations in "Chapter 8 Defining and Configuring the Server Environment", the following operations are necessary.
Installation and configuration of the host OS
Settings for /etc/sysconfig/libvirt-guests of the host OS
/etc/sysconfig/libvirt-guests is a definition file, which is used to automatically stop guest OS's when their hypervisor is stopped.
If a hypervisor is stopped or restarted while its guest OS's are being operated, all virtual machines on the hypervisor will be suspended.
The suspension of the virtual machines is canceled when the hypervisor is started or restarted, and then suspended tasks are resumed.
Resuming tasks from the point of suspension may cause problems such a contradictions in database transactions. In order to avoid this type of problem, the settings explained in this section are required.
Edit the /etc/sysconfig/libvirt-guests of the VM host as follows:
Cancel the commenting out of the #ON_BOOT=start line, and then change it to ON_BOOT=ignore.
Cancel the commenting out of the #ON_SHUTDOWN=suspend line, and then change it to ON_SHUTDOWN=shutdown.
Cancel the commenting out of the #SHUTDOWN_TIMEOUT=0 line, and then change it to SHUTDOWN_TIMEOUT=300.
For the VM guest, set the time between when the shutdown command is sent from the VM host and the when the VM guest is actually powered off. The unit is seconds.