通过 CD-ROM 或 USB 密钥安装
对于尚未注册到 SUSE Manager 的客户端,如果无法通过 PXE 进行网络引导,可以使用可引导 CD-ROM 或 USB 密钥来安装系统。
准备此类可移动媒体的其中一个方法是使用 Cobbler。有关使用 Cobbler 准备 ISO 映像的信息,请参见使用 Cobbler 构建 ISO 映像。
对于 SUSE 系统,通常建议使用 KIWI 来准备 ISO 映像。有关详细信息,请参见使用 KIWI 构建 SUSE ISO 映像。
在所有情况下,您都需要使用生成的映像刻录 CD-ROM 或准备 USB 密钥。
1. 使用 Cobbler 构建 ISO 映像
Cobbler 可创建包含一组发行套件、内核和菜单的 ISO 引导映像。该映像的工作方式与 PXE 安装类似。
IBM Z 上不支持使用 Cobbler 构建 ISO。 |
与通过 PXE 进行网络引导类似,为了使用 Cobbler 准备 ISO 映像,您需要准备发行套件和配置文件。有关创建发行套件的信息,请参见 可自动安装的发行套件。有关创建配置文件的信息,请参见 自动安装配置文件。
Cobbler buildiso
命令接受用于定义引导 ISO 的名称和输出位置的参数。
运行 buildiso
命令时必须使用 --distro
指定发行套件。--iso
是输出位置:
cobbler buildiso --iso=/path/to/boot.iso --distro=<发行套件标签>
You must use distribution and profile labels as listed by Cobbler, and not simply as shown in the Web UI. To list the names of distributions and profiles stored by Cobbler, run the commands:
cobbler distro list cobbler profile list
The boot ISO includes all profiles and systems by default. You can limit which profiles and systems are used with the --profiles
and --systems
options:
cobbler buildiso --systems="system1 system2 system3" \ --profiles="<your-profile1-label> <your-profile2-label> <your-profile3-label>" \ --distro=<your-distro-label>
With --esp
you can enable the built boot ISOs with Secure Boot. You explicitly specify the EFI System Partition (ESP). By default, Cobbler generates the ESP partition, which disables Secure Boot.
cobbler buildiso \ --esp="/usr/share/tftpboot-installation/SLE-15-SP4-x86_64/boot/x86_64/efi" \ --iso=/path/to/boot.iso --distro=<your-distro-label>
efi
-
执行
cobbler distro list
获取distro
名称:cobbler distro list
此命令会输出类似
sles15-sp4:1:SUSE
的字符串。 -
执行
cobbler distro report
获取distro
文件位置的相关信息:cobbler distro report --name sles15-sp4:1:SUSE
This command outputs a report such as the following:
Name : sles15-sp4:1:SUSE Architecture : x86_64 ...output omitted... Initrd : /usr/share/tftpboot-installation/SLE-15-SP4-x86_64/boot/x86_64/loader/initrd Kernel : /usr/share/tftpboot-installation/SLE-15-SP6-x86_64/boot/x86_64/loader/linux ...output omitted...
-
查看引导目录的内容。在上例中,引导分区为
/usr/share/tftpboot-installation/SLE-15-SP4-x86_64/boot/x86_64/efi
文件,但这可能会因 ISO 发行商而异。
如果您无法将 ISO 映像写入到公共 |
2. 使用 KIWI 构建 SUSE ISO 映像
KIWI 是一个映像创建系统。您可以使用 KIWI 创建供目标系统用于安装 SUSE 系统的可引导 ISO 映像。重引导或打开系统时,它会从映像引导,从 SUSE Manager 加载 AutoYaST 配置,并根据 AutoYaST 配置文件安装 SUSE Linux Enterprise Server。
要使用 ISO 映像,请引导系统并在提示符处键入 autoyast
(假设您将 AutoYaST 引导的标签保留为 autoyast
)。按 Enter 开始 AutoYaST 安装。
有关 KIWI 的详细信息,请参见 http://doc.opensuse.org/projects/kiwi/doc/。
3. 使用 Cobbler 构建 Red Hat ISO 映像
有关详细信息,请参见 使用 Cobbler 构建 ISO 映像。