How to configure virt-who for RHV-M to report to Satellite 6
Environment
Red Hat Enterprise Virtualization, RHV-H, RHV-M
Satellite 6.1, 6.2
Issue
- How do I configure
virt-whofor RHEV-M to report all RHEV hypervisors to Satellite 6 and perform guest/host mapping?
Resolution
-
Install virt-who from the satellite-tools repository [1]:
# yum install virt-who -
Verify if the version of
virt-whois new or at least equal to version 0.14:# rpm -qa | grep virt-who virt-who-0.14-9.el7.noarch -
Create a new configuration file:
# vi /etc/virt-who.d/rhevm [rhevm] type=rhevm server=https://rhevm.example.com:443 username=rhevadmin@rhevm.example.com password=PasswordforRHEVM owner=OrganizationName env=Library hypervisor_id=hostname -
Make the following modifications in
/etc/sysconfig/virt-whoand ensure no other lines exist:VIRTWHO_BACKGROUND=1 VIRTWHO_DEBUG=0 VIRTWHO_INTERVAL=3600 -
Restart the
virt-whoservice:# `systemctl start virt-who` or `service virt-who restart`
[1] Per 6.2 documentation, install virt-who on each RHV-H and the RHV-M. Follow the link for how to configure virt-who on each RHV-H.
For more KB articles/solutions related to Virt-who and Virtual Datacenter (VDC) Subscriptions Issues, please refer to the Consolidated Troubleshooting Article for Virt-who and Virtual Datacenter (VDC) Subscriptions Issues
Diagnostic Steps
You can verify in /var/log/rhsm/rhsm.log if there are any errors for the configuration of virt-who:
{
"guestId": "3b422a7e-2f36-4e44-889d-05ba804572f8",
"state": 1,
"attributes": {
"active": 1,
"virtWhoType": "rhevm",
"hypervisorType": "qemu"
}
},
{
"guestId": "240ff50b-e54b-4fba-a75e-9d29ad2384ee",
"state": 1,
"attributes": {
"active": 1,
"virtWhoType": "rhevm",
"hypervisorType": "qemu"
}
},
{
"guestId": "5d745358-710f-400a-98c5-d896fa8b134c",
"state": 1,
"attributes": {
"active": 1,
"virtWhoType": "rhevm",
"hypervisorType": "qemu"
}
},
{
"guestId": "1bdcde39-fc57-47f1-aeb9-628c85e67883",
"state": 1,
"attributes": {
"active": 1,
"virtWhoType": "rhevm",
"hypervisorType": "qemu"
}
},
{
"guestId": "41c2d0d5-a112-4665-a689-eb9d69828276",
"state": 1,
"attributes": {
"active": 1,
"virtWhoType": "rhevm",
"hypervisorType": "qemu"
}
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.