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 OSs when their hypervisor is stopped.
If a hypervisor is stopped or restarted while its guest OSs 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.
Note
Check if the version of the libvirt package of the Host OS is 0.9.4-23.el6_2.4 or later.
The libvirt package contains some security incompatibilities. If the version is earlier than 0.9.4-23.el6_2.4, please upgrade it.
For details, refer to the following web site.
URL: https://access.redhat.com/knowledge/solutions/71283 |