Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
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.repo
with contents similar to the lines that follow:Copy to Clipboard Copied! Toggle word wrap Toggle overflow You must populate the
sslclientcert
andsslclientkey
fields with full path names to the correct files containing the appropriate certificate and key. The/etc/pki/entitlement
directory 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/entitlement
directory: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-cert
command 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 URL
Copy 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/os
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/os
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Identify the correct certificate and fill in the
sslclientcert
andsslclientkey
values in the previously mentioned.repo
file: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.pem
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
reposync
command in the appropriate directory:Use the 'pwd' command to determine the correct path:
pwd
# pwd
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Output similar to the following is displayed:
/home/test/rhvh-reposync
/home/test/rhvh-reposync
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
reposync
command:reposync --repo rhvh-4-for-rhel-8-x86_64-rpms
# reposync --repo rhvh-4-for-rhel-8-x86_64-rpms
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
-
Check the certificate and key file pairs each time you run the
reposync
command because the Subscription Manager subsystem periodically regenerates them.