Construction of automatic installation (AIserver) of Solaris11

Source: Internet
Author: User
The automatic installation of Solaris11 (AIserver) first talks about my runtime environment: sunostest135.1111.1i86pci1_i86pc, run on the virtual machine ESXserver 1: First set up dhcpserver1.root @ test13:/repo/repoea # pkg... 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/network/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.255.0: Router = 10.200.117.1: '(create a macro. the BootFile is followed by the service of the created ai service. this bootfile will be generated using installadm create-service) 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 adds-h to the customer service host name,-m to the macro,-s to the server ip,-f to the non-expiration, and 10.200.117.0 to your network segment) dhcpconfig-S-r (restart dhcp) to ensure that the service is up: svc:/network/dhcp-server: default (use svcs-a | grep dhcp to check it, failed to enable the service) use pntadm-L to view the network segment root @ test13 of your resume: /repo/repoea # pntadm-L10.200.117.0 pntadm-P 10.200.117.0 view the customer service machine in the network segment root @ test13: /repo/repoea # pntadm-P 10.200.117.0Client ID Flags Client IP Server IP Lease Expiration Macro Comment 01000C2929BC02 01 rows prior 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 = connector: DNSserv = 10.200.117.18: BootSrvA = connector: BootFile = "default-i386/boot/grub/pxegrub2": Subnet = 255.255.255.0: Router = 10.200.117.1: Solaris-11-ea-sparc Macro: DNSdmain = connector: DNSserv = 10.200.117.18: BootSrvA = 10.200.117.245: BootFile =" http://10.200.117.245:5555/cgi-bin/wanboot-cgi ": Subnet = route 255.255.0: Router = 10.200.117.1: 2: The first step left a problem: generate a bootfile. now we want to create ai service 1: Some of my iso resources, including solaris 11 U1 x86 and iSCSI, there is 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: create ai service installadm create-service-n Solaris-11-ea-sparc-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-11-ea-sparc Creating service 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 mechanic set upCreating iSCSI configuration fileRefreshing install services Creating default-iSCSI alias Service discovery fallback mechanic 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 Facet. locale .* Facet.locale.de Facet.locale.de _ DE Facet. locale. en Facet. locale. en_US Facet. locale. es Facet. locale. es_ES Facet. locale. fr Facet. locale. fr_FR Facet. locale. it Facet. locale. it_IT Facet. locale. ja Facet. locale. ja _* Facet. locale. ko Facet. locale. ko _* Facet.locale.pt Facet.locale.pt _ BR Facet. locale. zh Facet. locale. zh_CN Facet. locale. zh_TW Pkg:/entire @ latest Pkg:/group/system/solaris-large-server Pkg:/slim_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.

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.