How to register RHEV / VMWare guest systems to Red Hat Satellite v6 to use Red Hat Unlimited Guest Subscriptions?

How to register RHEV / VMWare guest systems to Red Hat Satellite v6 to use 'Red Hat Unlimited Guest Subscription' subscriptions?

 Resolution

  • Register any of the client system to Red Hat Satellite v6 using steps described at How do I register my client to my Red Hat Satellite 6 server?
  • Install and configure virt-who package on the system that is registered to Red Hat Satellite v6 to use the following subscriptions.
  • Red Hat Enterprise Linux Server Unlimited Guest Subscription.
  • Red Hat Virtual Datacenter Subscription.
Installing virt-who package on the system:
[root@localhost ~]# yum install virt-who
[root@localhost ~]# chkconfig virt-who on
[root@localhost ~]# service virt-who start
Configure virt-who service (VMWare):
  • Edit the virt-who configuration file /etc/sysconfig/virt-who and enable the following parameters.
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=0
VIRTWHO_INTERVAL=0
VIRTWHO_SATELLITE6=0
VIRTWHO_ESX=1
VIRTWHO_ESX_OWNER=<org ID>
VIRTWHO_ESX_ENV=Library
VIRTWHO_ESX_SERVER=<your vCenter Server FQDN>
VIRTWHO_ESX_USERNAME=DOMAIN\USER for windows  root or any other user with permissions
VIRTWHO_ESX_PASSWORD=<vCenter user password>
Note: To find the org ID, execute the below command.
subscription-manager identity | grep "org ID"

Configure virt-who service (RHEV):
  • Edit the virt-who configuration file /etc/sysconfig/virt-who and enable the following parameters.
VIRTWHO_BACKGROUND=1
VIRTWHO_DEBUG=1
VIRTWHO_INTERVAL=10
VIRTWHO_SAM=1
VIRTWHO_RHEVM=1
VIRTWHO_RHEVM_OWNER=<org ID>
VIRTWHO_RHEVM_ENV=Library
VIRTWHO_RHEVM_SERVER=<https://your_rhevm_server:443>
VIRTWHO_RHEVM_USERNAME=<rhevmusername@domain>
VIRTWHO_RHEVM_PASSWORD=<rhevm password>

Restart virt-who service:
  • After the modifying the virt-who configuration file, restart its service.
[root@localhost ~]# service virt-who restart
  • To populate the new hypervisor profile on the Satellite UI, refresh the subscription-manager.
[root@localhost ~]# subscription-manager refresh
Attach subscription to the hypervisor profile in Satellite v6:
  • Login into the Satellite UI.
  • Click on Hosts -> Content Hosts -> Select the system where virt-who service is configured.
  • Virtual Host Entry will be visible there now.
  • Click on the Virtual Host Link -> Select Subscriptions Tab -> Add either of the above subscriptions to it.
  • Once subscription is attached to hypervisor profile, this will unlock the guest subscriptions for guest running under this hypervisor; the guests will now be able to consume the guest subscriptions.
Now the guest systems registered to Satellite can consume Virtual subscriptions. To confirm you can execute the following command.
[root@localhost ~]# subscription-manager list --available | grep -i 'System Type:'
System Type:       Virtual
Note:
  • The above subscriptions has to be attached only to hypervisor profile.
  • Attaching these subscriptions directly to the guest system will consume the physical subscriptions and prevent the guest subscriptions from being available.




Comments

Popular posts from this blog

How to clean all the foreman task and locked task

CentOS 7 Server Hardening Guide

How to restrict users to send only mail to the local domain in Zimbra