Show Table of Contents
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.
- Create the hypervisor entry in the Portal.
- Expand the Subscriptions tab, open the Subscription Management item, and select the Units item.

- Click the Register link at the top of the table.

- Fill in the name of the new hypervisor.

- Click the button.
- Install the
virt-whopackages on the Red Hat Enterprise Linux system.[root@server ~]# yum install virt-who
- Open the
virt-whoconfiguration file (/etc/sysconfig/virt-who) and set up the required information for the subscription services.- Enable ESX mode, and set the environment to
Library:VIRTWHO_ESX=1 VIRTWHO_ESX_ENV=Library
- 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 thesubscription-manager orgscommand. - Set the hostname or IP address of the vCenter server:
VIRTWHO_ESX_SERVER=vcenter.example.com
- Specify the username and password to use when connecting to the vCenter server:
VIRTWHO_ESX_USERNAME=admin VIRTWHO_ESX_PASSWORD=secret
- Save the changes to the configuration file.
- Start the
virt-whoservice; 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-UUIDfile. - Use
chkconfigto configure thevirt-whoservice so that it starts automatically when the system starts.[root@vmware-server ~]# chkconfig virt-who on

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.