9.5. Setting up a VMware Hypervisor

Note

The virt-who packages that create the host/guest mapping are available for RHEL. In a VMware environment, there must be a RHEL system available to run the virt-who process which connects to the VMware hypervisor.
  1. Create the hypervisor entry in the Portal.
  2. Expand the Subscriptions tab, open the Subscription Management item, and select the Units item.
  3. Click the Register link at the top of the table.
  4. Fill in the name of the new hypervisor.
  5. Click the Register button.
  6. Install the virt-who packages on the RHEL system.
    [root@server ~]# yum install virt-who
  7. Open the virt-who configuration file (/etc/sysconfig/virt-who) and set up the required information for the subscription services.
  8. Enable ESX mode, and set the environment to Library:
    VIRTWHO_ESX=1
    VIRTWHO_ESX_ENV=Library
  9. Specify the owner of the subscriptions. This must be the ID of an organization. For example:
    VIRTWHO_ESX_OWNER=6340056
    The organization ID should be available in the Portal entry for the organization if there are multiple organizations. If it was registered with the Portal (which has a single organization) or if another system is already registered to that organization, then the ID is available using the subscription-manager orgs command.
  10. Set the hostname or IP address of the vCenter server:
    VIRTWHO_ESX_SERVER=vcenter.example.com
  11. Specify the username and password to use when connecting to the vCenter server:
    VIRTWHO_ESX_USERNAME=admin
    VIRTWHO_ESX_PASSWORD=secret
  12. Save the changes to the configuration file.
  13. Start the virt-who service this begins gathering all of the host/guest data.
    [root@vmware-server ~]# service virt-who start
  14. The data are added to the /var/lib/virt-who/hypervisor-systemid-UUID file.
  15. Use chkconfig to configure the virt-who service so that it starts automatically when the system starts.
    [root@vmware-server ~]# chkconfig virt-who on