How to register RHEV-H host/hypervisor on customer portal to use virtual subscriptions ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Virtualization Hypervisor
  • Red Hat Enterprise Virtualization Manager

Issue

  • How to configure virt-who for RHEV-M environment ?

Resolution

  • The virt-who should be running on a virtual system running on RHEV-H system. On this system confirm that virt-who package is installed using rpm -q virt-who. If package is not installed then temporary register this virtual system to portal using below commands and install virt-who package.

    # subscription-manager register
    # subscription-manager attach --auto
    # yum install `virt-who`
    
  • After installing package successfully unsubscribe system as its virtual system and without virt-who it would be consuming physical subscription,

    # subscription-manager unsubscribe --all
    
  • Run subscription-manager identity command and note down org ID.

  • Configure virt-who options in /etc/sysconfig/virt-who file:

    # Register guests using RHEV-M
    VIRTWHO_RHEVM=1
    VIRTWHO_DEBUG=1
    #Options for RHEV-M mode
    VIRTWHO_RHEVM_OWNER=<org ID noted in previous step>
    VIRTWHO_RHEVM_ENV=Library
    VIRTWHO_RHEVM_SERVER=<your.rhevm.com:port>
    VIRTWHO_RHEVM_USERNAME=<rhevm-user@rhevm-domain>
    VIRTWHO_RHEVM_PASSWORD=<rhem-user-password>
    
    • Make changes in <org ID noted in previous step>,<your.rhevm.com:port>,<rhevm-user@rhevm-domain>,<rhem-user-password> as per environment. In <your.rhevm.com:port> port number is mandatory and by default it is 443. In case of any issues with port 443 then confirm port number from RHEV-M administrator.
  • Start virt-who service using,

    On RHEL 5,6,
    # service virt-who start
    
    On RHEL 7,
    # systemctl start virt-who.service
    
  • Logs for the virt-who service can be seen in /var/log/rhsm/rhsm.log log file.

  • Once this is all done hypervisor profiles should appear at this link alongside registered system(Hypervisor names appears in alphanumeric characters).

  • Once done, attach Virtual Datacenter subscription to the host/hypervisor. After this virtual systems should see the unlimited guest pool, confirm it and subscribe virtual system to virtual subscription using below commands,

    # subscription-manager list --available
    # subscription-manager subscribed --auto
    

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments