virt-who on HyperV fails with error "Invalid response (500) from Hyper-V"

Solution Verified - Updated -


  • virt-who-0.22.5-1.el7.noarch or below version (reporting to Customer Portal or Satellite 6)
  • Red Hat Enterprise Linux


  • Running virt-who configured for HyperV failed to do host/guest mapping with error:
Invalid response (500) from Hyper-V: <s:envelope xml:lang="en-US" xmlns:s="<a target='_blank' href=" http:="""" 2003="" 05="" soap-envelope"="" title="">" xmlns:a="" xmlns:x="" xmlns:e="" xmlns:n="" xmlns:w="" xmlns:p=""><s:header><a:action></a:action><a:messageid>uuid:89C5C617-75DA-4B99-BFB6-66358624BCE9</a:messageid><a:to></a:to><a:relatesto>uuid:370271c4-577b-11e9-8b78-00155dccc60b</a:relatesto></s:header><s:body><s:fault><s:code><s:value>s:Receiver</s:value><s:subcode><s:value>w:InternalError</s:value></s:subcode></s:code><s:reason><s:text xml:lang="">An internal error occurred. </s:text></s:reason><s:detail><f:wsmanfault xmlns:f="<a target='_blank' href=" http:="""" wbem="" wsman="" 1="" wsmanfault"="" title="">" Code="1359" Machine=""><f:message><f:providerfault provider="WMI Provider" path="C:\Windows\system32\WsmWmiPl.dll"><f:wsmanfault xmlns:f="<a target='_blank' href=" http:="""" wbem="" wsman="" 1="" wsmanfault"="" title="">" Code="1359" Machine=""><f:message>HRESULT = 0x80041032</f:message></f:wsmanfault></f:providerfault></f:message></f:wsmanfault></s:detail></s:fault></s:body></s:envelope>


  • Upgrade the virt-who package to the latest version, which is virt-who-0.24.6-1.el7.noarch and above.
  • Restart the virt-who service.

Root Cause

  • Hyper-V response 500 internal server error when it is taking too long to query the HyperV version. This is caused by the inefficient WQL query which is not specific enough.

Diagnostic Steps

  • virt-who is unable to connect with Hyper-V, fails with below error which can be seen in /var/log/rhsm/rhsm.log file.
2019-07-11 13:44:46,775 [virtwho.main ERROR] MainProcess(56516):Thread-3 - Thread 'hyperv-01' fails with error: Communication with Hyper-V failed, HTTP error: 500
2019-07-11 13:44:46,775 [virtwho.main INFO] MainProcess(56516):Thread-3 - Report for config "hyperv-01" gathered, placing in datastore
2019-07-11 13:44:46,777 [virtwho.main DEBUG] MainProcess(56516):Thread-3 - Thread 'hyperv-01' stopped after running once

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.