16.4. Installing virt-who Manually
This section will describe how to manually attach the subscription provided by the hypervisor.
Procedure 16.2. How to attach a subscription manually
List subscription information and find the Pool ID
First you need to list the available subscriptions which are of the virtual type. Run the following command in a terminal as root:Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager list --avail --match-installed | grep 'Virtual' -B12
[root@server1 ~]# subscription-manager list --avail --match-installed | grep 'Virtual' -B12 Subscription Name: Red Hat Enterprise Linux ES (Basic for Virtualization) Provides: Red Hat Beta Oracle Java (for RHEL Server) Red Hat Enterprise Linux Server SKU: ------- Pool ID: XYZ123 Available: 40 Suggested: 1 Service Level: Basic Service Type: L1-L3 Multi-Entitlement: No Ends: 01/02/2017 System Type: Virtual
Note the Pool ID displayed. Copy this ID as you will need it in the next step.Attach the subscription with the Pool ID
Using the Pool ID you copied in the previous step run the attach command. Replace the Pool ID XYZ123 with the Pool ID you retrieved. Run the following command in a terminal as root:Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager attach --pool=XYZ123
[root@server1 ~]# subscription-manager attach --pool=XYZ123 Successfully attached a subscription for: Red Hat Enterprise Linux ES (Basic for Virtualization)