6.8. vCenter Configuration Example for Reporting Data to Multiple Organizations

In this example, you have two vCenter environments, and you want to do the following:
  • Place hypervisors from the first instance of vCenter into the Organization 'Engineering' on your Satellite 6.
  • Place hypervisors from the second instance of vCenter into the Organization 'Operations' on your Satellite 6.

Note

You must have virt-who running on two systems, one for each organization. The following system hostnames denote the difference between the two virt-who systems:
hostname - eng-virt-who.example.com (virt-who instance reports hypervisors in vCenter1 to the 'Engineering' Organization)
hostname - ops-virt-who.example.com (virt-who instance reports hypervisors in vCenter2 to the 'Operations' Organization)
This example uses the following information:
Vcenter1:
Hostname - vcenter1.example.com
username - read_write@vsphere.local
password - supersecret

Vcenter2:
Hostname - vcenter2.example.com
username - read_only@vsphere.local
password - notsosecret

Procedure 6.1. Part 1

  1. On system eng-virt-who.example.com, install virt-who:
    [root@eng-virt-who.example.com]# yum install virt-who
  2. Create an encrypted password string for vcenter1:
    [root@eng-virt-who.example.com]# virt-who-password
    Password: type the 'supersecret' password
    Use following as value for encrypted_password key in the configuration file:
    5e7367195d9fe2aa4b6667f93f17c5bd
    
  3. Edit /etc/virt-who.d/vcenter-1 and add the following content:
    [vcenter-1]
    type=esx
    server=vcenter1.example.com
    username=read_only@vsphere.local
    encrypted_password=5e7367195d9fe2aa4b6667f93f17c5bd
    owner=Engineering
    env=Library
    
  4. Restart virt-who.
    • On Red Hat Enterprise Linux 6:
      # service virt-who restart
      
    • On Red Hat Enterprise Linux 7:
      # systemctl restart virt-who
      

Procedure 6.2. Part 2

On system ops-virt-who.example.com, complete the following steps:
  1. Install virt-who:
    [root@ops-virt-who.example.com]# yum install virt-who
  2. Create an encrypted password string for vcenter2:
    [root@ops-virt-who.example.com]# virt-who-password
    Password: type the 'notsosecret' password
    Use following as value for encrypted_password key in the configuration file:
    4ff5da2eee0648d99fd0c24337f98bd6
    
  3. Edit /etc/virt-who.d/vcenter-2 and add the following content:
    [vcenter-2]
    type=esx
    server=vcenter2.example.com
    username=read_only@vsphere.local
    encrypted_password=4ff5da2eee0648d99fd0c24337f98bd6
    owner=Operations
    env=Library
    
  4. Restart virt-who.
    • On Red Hat Enterprise Linux 6:
      # service virt-who restart
      
    • On Red Hat Enterprise Linux 7:
      # systemctl restart virt-who