4.2. Configuring a Local Repository for Offline Red Hat Enterprise Virtualization Manager Installation


To install Red Hat Enterprise Virtualization Manager on a system that does not have a direct connection to the Content Delivery Network, download the required packages on a system that has Internet access, then create a repository that can be shared with the offline Manager machine. The system hosting the repository must be connected to the same network as the client systems where the packages are to be installed.
  1. Install Red Hat Enterprise Linux 6 Server on a system that has access to the Content Delivery Network. This system downloads all the required packages, and distributes them to your offline system(s).

    Important

    Ensure that the system used in this procedure has a large amount of free disk space available. This procedure downloads a large number of packages, and requires up to 50 GB of free disk space.
  2. Register your system with the Content Delivery Network, entering your Customer Portal user name and password when prompted:
    Copy to Clipboard Toggle word wrap
    # subscription-manager register
  3. Subscribe the system to all required entitlements:
    1. Find the Red Hat Enterprise Linux Server and Red Hat Enterprise Virtualization subscription pools and note down the pool IDs.
      Copy to Clipboard Toggle word wrap
      # subscription-manager list --available
    2. Use the pool IDs located in the previous step to attach the entitlements to the system:
      Copy to Clipboard Toggle word wrap
      # subscription-manager attach --pool=pool_id
    3. Disable all existing repositories:
      Copy to Clipboard Toggle word wrap
      # subscription-manager repos --disable=*
    4. Enable the required repositories:
      Copy to Clipboard Toggle word wrap
      # 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.6-rpms
      # subscription-manager repos --enable=jb-eap-6-for-rhel-6-server-rpms
      
    5. Ensure that all packages currently installed are up to date:
      Copy to Clipboard Toggle word wrap
      # yum update
  4. Servers that are not connected to the Internet can access software repositories on other systems using File Transfer Protocol (FTP). To create the FTP repository, install and configure vsftpd:
    1. Install the vsftpd package:
      Copy to Clipboard Toggle word wrap
      # yum install vsftpd
    2. Start the vsftpd service, and ensure the service starts on boot:
      Copy to Clipboard Toggle word wrap
      # service vsftpd start
      # chkconfig vsftpd on
    3. Create a sub-directory inside the /var/ftp/pub/ directory. This is where the downloaded packages will be made available:
      Copy to Clipboard Toggle word wrap
      # mkdir /var/ftp/pub/rhevrepo
  5. Download packages from all configured software repositories to the rhevrepo directory. This includes repositories for all Content Delivery Network subscription pools the system is subscribed to, and any locally configured repositories:
    Copy to Clipboard Toggle word wrap
    # reposync -l -p /var/ftp/pub/rhevrepo
    This command downloads a large number of packages, and takes a long time to complete. The -l option enables yum plug-in support.
  6. Install the createrepo package:
    Copy to Clipboard Toggle word wrap
    # yum install createrepo
  7. Create repository metadata for each of the sub-directories where packages were downloaded under /var/ftp/pub/rhevrepo:
    Copy to Clipboard Toggle word wrap
    # for DIR in `find /var/ftp/pub/rhevrepo -maxdepth 1 -mindepth 1 -type d`; do createrepo $DIR; done;
  8. Create a repository file, and copy it to the /etc/yum.repos.d/ directory on the offline machine on which you will install the Manager.
    The configuration file can be created manually or with a script. Run the script below on the system hosting the repository, replacing ADDRESS in the baseurl with the IP address or fully qualified domain name of the system hosting the repository:
    Copy to Clipboard Toggle word wrap
    #!/bin/sh
    
    REPOFILE="/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 "gpgcheck=0" >> $REPOFILE	
        echo -e "\n" >> $REPOFILE
    done;
    
  9. Install the Manager packages on the offline system. See Section 3.2, “Installing the Red Hat Enterprise Virtualization Manager Packages” for instructions. Packages are installed from the local repository, instead of from the Content Delivery Network.
  10. Configure the Manager. See Section 3.3, “Configuring the Red Hat Enterprise Virtualization Manager” for initial configuration instructions.
  11. Continue with host, storage, and virtual machine configuration.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat, Inc.