6.5. Using virt-who with Hyper-V

  1. To make the virt-who connection to Hyper-V work, enable Windows Remote Management and either HTTP or HTTPS listener must be running. On the Hyper-V server:
    # winrm quickconfig
  2. The firewall must allow remote administration. On the Hyper-V server:
    # netsh advfirewall firewall set rule group="Remote Administration" new enable=yes
  3. If you are using HTTP, enable the unencrypted connection. On the Hyper-V server:
    # winrm set winrm/config/service @{AllowUnencrypted="true"}
  4. Only Basic and NTLM authentication methods are supported. To verify that either Basic or Negotiate is enabled (True):
    # winrm get winrm/config/service/auth
  5. On the Red Hat server, log in as root. Install the virt-who package:
    # yum install virt-who
  6. Edit the /etc/sysconfig/virt-who file and set the parameters as follows:
    VIRTWHO_BACKGROUND=1
    VIRTWHO_DEBUG=1
    VIRTWHO_ONE_SHOT=0
    VIRTWHO_INTERVAL=0
    VIRTWHO_SATELLITE6=1
    VIRTWHO_HYPERV=1
    VIRTWHO_HYPERV_OWNER=Satellite_Organization
    VIRTWHO_HYPERV_ENV=Library
    VIRTWHO_HYPERV_SERVER=IP or FQDN
    VIRTWHO_HYPERV_USERNAME=Your_User_Name (you must use your Hyper-V administrator account)
    VIRTWHO_HYPERV_PASSWORD=Your_Password
    With the VIRTWHO_SATELLITE6 parameter enabled, virt-who sends reports to Red Hat Satellite.
  7. Start and enable the virt-who service:
    • On Red Hat Enterprise Linux 6:
      # service virt-who start
      # chkconfig virt-who on
      
    • On Red Hat Enterprise Linux 7:
      # systemctl start virt-who
      # systemctl enable virt-who
      
  8. Optional: To configure the virt-who service to use a Windows domain account, edit your username with a double backslash in the virt-who configuration file.
    For example:
    VIRTWHO_HYPERV_USERNAME="MYDOMAIN\\user"