Ce contenu n'est pas disponible dans la langue sélectionnée.
Appendix B. Installing RHV hypervisors from a local repository
If your system uses a private Red Hat Virtualization (RHV) environment, but without Red Hat Satellite, you might need to install RHV hypervisors (RHV-H) from a repository hosted on a local RHEL system instead of the Red Hat hosted Content Delivery Network (CDN).
Procedure
On the system hosting the offline repository, create a file named
/etc/yum.repos.d/rhvh-mirror.repowith contents similar to the lines that follow:Copy to Clipboard Copied! Toggle word wrap Toggle overflow You must populate the
sslclientcertandsslclientkeyfields with full path names to the correct files containing the appropriate certificate and key. The/etc/pki/entitlementdirectory contains one or more pairs of certificate and key files, but only one pair contains the RHV-H entitlement you need.To find the certificate file:
List all files in the
/etc/pki/entitlementdirectory:ls -al /etc/pki/entitlement/
# ls -al /etc/pki/entitlement/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Output similar to the following is displayed:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use the
rct cat-certcommand on each certificate in order to find the one that contains the RHV-H entitlement:cd /etc/pki/entitlement/ rct cat-cert 5659494963772844103.pem | grep rhvh/4/ | grep URL
# cd /etc/pki/entitlement/ # rct cat-cert 5659494963772844103.pem | grep rhvh/4/ | grep URLCopy to Clipboard Copied! Toggle word wrap Toggle overflow Output similar to the following is displayed:
URL: /content/beta/rhel/server/7/$basearch/rhvh/4/os URL: /content/dist/rhel/server/7/7Server/$basearch/rhvh/4/os URL: /content/beta/layered/rhel8/x86_64/rhvh/4/os URL: /content/dist/layered/rhel8/x86_64/rhvh/4/osURL: /content/beta/rhel/server/7/$basearch/rhvh/4/os URL: /content/dist/rhel/server/7/7Server/$basearch/rhvh/4/os URL: /content/beta/layered/rhel8/x86_64/rhvh/4/os URL: /content/dist/layered/rhel8/x86_64/rhvh/4/osCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Identify the correct certificate and fill in the
sslclientcertandsslclientkeyvalues in the previously mentioned.repofile:sslclientcert = /etc/pki/entitlement/5659494963772844103.pem sslclientkey = /etc/pki/entitlement/5659494963772844103-key.pem
sslclientcert = /etc/pki/entitlement/5659494963772844103.pem sslclientkey = /etc/pki/entitlement/5659494963772844103-key.pemCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
reposynccommand in the appropriate directory:Use the 'pwd' command to determine the correct path:
pwd
# pwdCopy to Clipboard Copied! Toggle word wrap Toggle overflow Output similar to the following is displayed:
/home/test/rhvh-reposync
/home/test/rhvh-reposyncCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
reposynccommand:reposync --repo rhvh-4-for-rhel-8-x86_64-rpms
# reposync --repo rhvh-4-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Output similar to the following is displayed:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
Check the certificate and key file pairs each time you run the
reposynccommand because the Subscription Manager subsystem periodically regenerates them.