solaris 11 总体比solaris 10很多变动的地方,可以去官方网站上面学习:Oracle.com/technetwork/server-storage/solaris11/downloads/index.html
先讲讲我的运行环境:SunOS test13 5.11 11.1 i86pc i386 i86pc, 运行在虚拟机ESX server上面
一:首先搭建dhcp server
1. root@test13:/repo/repoea# pkg list | grep dhcp
network/dhcp/dhcpmgr 0.5.11-0.175.1.0.0.24.2 i--
network/dhcp/dhcpmgr/locale 0.5.11-0.175.1.0.0.23.1134 i--
service/network/dhcp 0.5.11-0.175.1.0.0.24.2 i--
service/network/dhcp/datastore/binfiles 0.5.11-0.175.1.0.0.24.2 i--
service/network/dhcp/isc-dhcp 4.1.0.6-0.175.1.0.0.24.0 i--
2.安装dhcp包, pkg install network/dhcp/dhcpmgr network/dhcp/dhcpmgr/locale service/network/dhcp service/network/dhcp/datastore/binfiles service/network/dhcp/isc-dhcp
3.配置dhcp
dhcpconfig -D -r SUNWfiles -p /var/dhcp
dhcpconfig -N 10.200.117.0 -t 10.200.117.1(-N代表网段,-t代表默认路由)
dhtadm -A -m Solaris-11-ea-sparc -d ':DNSdmain=cdc.veritas.com:DNSserv=10.200.117.18:BootSrvA=10.200.117.245:BootFile="http://10.200.117.245:5555/cgi-bin/wanboot-cgi":Subnet=255.255.255.0:Router=10.200.117.1:' (创建宏,其中BootFile后面是创建的ai service的服务,用installadm create-service生成以后会有这个bootfile)
将客户机加入到这个宏里面:
pntadm -A 10.200.117.244 -h test11 -c test11 -m Solaris-11-ea-x86 -i 01000C2929BC02 -s 10.200.117.245 -f PERMANENT -e "01/01/2080" 10.200.117.0(-i是指网卡的mac地址前面要加01,-A是增加 -h是指客服机hostname,-m是指宏,-s是指server ip,-f是指不过期,10.200.117.0指你的网段)
dhcpconfig -S -r(重启dhcp)
确保这个服务是起来了的:svc:/network/dhcp-server:default(用svcs -a|grep dhcp查看下,没起来把服务开启)
用pntadm -L 查看你简历的网段
root@test13:/repo/repoea# pntadm -L
10.200.117.0
pntadm -P 10.200.117.0查看所在网段的客服机器
root@test13:/repo/repoea# pntadm -P 10.200.117.0
Client ID Flags Client IP Server IP Lease Expiration Macro Comment
01000C2929BC02 01 10.200.117.244 10.200.117.245 Forever Solaris-11-ea-x86 test11
dhtadm -P 查看简历的宏
root@test13:/repo/repoea# dhtadm -P
Name Type Value
==================================================
Solaris-11-ea-x86 Macro :DNSdmain=cdc.veritas.com:DNSserv=10.200.117.18:BootSrvA=10.200.117.245:BootFile="default-i386/boot/grub/pxegrub2":Subnet=255.255.255.0:Router=10.200.117.1:
Solaris-11-ea-sparc Macro :DNSdmain=cdc.veritas.com:DNSserv=10.200.117.18:BootSrvA=10.200.117.245:BootFile="http://10.200.117.245:5555/cgi-bin/wanboot-cgi":Subnet=255.255.255.0:Router=10.200.117.1:
二:第一步的时候遗留了一个问题就是生成bootfile,现在我们要创建ai service、
1:我的一些iso资源,包括solaris 11 U1的x86和sparc,还有就是repo做IPS
root@test13:/mnt/os/OS/solaris11/U1# ls
sol-11_1-24b-ai-sparc.iso sol-11_1-24b-ai-x86.iso sol-11_1-24b-repo-p01.iso sol-11_1-24b-repo-p02.iso
2:创建文件系统mount点
zfs create -o compression=on -o mountpoint=/ai rpool/ai(ai server里面有manifest和profile等目录,存放manifest和profile)
zfs create -o compression=on -o mountpoint=/repo rpool/repo(做IPS)
cd /ai;mkdir aiboot manifest
cd /mnt;mkdir nfs iso
mount -o vers=3 10.200.117.71:/lab /mnt/nfs
svcadm enable svc:/network/dns/multicast:default
svcadm enable network/tftp/udp6