自動インストールのディストリビューション

自動インストールプロセスでは、インストールを開始するために複数のファイルが必要です。 必要なファイルには、Linuxカーネル、初期RAMディスク、およびインストールモードでオペレーティングシステムをブートするために必要なその他のファイルが含まれます。

SUSE Multi-Linux Manager uses the mgradm tool to copy the installation file from the source to the server container.

DVDイメージから必要なファイルを抽出できます。 詳細については、ISOイメージに基づくディストリビューションを参照してください。

Alternatively, you can install the tftpboot-installation package. For information, see Distribution Based on a RPM Package.

また、これらのファイルと同じオペレーティングシステムバージョン用に、SUSE Multi-Linux Managerサーバでベースチャンネルを同期させておく必要があります。

ファイルの準備が整い、ベースチャンネルを同期したら、ディストリビューションを宣言する必要があります。 この操作により、インストールファイルがベースチャンネルに関連付けられます。 ディストリビューションは、1つ以上のインストールプロファイルによって参照されることがあります。 詳細については、自動インストールのディストリビューションを宣言するを参照してください。

1. ISOイメージに基づくディストリビューション

This method assumes you have installation media for the operating system you want to install on the clients. This is usually a DVD .iso image that contains the Linux kernel, an initrd file, and other files required to boot the operating system in installation mode.

プロシージャ: インストールメディアからのファイルのインポート
  1. Use mgradm to import installation data from the ISO image:

    # mgradm distribution copy <image_name>.iso <image_name>
  2. Take a note of the distribution path reported by mgradm. You will need it when you declare the distribution to SUSE Multi-Linux Manager.

1.1. ディストリビューションの自動検出と登録

mgradm is able to automatically detect distribution name and register it to the server. Provided ISO image needs to contain a .treeinfo file.

プロシージャ: 自動検出と登録を使用してディストリビューションファイルをインポートする
  1. Use mgradm:

    # mgradm distribution copy --api-user <username> --api-password <password> <image_name>.iso

2. RPMパッケージに基づくディストリビューション

この方法は、SUSEシステムで動作します。 インストールシステム用にあらかじめパッケージされたファイルを使用するため、インストールメディアからコンテンツをインポートするよりも簡単です。

プロシージャ: インストールパッケージからファイルを抽出する
  1. On the SUSE Multi-Linux Manager Server, install the package whose name starts with tftpboot-installation. You can determine its exact name with the command zypper se tftpboot-installation

  2. 次のコマンドを使用して別のルートにパッケージをインストールし、再起動しなくても済むようにすることができます。

    # mkdir /opt/tftpinstall
    # zypper --installroot /opt/tftpinstall install tftpboot-installation-SLE-Micro-5.5-x86_64
  3. Find the installation files with the command ls -d /opt/tftpinstall/usr/share/tftpboot-installation/*.

  4. Copy installation files using mgradm:

    # mgradm distribution copy /opt/tftpinstall/usr/share/tftpboot-installation/SLE-Micro-5.5-x86_64 SLE-Micro-5.5-x86_64
  5. Take a note of the distribution path reported by mgradm tool. You will need it when you declare the distribution to SUSE Multi-Linux Manager.

  6. After mgradm tool finishes, you can remove /opt/tftpinstall directory.

This procedure prepares the installation of the same operating system version as the one that powers your SUSE Multi-Linux Manager Server. If you want to install a different operating system or version on the client, you need to manually get the package tftpboot-installation-* from the distribution it belongs to. In the Package Search input box SUSE Multi-Linux Manager, search the packages whose names start with tftpboot-installation, then look at the package’s details. They show the local path below /var/spacewalk/.

3. 自動インストールのディストリビューションを宣言する

自動インストールファイルを抽出した後の次の手順は、自動インストールのディストリビューションの宣言です。

プロシージャ: 自動インストールのディストリビューションの宣言
  1. SUSE Multi-Linux ManagerのWeb UIで、システム  自動インストール  ディストリビューションに移動します。

  2. Click Create Distribution, and complete these fields:

    • In the Distribution Label field, enter a name to identify your autoinstallable distribution.

    • In the Tree Path field, enter the path to the installation media saved on your SUSE Multi-Linux Manager Server.

    • Select the matching Base Channel. This must match the installation media.

    • Select the Installer Generation. This must match the installation media.

    • オプション: このディストリビューションをブートするときに使用するカーネルオプションを指定します。 カーネルオプションを指定する方法は複数あります。 ここにはディストリビューションに当てはまるオプションのみを追加します。

  3. 自動インストール可能なディストリビューションの作成をクリックします。

The installation files that you prepared might not contain the packages you need to install. If they are not included, add useonlinerepo=1 to the Kernel Options field.

The package repositories contain metadata that can be unsigned. If the metadata is unsigned, add insecure=1 to the Kernel Options field, or use your own GPG key as explained in Use Your Own GPG Key.

These kernel options are needed for example when you use the "online installer" ISO images instead of the full DVD, or when you use the tpboot-installation package.

自動インストールのディストリビューションを管理するには、システム  自動インストール  ディストリビューションに移動します。

You can autoinstall SUSE Multi-Linux Manager Proxy 4.3 in the same way as SUSE Linux Enterprise clients. Make sure you use the SUSE Linux Enterprise installation media, and choose the SLE-Product-SUSE-Manager-Proxy-4.3-Pool for x86_64 base channel.

4. ディストリビューションとプロファイルのカーネルオプションの処理

SUSE Multi-Linux Managerは、割り当てたカーネルオプションを組み合わせることができます。 これは特別な継承ロジックを使用して行われます。 これに関連するオブジェクト タイプは3つあります。

  1. ディストリビューション(または略して "Distros")

  2. プロファイル

  3. システム

As a fourth special point of influence on the final kernel options is the Cobbler settings file /etc/cobbler/settings.yaml. The Cobbler settings file defines default kernel options for all distributions. This is not supported in the context of SUSE Multi-Linux Manager.

カーネルオプションを効果的に管理するには、生の値と解決済みの値を理解することが極めて重要です。

  1. 生の値: これらは、特定のCobbler項目に直接割り当てられ、Cobblerの内部データベースにそのまま保存される値を指します。

  2. 解決済みの値: これらの値は、Cobbler項目の継承階層を考慮して実行時に動的に生成されます。

If you prefix an option with ! then the option will be removed from the final kernel command line.

SUSE Multi-Linux Managerは、プロファイルとシステムの両方のカーネルオプションを管理します。 そのため、Distroのカーネルオプションのみを編集することができます。

4.1. 例

4.1.1. 基本的な継承の例

ディストリビューションの生の値

install=http://uyuni.server/ks/dist/SLES15SP4 self_update=0

プロファイルの生の値

console=tty1

システムの生の値

console=ttyS0

このプロファイルを継承するシステムの解決済みの

install=http://uyuni.server/ks/dist/SLES15SP4 self_update=0 console=ttyS0

4.1.2. オプション削除の例

ディストリビューションの生の値

install=http://uyuni.server/ks/dist/SLES15SP4 self_update=0

プロファイルの生の値

console=tty1

システムの生の値

!self_update

このプロファイルを継承するシステムの解決済みの

install=http://uyuni.server/ks/dist/SLES15SP4 console=ttyS0