Este conteúdo não está disponível no idioma selecionado.
Chapter 14. Managing ISO images
You can use Satellite to store ISO images, either from Red Hat’s Content Delivery Network or other sources. You can also upload other files, such as virtual machine images, and publish them in repositories.
14.1. Importing ISO images from Red Hat by using Satellite web UI Copiar o linkLink copiado para a área de transferência!
The Red Hat Content Delivery Network provides ISO images for certain products. The procedure for importing this content is similar to the procedure for enabling repositories for RPM content.
Procedure
- In the Satellite web UI, navigate to Content > Red Hat Repositories.
-
In the Search field, enter an image name, for example,
Red Hat Enterprise Linux 7 Server (ISOs). - In the Available Repositories window, expand Red Hat Enterprise Linux 7 Server (ISOs).
- For the x86_64 7.2 entry, click the Enable icon to enable the repositories for the image.
- In the Satellite web UI, navigate to Content > Products and click Red Hat Enterprise Linux Server.
- Click the Repositories tab of the Red Hat Enterprise Linux Server window, and click Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2.
- In the upper right of the Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2 window, click Select Action and select Sync Now.
Next steps
- To view the synchronization status, navigate to Content > Sync Status and expand Red Hat Enterprise Linux Server.
14.2. Importing ISO images from Red Hat by using Hammer CLI Copiar o linkLink copiado para a área de transferência!
The Red Hat Content Delivery Network provides ISO images for certain products. The procedure for importing this content is similar to the procedure for enabling repositories for RPM content.
Procedure
Locate the Red Hat Enterprise Linux Server product for
filerepositories:hammer repository-set list \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization" | grep "file"
$ hammer repository-set list \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization" | grep "file"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the
filerepository for Red Hat Enterprise Linux 7.2 Server ISO:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Locate the repository in the product:
hammer repository list \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization"
$ hammer repository list \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Synchronize the repository in the product:
hammer repository synchronize \ --name "Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2" \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization"
$ hammer repository synchronize \ --name "Red Hat Enterprise Linux 7 Server ISOs x86_64 7.2" \ --product "Red Hat Enterprise Linux Server" \ --organization "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
14.3. Importing an ISO image by using Satellite web UI Copiar o linkLink copiado para a área de transferência!
Use this procedure to manually import an ISO image to Satellite Server by using Satellite web UI. However, if the size of the file that you want to upload is larger than 15 MB, you must use the Hammer CLI to upload it to a repository.
Procedure
- In the Satellite web UI, navigate to Content > Products and click Create Product.
- In the Name field, enter a name to identify the product. This name populates the Label field.
- Optional: In the GPG Key field, enter a GPG Key for the product.
- Optional: From the Sync Plan list, select a synchronization plan for the product.
- Optional: In the Description field, enter a description of the product.
- Click Save.
- In the Products window, click the new product and then click Create Repository.
- In the Name field, enter a name for the repository. This automatically populates the Label field.
- From the Type list, select file.
- In the Upstream URL field, enter the URL of the registry to use as a source. Add a corresponding user name and password in the Upstream Username and Upstream Password fields.
- Click Save.
- Select the new repository.
- Navigate to Upload File and click Browse.
-
Select the
.isofile and click Upload.
14.4. Importing an ISO image by using Hammer CLI Copiar o linkLink copiado para a área de transferência!
Use this procedure to manually import an ISO image to Satellite Server by using Hammer CLI. You must use the Hammer CLI to upload files larger than 15 MB to a repository.
Procedure
Create the custom product:
hammer product create \ --name "My_ISOs" \ --sync-plan "Example Plan" \ --description "My_Product" \ --organization "My_Organization"
$ hammer product create \ --name "My_ISOs" \ --sync-plan "Example Plan" \ --description "My_Product" \ --organization "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the repository:
hammer repository create \ --name "My_ISOs" \ --content-type "file" \ --product "My_Product" \ --organization "My_Organization"
$ hammer repository create \ --name "My_ISOs" \ --content-type "file" \ --product "My_Product" \ --organization "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Upload the ISO file to the repository:
hammer repository upload-content \ --path ~/bootdisk.iso \ --id repo_ID \ --organization "My_Organization"
$ hammer repository upload-content \ --path ~/bootdisk.iso \ --id repo_ID \ --organization "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow