以下示例将 MAC 地址为 0:e0:81:5d:bf:e0 的 x86 客户机与 solaris11_2-i386 安装服务相关联。该命令输出的 DHCP 配置必须添加到 DHCP 服务器中。如果该 DHCP 配置未完成,则客户机无法引导 solaris11_2-i386 安装服务。
# installadm create-client -n solaris11_2-i386 -e 0:e0:81:5d:bf:e0 No local DHCP configuration found. If not already configured, the following should be added to the DHCP configuration: Boot server IP : 10.80.239.5 Boot file(s) : bios clients (arch 00:00): 0100E0815DBFE0.bios uefi clients (arch 00:07): 0100E0815DBFE0.uefi
以下示例说明了 installadm 命令如何设置该客户机的 PXE 引导项:
host 00E0815DBFE0 { hardware ethernet 00:E0:81:5D:BF:E0; if option arch = 00:00 { filename "0100E0815DBFE0.bios"; } else if option arch = 00:07 { filename "0100E0815DBFE0.uefi"; } }
此 installadm create-client 命令在 /etc/netboot 目录中显示以下结果:
lrwxrwxrwx 1 root root 21 May 6 10:32 0100E0815DBFE0 -> ./0100E0815DBFE0.bios lrwxrwxrwx 1 root root 44 May 6 10:32 0100E0815DBFE0.bios -> ./solaris11_2-i386/boot/grub/pxegrub2 lrwxrwxrwx 1 root root 51 May 6 10:32 17:49 0100E0815DBFE0.uefi -> ./solaris11_2-i386/boot/grub/grub2netx64.efi -rw-r--r-- 1 root root 1744 May 6 10:32 17:49 grub.cfg.0100E0815DBFE0 -rw-r--r-- 1 root root 1204 May 6 10:32 17:49 menu.conf.0100E0815DBFE0