Environment

Red Hat Enterprise Linux 6.5
Red Hat Enterprise Linux 7

Issue

Install virt-who from local media to be able to start registering clients for the use of Virtual Datacenter Subscriptions.
The server in charge to run virt-who doesn't have access to a RHEL repository.
How to install virt-who on a disconnected system.

Resolution

  1. Mount the ISO
# mount -o loop /path/to/iso /mnt/iso
  1. Create the local repo file
touch /etc/yum.repos.d/local.repo
  1. Edit the the local repo
[rhel-local]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=file:///mnt/iso
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
  1. Check the repolist result:
# yum repolist
Loaded plugins: product-id, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id                             repo name                                                                   status
rhel-local                          Red Hat Enterprise Linux 6Server - x86_64 - Source                          3,690
repolist: 3,690
  1. Install virt-who
yum install virt-who

Root Cause

The server doesn't have access to a RHEL repository