5.2. Chainbooting virtual machines
Some virtualization hypervisors use iPXE as primary firmware for PXE booting. Because of this, you can chainboot without TFTP and PXELinux.
Chainbooting virtual machine workflow
Using virtualization hypervisors removes the need for TFTP and PXELinux. It has the following workflow:
- Virtual machine starts
- iPXE retrieves the network credentials using DHCP
- iPXE retrieves the HTTP address using DHCP
- iPXE chainloads the iPXE template from the template Capsule
- iPXE loads the kernel and initial RAM disk of the installer
If you want to use the discovery service with iPXE, see 「Setting up the Discovery Service for iPXE」.
Ensure that the hypervisor that you want to use supports iPXE. The following virtualization hypervisors support iPXE:
- libvirt
- Red Hat Virtualization
- RHEV
Configuring Satellite Server to use iPXE
You can use the default template to configure iPXE booting for hosts. If you want to change the default values in the template, clone the template and edit the clone.
Procedure
Copy a boot file to the TFTP directory on your Satellite Server:
For EFI systems, copy the
ipxe.efifile:cp /usr/share/ipxe/ipxe.efi /var/lib/tftpboot/
# cp /usr/share/ipxe/ipxe.efi /var/lib/tftpboot/Copy to Clipboard Copied! Toggle word wrap Toggle overflow For BIOS systems, copy the
undionly.kpxefile:cp /usr/share/ipxe/undionly.kpxe /var/lib/tftpboot/undionly.0
# cp /usr/share/ipxe/undionly.kpxe /var/lib/tftpboot/undionly.0Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
In the Satellite web UI, navigate to Hosts > Provisioning Templates, enter
Kickstart default iPXEand click Search. - Optional: If you want to change the template, click Clone, enter a unique name, and click Submit.
- Click the name of the template you want to use.
- If you clone the template, you can make changes you require on the Template tab.
- Click the Association tab, and select the operating systems that your host uses.
- Click the Locations tab, and add the location where the host resides.
- Click the Organizations tab, and add the organization that the host belongs to.
- Click Submit to save the changes.
- Navigate to Hosts > Operating systems and select the operating system of your host.
- Click the Templates tab.
- From the iPXE Template list, select the template you want to use.
- Click Submit to save the changes.
- Navigate to Hosts > All Hosts.
- In the Hosts page, select the host that you want to use.
- Select the Templates tab.
- From the iPXE template list, select Review to verify that the Kickstart default iPXE template is the correct template.
To use the iPXE bootstrapping feature for Satellite, configure the
dhcpd.conffile as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you use an isolated network, use a Capsule Server URL with TCP port
8000, instead of the URL of Satellite Server.注記Use
http://satellite.example.com/unattended/iPXE?bootstrap=1when Capsule HTTP endpoint is disabled (installer option --foreman-proxy-http false). Template Capsule plug-in has the default value8000when enabled and can be changed with--foreman-proxy-http-port installeroption. In that case, usehttp://capsule.example.com:8000. You must update the/etc/dhcp/dhcpd.conffile after every upgrade.