7.4. Setting up a VMware Hypervisor

Note

The virt-who packages that create the host/guest mapping are available for Red Hat Enterprise Linux. In a VMware environment, there must be a Red Hat Enterprise Linux system available to run the virt-who process which connects to the VMware hypervisor.
  1. Create the hypervisor entry in the Portal.
    1. Expand the Subscriptions tab, open the Subscription Management item, and select the Units item.
    2. Click the Register link at the top of the table.
    3. Fill in the name of the new hypervisor.
    4. Click the Register button.
  2. Install the virt-who packages on the Red Hat Enterprise Linux system.
    [root@server ~]# yum install virt-who
  3. Open the virt-who configuration file (/etc/sysconfig/virt-who) and set up the required information for the subscription services.
    1. Enable ESX mode, and set the environment to Library:
      VIRTWHO_ESX=1
      VIRTWHO_ESX_ENV=Library
    2. 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.
    3. Set the hostname or IP address of the vCenter server:
      VIRTWHO_ESX_SERVER=vcenter.example.com
    4. Specify the username and password to use when connecting to the vCenter server:
      VIRTWHO_ESX_USERNAME=admin
      VIRTWHO_ESX_PASSWORD=secret
    5. Save the changes to the configuration file.
    6. Start the virt-who service; this begins gathering all of the host/guest data.
      [root@vmware-server ~]# service virt-who start
      The data are added to the /var/lib/virt-who/hypervisor-systemid-UUID file.
    7. Use chkconfig to configure the virt-who service so that it starts automatically when the system starts.
      [root@vmware-server ~]# chkconfig virt-who on