ネットワークを通じてインストールする(PXEブート)

ネットワークブートによるインストール中に、次の処理が実行されます。

  1. クライアントがPXEモードでブートされます。

  2. A Dhcpd server provides the client with an IP address and mask, the address of an installation server, and the name of a bootloader file on that server.

  3. クライアントは、インストールサーバからTFTPプロトコルを通じてブートローダファイルをダウンロードし、実行します。

  4. クライアントは、インストールに使用できるプロファイルをメニューから選択するか、いずれかのプロファイルで自動インストールを開始します。

  5. クライアントは、TFTPプロトコルを通じて、そのプロファイルと一致するディストリビューション用のカーネルと初期RAMディスクをダウンロードします。

  6. インストールカーネルは、インストールプログラム、KickstartまたはAutoYaSTを起動します。 それ以降、カーネルは、HTTPプロトコルを通じてサーバで提供されるリソースを使用します。

  7. ディストリビューションは、KickstartまたはAutoYaSTプロファイルに従って自動的にインストールされます。

  8. The profile calls a code snippet that registers the client to the SUSE Multi-Linux Manager Server.

cobbler menu

The installation server can either be the SUSE Multi-Linux Manager Server or one of its proxies.

The Dhcpd server may also provide other configuration information to the client, like a host name, the address of a router and the address of a domain name server. Some of this information might be needed for the autoinstallation, for example if you specify the installation server by its domain name.

[PXEブート]メニューで、最初の選択肢は[ローカルブート]です。 これを選択すると、ブートプロセスはローカルディスクドライブから続行されます。 特定の時間内にプロファイルが選択されなかった場合は、このオプションが自動的に選択されます。 これは、プロファイルを選択する人間のオペレータがいない場合に、自動インストールが開始されないようにするための安全対策です。

または、手動での操作なしで、いずれかのプロファイルからインストールを自動的に開始することもできます。 これは「無人プロビジョニング」と呼ばれます。

Procedure: Installing with PXE boot
  1. Prepare the Kea server, see Prepare the Dhcpd Server.

  2. 自動インストールのディストリビューションを準備します。自動インストールのディストリビューションを参照してください。

  3. 自動インストールプロファイルを準備します。自動インストールプロファイルを参照してください。

  4. クライアントを再起動し、インストールするプロファイルを選択します。

Some other steps are optional.

For unattended provisioning, see Unattended provisioning.

1. Prepare the Dhcpd server

The PXE boot process uses Dhcpd to find the TFTP server. The SUSE Multi-Linux Manager Server or its proxies can act as such a TFTP server.

You must have administrative access to the network’s Dhcpd server. Edit the Dhcpd configuration file so that it points to the installation server as the TFTP boot server.

Example: Configuring the Kea Dhcpd server
  1. On the Dhcpd server, as root, open the /etc/dhcpd.conf file.

  2. クライアントに対する宣言を次のように変更します。

      host myclient { (...)
                      next-server 192.168.2.1;
                      filename "grub/grub.0"; }
  3. ファイルを保存し、dhcpdサービスを再起動します。

This example directs the PXE client myclient to the installation server at 192.168.2.1 and instructs it to retrieve the grub/grub.0 bootloader file.

Alternatively, if your Dhcpd server is registered at SUSE Multi-Linux Manager, you can configure it using the Dhcpd formula instead:

Example: Configuring the Kea Dhcpd Server using the Dhcpd formula
  1. Navigate to Systems  System List, select the client you want to change, and go to the Formulas tab to enable the Dhcpd formula.

  2. 式の[Dhcpd]タブに移動し、[次のサーバ]フィールドに、インストールサーバのホスト名またはIPアドレスを入力します。

  3. Filename EFI](ファイル名EFI)フィールドで、grub/shim.efiと入力し、EFI PXEのサポートを有効にします。

  4. In the Filename field, type grub/grub.0 to enable legacy BIOS support.

  5. Save Formula(式の保存)をクリックして設定を保存します。

  6. highstateを適用します。

  • セキュアブートを使用しない場合は、[Filename EFI](ファイル名EFI)フィールドにgrub/shim.efiではなくgrub/grubx86.efiと入力します。

  • 異なるアーキテクチャについては、表異なるアーキテクチャ用のGRUB EFIバイナリ名を参照してください。

  • Using Cobbler managed Dhcpd is unsupported with SUSE Multi-Linux Manager.

This sets up a global PXE server for all the hosts, you can also have per-host settings. For more information about the Dhcpd formula, see Dhcpd Formula.

2. 異なるアーキテクチャ用のGRUB EFIバイナリ名

Table 1. 異なるアーキテクチャ用のGRUB EFIバイナリ名
アーキテクチャ GRUB EFIバイナリ名

aarch64

grubaa64.efi

x86-64

grubx86.efi

ppc64le

grub.ppc64le