节前最后一贴,在Intel Xeon服务器上用Intel PXE协议网络安装OS[1]

[入库:2005年9月19日] [更新:2007年3月24日]

本文简介:


很多人熟悉Solaris在SPARC平台的网络安装,SPARC平台上的OBP很好用,没OS时也可从网上引导OS,甚至 WAN boot, 但Intel服务器也有类似的功能,即PXE协议,也可从网上引导,现试一把Intel平台PXE网络安装Solaris:


1。同SPARC平台一样,先建好安装服务器u10:

将Intel Xeon client的IP和MAC地址填入服务器表中, 主机名b200:

#vi /etc/hosts
10.1.1.10       u10
10.1.1.200      b200
...

# vi /etc/ethers
...
00:03:ba:2d:f4:64 b200
...

将Solaris x86 DVD image挂上:

# lofiadm -a /dvd/sol-10-GA-x86-dvd-iso.iso
# mount -F hsfs -o ro /dev/lofi/1 /cdrom

# df -k
/dev/lofi/1          2575552 2575552       0   100%    /cdrom

将Solaris 10 x86 DVD目录共享出去:

# share  -F nfs  -o ro /cdrom
# share
-               /cdrom   ro   ""

2。加入安装client,与SPARC平台不一样:

# ./add_install_client -d -e "00:03:ba:2d:f4:64" -b "input-device
=ttya" -b "input-device=ttya" -b "output-device=ttya" -c u10:/config -p u10:/config i86pc

/cdrom already has an entry in /etc/dfs/dfstab.
However, /cdrom must be shared read-only with root access.
Use ro and anon=0 for /cdrom.  The /etc/dfs/dfstab file must be
fixed and /cdrom shared before 00:03:ba:2d:f4:64 can boot.

To enable 0103BA2DF464 in the DHCP server, ensure that
the following Sun vendor-specific options are defined
(SinstNM, SinstIP4, SinstPTH, SrootNM, SrootIP4,
SrootPTH, SbootURI and optionally SjumpCF and SsysidCF),
and add a macro to the server named 0103BA2DF464,
containing the following option values:

  Install server      (SinstNM)  : u10
  Install server IP   (SinstIP4) : 10.1.1.10
  Install server path (SinstPTH) : /cdrom
  Root server name    (SrootNM)  : u10
  Root server IP      (SrootIP4) : 10.1.1.10
  Root server path    (SrootPTH) : /cdrom/Solaris_10/Tools/Boot
  Boot file           (BootFile) : nbp.0103BA2DF464
  Solaris boot file   (SbootURI) : tftp://10.1.1.10/0103BA2DF464
  Profile location    (SjumpsCF) : u10:/config
  sysidcfg location   (SsysidCF) : u10:/config

If not already configured, enable PXE boot by creating
a macro called PXEClient:Arch:00000:UNDI:002001
which contains the following values:
  Boot server IP      (BootSrvA) : 10.1.1.10
This macro will be explicitly requested by the PXE boot.

3。与SPARC平台不一样,先再建好PXE DHCP服务器:

在安装服务器上运行DHCP工具:

# cd /usr/sadm/admin/bin
# ./dhcpmgr

加永久IP地址10.1.1.200给b200(同往常), 不同之处是DHCP服务器工具中缺省
没有9个支持PXE的参数选项,需添加入dhcpmgr:

# dhtadm -A -s SrootIP4 -d 'Vendor=SUNW.i86pc,2,IP,1,1'  
# dhtadm -A -s SrootNM -d 'Vendor=SUNW.i86pc,3,ASCII,1,0'  
# dhtadm -A -s SrootPTH -d 'Vendor=SUNW.i86pc,4,ASCII,1,0'  
# dhtadm -A -s SinstIP4 -d 'Vendor=SUNW.i86pc,10,IP,1,1'  
# dhtadm -A -s SinstNM -d 'Vendor=SUNW.i86pc,11,ASCII,1,0'  
# dhtadm -A -s SinstPTH -d 'Vendor=SUNW.i86pc,12,ASCII,1,0'  
# dhtadm -A -s SsysidCF -d 'Vendor=SUNW.i86pc,13,ASCII,1,0'  
# dhtadm -A -s SjumpsCF -d 'Vendor=SUNW.i86pc,14,ASCII,1,0'

本文关键:节前最后一贴,在Intel Xeon服务器上用Intel PXE协议网络安装OS
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top