Establishment of Automatic Installation (AI server) for Solaris 11

Source: Internet
Author: User

The establishment of the automatic installation (AI server) of Solaris 11 first talks about my operating environment: SunOS test13 5.11 11.1 i86pc i386 i86pc, run on the Virtual Machine ESX server 1: first set up dhcp server 1. root @ test13: /repo/repoea # pkg list | grep dhcpnetwork/dhcp/dhcpmgr 0.5.11-0.175.1.0.0.24.2 I -- network/dhcp/dhcpmgr/locale 0.5.11-Restart I -- service/network/dhcp 0.5.11-0.175.1.0.0.24.2 -- service/network/dhcp/datastore/binfiles 0.5.11-0.175.1.0.0.24.2 I -- service/netw Ork/dhcp/isc-dhcp 4.1.0.6-0.175.1.0.0.24.0 I -- 2. install the dhcp package, pkg install network/dhcp/dhcpmgr/locale service/network/dhcp/datastore/binfiles service/network/dhcp/isc-dhcp 3. configure dhcp dhcpconfig-D-r SUNWfiles-p/var/dhcp dhcpconfig-N 10.200.117.0-t 10.200.117.1 (-N indicates the network segment and-t indicates the default route) 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.0: Router = 10.200.117.1: '(create a macro, here, the BootFile is followed by the service of the created ai service. This bootfile will be generated using installadm create-service) to add the client to this macro: pntadm-A 10.200.117.244-h test11-c test11-m Solaris-11-ea-x86-I 01000C2929BC02-s accept-f PERMANENT-e "01/01/2080" 10.200.117.0 (-I refers to the mac address of the NIC before adding 01, -A is added.-h is the customer service host hos. Tname,-m Refers to macro,-s refers to server ip,-f refers to not expire, 10.200.117.0 refers to your network segment) dhcpconfig-S-r (restart dhcp) make sure the service is up: svc:/network/dhcp-server: default (use svcs-a | grep dhcp to check whether the service is enabled) use pntadm-L to view your resume's network segment root @ test13:/repo/repoea # pntadm-L10.200.117.0 pntadm-P 10.200.117.0 to view the customer service machine root @ test13: /repo/repoea # pntadm-P 10.200.117.0Client 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 view resume macro root @ test13: /repo/repoea # dhtadm-PName Type Value ========================== ================================ Solaris-11-ea-x86 Macro: DNSdmain = utility: DNSserv = 10.200.117.18: BootSrvA = utility: BootFile = "default-i386/boot/grub/pxegrub2": Subnet = 255.255.255.0: Router = 10.200.117.1: Solaris-11-ea-sparc Macro: DNSdmain = cdc. veritas. co M: DNSserv = 10.200.117.18: BootSrvA = restart: BootFile = "http: // 10.200.117.245: 5555/cgi-bin/wanboot-cgi": Subnet = 255.255.255.0: Router = 10.200.117.1: 2: the first step left behind is to generate a bootfile. Now we want to create ai service 1: Some of my iso resources, including x86 and iSCSI of solaris 11 U1, there is also a repo do IPS root @ test13:/mnt/OS/OS/solaris11/U1 # lssol-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: create a file system mount point Zfs create-o compression = on-o mountpoint =/ai rpool/ai (the ai server contains directories such as manifest and profile to store manifest and profile) zfs create-o compression = on-o mountpoint =/repo rpool/repo (for IPS) cd/ai; mkdir aiboot manifestcd/mnt; mkdir nfs isomount-o vers = 3 10.200.117.71: /lab/mnt/nfssvcadm enable svc:/network/dns/multicast: defaultsvcadm enable network/tftp/udp6 3: Creating an ai service installadm create-service-n Solaris-11 -Ea-iSCSI-s/mnt/nfs/iso/ea/sol-11-ea-ai-sparc.iso-d/ai/aiboot/Solaris-11-ea-sparcinstalladm create-service-n Solaris-11-ea-x86-s/mnt/nfs/iso/ea /sol-11-ea-ai-x86.iso-d/ai/aiboot/Solaris-11-ea-x86 here a bootfile file is generated, remember this name. It must be associated with the macro of the dhcp server. root @ test13: /ai/profile # installadm create-service-n Solaris-11-ea-sparc-s/mnt/OS/OS/solaris11/U1/sol-11_1-24b-ai-sparc.iso-d/ai/aiboot/Solaris- From:/mnt/OS/OS/solaris11/U1/sol-11_1-24b-ai-sparc.isoSetting up the image... creating iscsi service: Solaris-11-ea-sparc Image path:/ai/aiboot/Solaris-11-ea-sparc Service discovery fallback mechanism set upCreating iSCSI configuration fileRefreshing install services Creating default-iSCSI alias Service discovery fallback mechanism set upCreating iSCSI configuration FileNo local DHCP configuration found. this service is the defaultalias for all iSCSI clients. if not already in place, the following shouldbe added to the DHCP configuration: Boot file: http: // 10.200.117.245: 5555/cgi-bin/wanboot-cgi Refreshing install services 3: associate manifest to ai service installadm add-manifest-n Solaris-11-ea-x86-m manifest-ea-f/ai/manifest/manifest-ea.xml-d (create-manifest also works, I have tried. The-d parameter indicates the default one) installadm add-manifest-n Solaris-11-ea-sparc-m manifest-ea-f/ai/manifest/manifest-ea.xml-d manifest a template xml file is: root @ test13: /mnt # cat/ai/manifest/manifest-ea.xml <! DOCTYPE auto_install SYSTEM "file: // usr/share/install/ai. dtd.1 "> <auto_install> <ai_instance name =" manifest-GA "> <target> <logical> <zpool name =" rpool "is_root =" true "> <filesystem name =" export "mountpoint ="/export "/> <filesystem name =" export/home "/> <be name =" solaris "/> </zpool> </logical> </ target> <software type = "IPS"> <destination> <image> <! -- Specify locales to install --> <facet set = "false"> facet. locale. * </facet> <facet set = "true"> facet.locale.de </facet> <facet set = "true"> facet.locale.de _ DE </facet> <facet set = "true"> facet. locale. en </facet> <facet set = "true"> facet. locale. en_US </facet> <facet set = "true"> facet. locale. es </facet> <facet set = "true"> facet. locale. es_ES </facet> <facet set = "true"> facet. locale. fr </facet> <facet set = "true"> face T. locale. fr_FR </facet> <facet set = "true"> facet. locale. it </facet> <facet set = "true"> facet. locale. it_IT </facet> <facet set = "true"> facet. locale. ja </facet> <facet set = "true"> facet. locale. ja _ * </facet> <facet set = "true"> facet. locale. ko </facet> <facet set = "true"> facet. locale. ko _ * </facet> <facet set = "true"> facet.locale.pt </facet> <facet set = "true"> facet.locale.pt _ BR </facet> <facet set =" true "> facet. locale. Zh </facet> <facet set = "true"> facet. locale. zh_CN </facet> <facet set = "true"> facet. locale. zh_TW </facet> </image> </destination> <source> <publisher name = "solaris"> <origin name = "http: // 10.200.117.245: 10002 "/> </publisher> </source> <! -- By default the latest build available, in the specified IPS repository, is installed. if another build is required, the build number has to be appended to the 'entire' package in the following form: <name> pkg: /entire@0.5.11-0.build # </name> --> <software_data action = "install"> <name> pkg:/entire @ latest </name> <name> pkg: /group/system/solaris-large-server </name> <name> pkg: /slim_install </name> </software_data> </software> </ai_instance> </auto_install> the red part is the IP address and port 4 of your IPSserver: create profile installadm create-profile-n Solaris-11-ea-sparc-f/ai/profile/10.200.117.244.xml-p profile-eainstalladm create-profile-n Solaris-11-ea-x86-f/ai/profile/10.200.117.244.xml-p profile- the eaprofile xml file will not be pasted, it's too long. The official website has 5: create IPS lofiadm-a/mnt/OS/OS/solaris11/U1/sol-11_1-24b-repo-p01.iso mount-F hsfs/dev/lofi/1/mnt/iso rsync-aP/mnt /iso/repo // repo/repoea // usr/lib/pkg. depotd-d/repo/repoea-p 10002>/dev/null & this is just to merge the p01 package into/repo/repoea/, and then repeat the above operation, then, load p02 to/repo/repoea/. Now we can restart the machine to automatically install the system through the ai server.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.