How to register RHEV-H host/hypervisor on customer portal to use virtual subscriptions ?
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-whofor RHEV-M environment ?
Resolution
-
The
virt-whoshould be running on a virtual system running on RHEV-H system. On this system confirm thatvirt-whopackage is installed usingrpm -q virt-who. If package is not installed then temporary register this virtual system to portal using below commands and installvirt-whopackage.# subscription-manager register # subscription-manager attach --auto # yum install `virt-who` -
After installing package successfully unsubscribe system as its virtual system and without
virt-whoit would be consuming physical subscription,# subscription-manager unsubscribe --all -
Run
subscription-manager identitycommand and note downorg ID. -
Configure
virt-whooptions in/etc/sysconfig/virt-whofile:# 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>portnumber is mandatory and by default it is 443. In case of any issues with port 443 then confirm port number from RHEV-M administrator.
- Make changes in
-
Start
virt-whoservice using,On RHEL 5,6, # service virt-who start On RHEL 7, # systemctl start virt-who.service -
Logs for the
virt-whoservice can be seen in/var/log/rhsm/rhsm.loglog 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 Datacentersubscription 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
