Using RHEL Subscription in Virtual Data Center.

April 8, 2018 at 3:03 pm Leave a comment

Hi All

Recently I got an opportunity to work in a project that involved with RHEL 7.4 Deployment. This projects required several VM’s as it was intended to use Kubernetes on RHEL. In this post I am focusing on how to register the RHEL VM’s using the  RHEL Virtual DataCenter Subscription licenses. In my case VMware was being used as the Hypervisor.

Once you procure the required license and RH Customer portal access is ready. You need to configure virt-who on one of the VM’s(This VM does not need to be the production VM , as I prefered in my case). Below steps will outline the process.

  •  On the newly created VM , you need to install the virt-who (using the RHEL Media as the REPO. This VM will be the virt-who host).
  • Run the command subscription-managaer register
  • Run the command subscription-manager idenetity.(Note down the value for Org ID as you will use it in the below steps)
  •  Browse to /etc/virt-who.d .
  • In order to create the configuration file you could use the URL as it provide a step-by-step wizard to create the required entries.
  • Copy the the contents to a file in the folder mentioned in step-4
  • name of the file should match with the configuration name in the file created by the wizard.(File extension should be .conf)
  • Edit the virt-who file /etc/sysconfig/virt-who and add the below
  • Run the command virt-who  –one-shot(This will verify the configuration parameter’s are correct)
  • Then start the virt-who services(systemctl start virt-who)
  • Run the command on the virt-who VM
    subscription-manager attach –auto
  • On the remaining VM’s run
    subscription-manager register
    subscription-manager  attach –auto. (You don’t need to configure virt-who services on the other VM’s)

    That’s it login to RHEL portal and verify that you could see the Hypervisor and the VM’s

NOTE1: When creating the virt-who.conf you need to provide a username & password who have access to your VCenter server .This user needs only a Read-Only Permission

NOTE2: For best practices you could configure 2 VM’s with virt-who services.

NOTE3: You should be able to see the ESXi host and the VM’s in the URL - You need to ensure that the proper subscription has been entitled to both.



Entry filed under: Linux. Tags: , , .

How to use the RHEL / CentOS Media as the Repository. Additional Permissions needed for a Service Account to Reset and Change AD passwords and Unlock AD Accounts.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Trackback this post  |  Subscribe to the comments via RSS Feed



Follow Hope you like it.. on

Blog Stats

  • 68,224 hits

%d bloggers like this: