Este conteúdo não está disponível no idioma selecionado.
Chapter 4. Preparing client platforms
You have to configure the platforms that you will provision. That entails creating a hardware model, CPU architecture, and operating system.
The records for Red Hat supported platforms are created automatically when you enable a Red Hat repository.
4.1. Creating operating systems Copiar o linkLink copiado para a área de transferência!
An operating system is a collection of resources that define how Satellite Server installs a base operating system on a host. Operating system entries combine previously defined resources, such as installation media, partition tables, provisioning templates, and others.
Importing operating systems from Red Hat’s CDN creates new entries on the Hosts > Provisioning Setup > Operating Systems page. To import operating systems from Red Hat’s CDN, enable the Red Hat repositories of the operating systems and synchronize the repositories to Satellite. For more information, see Enabling Red Hat Repositories and Synchronizing Repositories in Managing content.
You can also add custom operating systems using the following procedure. To use the CLI instead of the Satellite web UI, see the CLI procedure.
Procedure
- In the Satellite web UI, navigate to Hosts > Operating systems and click New Operating system.
- In the Name field, enter a name to represent the operating system entry.
- In the Major field, enter the number that corresponds to the major version of the operating system.
- In the Minor field, enter the number that corresponds to the minor version of the operating system.
- In the Description field, enter a description of the operating system.
- From the Family list, select the operating system’s family.
- From the Root Password Hash list, select the encoding method for the root password.
- From the Architectures list, select the architectures that the operating system uses.
- Click the Partition table tab and select the possible partition tables that apply to this operating system.
- Optional: If you use non-Red Hat content, click the Installation Media tab and select the installation media that apply to this operating system. For more information, see Adding Installation Media to Satellite.
- Click the Templates tab and select a PXELinux template, a Provisioning template, and a Finish template for your operating system to use. You can select other templates, for example an iPXE template, if you plan to use iPXE for provisioning.
- Click Submit to save your provisioning template.
CLI procedure
Create the operating system using the
hammer os createcommand:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. Updating the details of multiple operating systems Copiar o linkLink copiado para a área de transferência!
Use this procedure to update the details of multiple operating systems. This example shows you how to assign each operating system a partition table called Kickstart default, a configuration template called Kickstart default PXELinux, and a provisioning template called Kickstart Default.
Procedure
On Satellite Server, run the following Bash script:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Display information about the updated operating system to verify that the operating system is updated correctly:
hammer os info --id 1
$ hammer os info --id 1Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.3. Creating architectures Copiar o linkLink copiado para a área de transferência!
An architecture in Satellite represents a logical grouping of hosts and operating systems. Architectures are created by Satellite automatically when hosts check in with Puppet. The x86_64 architecture is already preset in Satellite.
Use this procedure to create an architecture in Satellite.
Supported architectures
Only Intel x86_64 architecture is supported for provisioning using PXE, Discovery, and boot disk. For more information, see the Red Hat Knowledgebase solution Supported architectures and provisioning scenarios in Satellite 6.
Procedure
- In the Satellite web UI, navigate to Hosts > Provisioning Setup > Architectures.
- Click Create Architecture.
- In the Name field, enter a name for the architecture.
- From the Operating Systems list, select an operating system. If none are available, you can create and assign them under Hosts > Provisioning Setup > Operating Systems.
- Click Submit.
CLI procedure
Enter the
hammer architecture createcommand to create an architecture. Specify its name and operating systems that include this architecture:hammer architecture create \ --name "My_Architecture" \ --operatingsystems "My_Operating_System"
$ hammer architecture create \ --name "My_Architecture" \ --operatingsystems "My_Operating_System"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.4. Creating hardware models Copiar o linkLink copiado para a área de transferência!
Use this procedure to create a hardware model in Satellite so that you can specify which hardware model a host uses.
Procedure
- In the Satellite web UI, navigate to Hosts > Provisioning Setup > Hardware Models.
- Click Create Model.
- In the Name field, enter a name for the hardware model.
- Optionally, in the Hardware Model and Vendor Class fields, you can enter corresponding information for your system.
- In the Info field, enter a description of the hardware model.
- Click Submit to save your hardware model.
CLI procedure
Create a hardware model using the
hammer model createcommand. The only required parameter is--name. Optionally, enter the hardware model with the--hardware-modeloption, a vendor class with the--vendor-classoption, and a description with the--infooption:hammer model create \ --hardware-model "My_Hardware_Model" \ --info "My_Description" \ --name "My_Hardware_Model_Name" \ --vendor-class "My_Vendor_Class"
$ hammer model create \ --hardware-model "My_Hardware_Model" \ --info "My_Description" \ --name "My_Hardware_Model_Name" \ --vendor-class "My_Vendor_Class"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.5. Creating compute profiles Copiar o linkLink copiado para a área de transferência!
You can use compute profiles to predefine virtual machine hardware details such as CPUs, memory, and storage.
To use the CLI instead of the Satellite web UI, see the CLI procedure.
A default installation of Red Hat Satellite contains three predefined profiles:
-
1-Small -
2-Medium -
3-Large
You can apply compute profiles to all supported compute resources:
Procedure
- In the Satellite web UI, navigate to Infrastructure > Compute Profiles and click Create Compute Profile.
- In the Name field, enter a name for the profile.
- Click Submit. A new window opens with the name of the compute profile.
- In the new window, click the name of each compute resource and edit the attributes you want to set for this compute profile.
CLI procedure
Create a new compute profile:
hammer compute-profile create --name "My_Compute_Profile"
$ hammer compute-profile create --name "My_Compute_Profile"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set attributes for the compute profile:
hammer compute-profile values create \ --compute-attributes "flavor=m1.small,cpus=2,memory=4GB,cpu_mode=default \ --compute-resource "My_Compute_Resource" \ --compute-profile "My_Compute_Profile" \ --volume size=40GB
$ hammer compute-profile values create \ --compute-attributes "flavor=m1.small,cpus=2,memory=4GB,cpu_mode=default \ --compute-resource "My_Compute_Resource" \ --compute-profile "My_Compute_Profile" \ --volume size=40GBCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To update the attributes of a compute profile, specify the attributes you want to change. For example, to change the number of CPUs and memory size:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To change the name of the compute profile, use the
--new-nameattribute:hammer compute-profile update \ --name "My_Compute_Profile" \ --new-name "My_New_Compute_Profile"
$ hammer compute-profile update \ --name "My_Compute_Profile" \ --new-name "My_New_Compute_Profile"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Additional resources
-
For more information about creating compute profiles by using Hammer, enter
hammer compute-profile --help.