How to configure an offline software storage warehouse for RHEV-M installation (REPOSITORY)

Source: Internet
Author: User
Tags file transfer protocol

Create an offline software repository that includes all the packages required to install the Red Hat Enterprise virtualization components. You can use this method if your system is not directly connected to the Content Delivery Network.

1. Install Red Hat Enterprise Linux 6 Server on a system that can access the Content Delivery Network. This system is used to download all the required software and is distributed to your offline system by the software.


Note: so this process requires downloading a large number of packages (approximately 1.5 GB of storage), make sure that your system has enough free disk space.

2. Register your system in the Content Delivery Network and enter your customer Portal username and password when prompted:

# Subscription-manager Register

3, for the system to subscribe to all the required channels:

  1. Finds the right pool that includes the warehouses required to install Red Hat Enterprise virtualization Manager:

    # subscription-manager list --available | grep -a8  "Red Hat  Enterprise linux server "# subscription-manager list --available | grep  -A8  "Red hat enterprise virtualization" 
  2. Use the ID of the pool of rights obtained in the previous step to put  red Hat Enterprise Linux Server   and  red Hat Enterprise Virtualization   Rights are attached to the system. Run the following command:

    # subscription-manager attach --pool=pool_id 
  3. To enable the required warehouses:

    # Subscription-manager Repos--enable=rhel-6-server-rpms# Subscription-manager repos--enable= rhel-6-server-supplementary-rpms# Subscription-manager Repos--enable=rhel-6-server-rhevm-3.5-rpms# Subscription-manager Repos--enable=jb-eap-6-for-rhel-6-server-rpms

4. Servers that are not connected to the Internet can access the software storage repository via File Transfer Protocol (FTP). Log in to the system as root, install and configure VSFTPD to create the FTP software storage repository:

  1. Install  VSFTPD   Packages:

    # YUM INSTALL VSFTPD 
  2. Start  VSFTPD   Service and enable it to run automatically after system startup:

    # service vsftpd start# chkconfig vsftpd on 
  3. /var/ftp/pub/create subdirectories in the directory. The downloaded package will be saved here.

    # Mkdir/var/ftp/pub/rhevrepo

5. When the FTP server is configured, you need to use the Reposync command to download the shared package. This command downloads the package from all configured repositories (including all the Content Delivery Network subscription pool warehouses for this system subscription, and the locally configured software storage warehouse).

  1. Enter  /var/ftp/pub/rhevrepo   Directory:

    # cd /var/ftp/pub/rhevrepo 
  2. Run  reposync   Command:

    # reposync --plugins . 

6, using  createrepo   command for  /var/ftp/pub/rhevrepo   Create Package Store warehouse metadata for each subdirectory under:

    1. # for dir in  ' find /var/ftp/pub/rhevrepo -maxdepth 1 -mindepth 1
       -type d '; do createrepo  $DIR;  done; 

7, create  yum   config file, copy it to the  /etc/yum.repos.d/the directory. Make sure that the software storage warehouse is located on the same network as the system and the client system that needs to access them.

The

     configuration file can be created manually or by using a script. If you use a script, you need to put  baseurl    address   is replaced with the IP address or FQDN of the system where the software storage warehouse resides. This script must be run on the same system as the software storage repository. such as:

#!/bin/shrepofile= "/etc/yum.repos.d/rhev.repo" for DIR in ' find/var/ftp/pub/rhevrepo-maxdepth 1-mindepth 1-type d '; Do echo-e "[' basename $DIR ']" > $REPOFILE echo-e "name= ' basename $DIR '" >> $REPOFILE echo-e "BaseURL =ftp://address/pub/rhevrepo/' basename $DIR ' >> $REPOFILE echo-e "enabled=1" >> $REPOFILE echo-e "GPGC Heck=0 ">> $REPOFILE echo-e" \ n ">> $REPOFILEdone;

8. Copy the package storage repository configuration file to the/etc/yum.repos.d/directory of all client systems that need to use this package storage repository. For example: Red Hat Enterprise Virtualization Manager system, all Red Hat Enterprise Linux virtual hosts, and all Red Hat Enterprise Linux virtual machines.

Your client system is now configured to use the local software repository. You can use it to install the Manager, virtual host, and virtual machine. The packages required for installation will be available from your local repositories and no longer require the use of the Content Delivery Network.

Note: You can also use a different mobile storage device, such as a USB removable hard disk, to provide the client with a package storage warehouse that you create. You need:

1) /var/ftp/pub/rhevrepo Copy all contents of the directory to the mobile device.

2) Modify/etc/yum.repos.d/rhev.repoFile, putbaseurlThe value is replaced by the path to the mobile device where the software storage warehouse resides. For example:file:///media/disk/rhevrepo/.

Note:when there is a corresponding software update in the Content Delivery Network, you need to update the local software repository. Please repeat the sync and share channel operation,reposynccommand to add the--newest-onlyparameter to obtain only the latest version of each package. Once the repositories are updated, you also need to run them on each clientyum updatecommand to update them.


This article is from the "Divinity New Space" blog, please make sure to keep this source http://abool.blog.51cto.com/8355508/1683987

How to configure an offline software storage warehouse for RHEV-M installation (REPOSITORY)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.