The KVMGuest agent validates the virtualization environment with the help of a standalone utility havirtverify.
The agent invokes this utility in open entry point and attr_changed entry point. The utility validates the configured virtualization environment for a resource based on its configuration.
For RHEV, the utility:
Validates the configured URL and user credentials.
Verifies whether RHEV HA for a configured virtual machine is disabled or not.
Verifies the DROpts attribute
For KVM, the utility checks whether libvirtd is running or not.
Once the validation is passed, the agent can start monitoring the resource. If validation fails for a particular resource, its state is reported as UNKNOWN. This validation is also triggered if value of either of the following attributes changes:RHEVMInfo, GuestName.
You can also run this utility manually for verifying the environment.
To validate the RHEV environment
# /opt/VRTSvcs/bin/KVMGuest/havirtverify resource_name
If validation passes, the following message displays:
#/opt/VRTSvcs/bin/KVMGuest/havirtverify resource_name Red Hat Enterprise Virtualization Environment validation successfully completed for resource resource_name
If validation fails, the following message displays:
# /opt/VRTSvcs/bin/KVMGuest/havirtverify resource_name Virtualization environment validation failed for resource resource_name
All the log messages of this utility are sent to the engine log file.