此内容没有您所选择的语言版本。

Appendix C. Importing Content ISOs into a Connected Satellite


Even if Satellite Server can connect directly to the Red Hat Customer Portal, you can perform the initial synchronization from locally mounted content ISOs. When the initial synchronization is completed from the content ISOs, you can switch back to downloading content through the network connection. To accomplish this, download the Content ISOs for Red Hat Satellite from the Red Hat Customer Portal and import them into Satellite Server. For locations with bandwidth limitations, using an On Demand or Background download policy might be more efficient than downloading and importing Content ISOs.

Note that if you synchronize a Red Hat Enterprise Linux ISO, all minor versions of Red Hat Enterprise Linux also synchronize. You require adequate storage on your Satellite to account for this.

Important

This section is not required if your Satellite Server is connected to the Internet.

This example shows how to perform the first synchronization of the Red Hat Enterprise Linux 7 repository from content ISOs.

Downloading the content ISOs from the Red Hat Customer Portal

  1. In your browser, navigate to Red Hat Customer Portal and log in.
  2. Click DOWNLOADS.
  3. Select Red Hat Satellite.
  4. Select the Content ISOs tab.
  5. Search for the section required, in this example Red Hat Enterprise Linux 7.
  6. Click the link for the product name to reveal the ISO files.
  7. Using your browser, download the required ISOs to a location accessible by your browser. For example, to your workstation’s Downloads directory.

Importing the Content ISOs

  1. In a terminal connected to Satellite Server, create a directory to act as a temporary store for all of the required Satellite Content ISOs. This example uses /tmp/isos/rhel7:

    Copy to Clipboard Toggle word wrap
    # mkdir -p /tmp/isos/rhel7
  2. On your workstation, copy the ISO files to Satellite Server:

    Copy to Clipboard Toggle word wrap
    $ scp ~/Downloads/iso_file root@satellite.example.com:/tmp/isos/rhel7
  3. On Satellite Server, create a directory to serve as a mount point for the ISOs:

    Copy to Clipboard Toggle word wrap
    # mkdir /mnt/iso
  4. Create a working directory to hold the contents of all the ISOs:

    Copy to Clipboard Toggle word wrap
    # mkdir /mnt/rhel7
  5. Mount and recursively copy the contents of the first ISO to the working directory:

    Copy to Clipboard Toggle word wrap
    # mount -o loop /tmp/isos/iso_file /mnt/iso
    # cp -ruv /mnt/iso/* /mnt/rhel7/
    # umount /mnt/iso
  6. Repeat the above step for each ISO until you have copied all the data from the Content ISOs into /mnt/rhel7.
  7. If required, remove the empty directory used as the mount point:

    Copy to Clipboard Toggle word wrap
    # rmdir /mnt/iso
  8. If required, remove the temporary working directory and its contents to regain the space:

    Copy to Clipboard Toggle word wrap
    # rm -rf /tmp/isos/

Performing the Initial Synchronization

  1. Set the owner and the SELinux context for the directory and its contents to be the same as /var/lib/pulp:

    Copy to Clipboard Toggle word wrap
    # chcon -R --reference /var/lib/pulp  /mnt/rhel7/
    # chown -R apache:apache /mnt/rhel7/
  2. Create or edit the /etc/pulp/content/sources/conf.d/local.conf file. Insert the following text into the file:

    Copy to Clipboard Toggle word wrap
    [rhel-7-server]
    enabled: 1
    priority: 0
    expires: 3d
    name: Red Hat Enterprise Linux 7 Server
    type: yum
    base_url: file:///mnt/rhel7/content/dist/rhel/server/7/7Server/x86_64/os/

    The base_url path might differ in your content ISO. The directory specified in base_url must contain the repodata directory, otherwise the synchronization fails. To synchronize multiple repositories, create a separate entry for each of them in the configuration file /etc/pulp/content/sources/conf.d/local.conf.

  3. In the Satellite web UI, navigate to Content > Red Hat Repositories and enable the following repository: Red Hat Enterprise Linux 7 Server RPMs x86_64 Server.
  4. Under Content > Sync Status select the repository to be synchronized and click Synchronize Now.

Note that there is no indication in the Satellite web UI of which source is being used. In case of problems with a local source, Satellite pulls content through the network. To monitor the process, enter the following command in a terminal (limited to Red Hat Enterprise Linux 7 base systems):

Copy to Clipboard Toggle word wrap
# journalctl -f -l SYSLOG_IDENTIFIER=pulp | grep -v worker[\-,\.]heartbeat

The above command displays interactive logs. First, Satellite Server connects to the Red Hat Customer Portal to download and process repository metadata. Then, the local repository is loaded. In case of any errors, cancel the synchronization in the Satellite web UI and verify your configuration.

After successful synchronization you can detach the local source by removing its entry from /etc/pulp/content/sources/conf.d/local.conf.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat, Inc.