Use the Automated Installer (AI) to install the Oracle Solaris 11

 This article describes install solaris 11 over a network.It will show you how to create an install server and configure it.

1.Enable svc:/network/dns/multicast:default service:

  
  
  
  
  1. [root@pkg:~]# svcs -a|grep dns  
  2. disabled       20:40:37 svc:/network/dns/server:default  
  3. online         20:41:27 svc:/network/dns/client:default  
  4. online         22:02:24 svc:/network/dns/multicast:default 

 2.Get Local Network information:

  
  
  
  
  1. [root@pkg:~]# getent netmasks 172.16.255.0  
  2. 172.16.255.0         255.255.255.0 
 

3.Check following packages:

  
  
  
  
  1. [root@pkg:~]# pkg info installadm  
  2.           Name: install/installadm  
  3.        Summary: installadm utility  
  4.    Description: Automatic Installation Server Setup Tools  
  5.       Category: System/Administration and Configuration  
  6.          State: Installed  
  7.      Publisher: solaris  
  8.        Version: 0.5.11  
  9.  Build Release: 5.11  
  10.         Branch: 0.175.0.0.0.2.1482  
  11. Packaging Date: October 19, 2011 12:26:24 PM   
  12.           Size: 1.04 MB  
  13.           FMRI: pkg://solaris/install/[email protected],5.11-0.175.0.0.0.2.1482:20111019T122624Z 

4.Create Install Service by installadm command:

  
  
  
  
  1. [root@pkg:~]# installadm create-service -n auto_install -s /mnt/solaris/sol-11-1111-ai-x86.iso -i 172.16.255.201 -c 5  
  2.  
  3. Creating service from: /mnt/solaris/sol-11-1111-ai-x86.iso  
  4. OK to use default image path: /export/auto_install/auto_install? [y/N]: y  
  5. Setting up the image ...  
  6.  
  7. Creating service: auto_install  
  8.  
  9. Image path: /export/auto_install/auto_install  
  10.  
  11. Starting DHCP server...  
  12.  
  13. Adding IP range to local DHCP configuration  
  14.  
  15. Refreshing install services  
  16.  
  17. Creating default-i386 alias.  
  18.  
  19. Setting the default PXE bootfile in the local DHCP configuration to 
  20. 'default-i386/boot/grub/pxegrub' 
  21.  
  22. Refreshing install services 

5.Check Install Service:

  
  
  
  
  1. [root@pkg:~]# installadm list  
  2.  
  3. Service Name Alias Of     Status  Arch   Image Path   
  4. ------------ --------     ------  ----   ----------   
  5. auto_install -            on      x86    /export/auto_install/auto_install  
  6. default-i386 auto_install on      x86    /export/auto_install/auto_install  

6.Add Clients To Install Server:

  
  
  
  
  1. [root@pkg:~]# installadm create-client -e 00:0C:29:99:21:A5 -n auto_install  
  2. Adding host entry for 00:0C:29:99:21:A5 to local DHCP configuration.  
  3.  
  4. [root@pkg:~]# installadm create-client -e 00:0C:29:E9:B6:5E -n auto_install  
  5. Adding host entry for 00:0C:29:E9:B6:5E to local DHCP configuration.  
  6.  
  7. [root@pkg:~]# installadm list -c  
  8.  
  9. Service Name Client Address     Arch   Image Path   
  10. ------------ --------------     ----   ----------   
  11. auto_install 00:0C:29:99:21:A5  i386   /export/auto_install/auto_install  
  12.              00:0C:29:E9:B6:5E  i386   /export/auto_install/auto_install 

7.Create A Directory To Store Manifest Files:

  
  
  
  
  1. [root@pkg:~]# mkdir -p /var/tmp/mainfests  
  2. [root@pkg:mainfests]# more auto_install.xml   
  3. <?xml version="1.0" encoding="UTF-8"?>  
  4. <!--  
  5.    
  6.  
  7.  Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.  
  8.  
  9. -->  
  10. <!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">  
  11. <auto_install>  
  12.   <ai_instance name="default">  
  13.     <target>  
  14.       <logical>  
  15.         <zpool name="rpool" is_root="true">  
  16.           <filesystem name="export" mountpoint="/export"/>  
  17.           <filesystem name="export/home"/>  
  18.           <be name="solaris"/>  
  19.         </zpool>  
  20.       </logical>  
  21.     </target>  
  22.     <software type="IPS">  
  23.       <destination>  
  24.         <image>  
  25.           <!-- Specify locales to install -->  
  26.           <facet set="false">facet.locale.*</facet>  
  27.           <facet set="true">facet.locale.de</facet>  
  28.           <facet set="true">facet.locale.de_DE</facet>  
  29.           <facet set="true">facet.locale.en</facet>  
  30.           <facet set="true">facet.locale.en_US</facet>  
  31.           <facet set="true">facet.locale.es</facet>  
  32.           <facet set="true">facet.locale.es_ES</facet>  
  33.           <facet set="true">facet.locale.fr</facet>  
  34.           <facet set="true">facet.locale.fr_FR</facet>  
  35.           <facet set="true">facet.locale.it</facet>  
  36.           <facet set="true">facet.locale.it_IT</facet>  
  37.           <facet set="true">facet.locale.ja</facet>  
  38.           <facet set="true">facet.locale.ja_*</facet>  
  39.           <facet set="true">facet.locale.ko</facet>  
  40.           <facet set="true">facet.locale.ko_*</facet>  
  41.           <facet set="true">facet.locale.pt</facet>  
  42.           <facet set="true">facet.locale.pt_BR</facet>  
  43.           <facet set="true">facet.locale.zh</facet>  
  44.           <facet set="true">facet.locale.zh_CN</facet>  
  45.           <facet set="true">facet.locale.zh_TW</facet>  
  46.         </image>  
  47.       </destination>  
  48.       <source>  
  49.         <publisher name="solaris">  
  50.           <origin name="http://pkg.xzxj.edu.cn"/>  
  51.         </publisher>  
  52.       </source>  
  53.       <!--  
  54.         By default the latest build available, in the specified IPS  
  55.         repository, is installed.  If another build is required, the  
  56.         build number has to be appended to the 'entire' package in the  
  57.         following form:  
  58.  
  59.             <name>pkg:/[email protected]#</name>  
  60.       -->  
  61.       <software_data action="install">  
  62.         <name>pkg:/entire@latest</name>  
  63.         <name>pkg:/group/system/solaris-large-server</name>  
  64.       </software_data>  
  65.     </software>  
  66.   </ai_instance>  
  67. </auto_install>  
  68.  
  69. [root@pkg:mainfests]# more criteria.xml   
  70. <ai_criteria_manifest>  
  71.     <ai_criteria name="mac">  
  72.       <range>  
  73.         00:0C:29:99:21:A5  
  74.         00:0C:29:E9:B6:5E  
  75.       </range>  
  76.     </ai_criteria>  
  77. </ai_criteria_manifest> 

8.Create manifest by installadm command:

  
  
  
  
  1. [root@pkg:~]# installadm create-manifest -n auto_install -f /var/tmp/mainfests/auto_install.xml \
  2. >-C /var/tmp/mainfests/criteria.xml  
  3. [root@pkg:~]# installadm list -m  
  4.  
  5. Service Name  Manifest      Status   
  6. ------------  --------      ------   
  7. auto_install  default         
  8.               orig_default  Default 
  9. default-i386  orig_default  Default 

9.Display Configuration Details:

  
  
  
  
  1. [root@pkg:~]# installadm list -m -n auto_install  
  2.  
  3. Manifest      Status    Criteria   
  4. --------      ------    --------   
  5. default                 mac = 00:0C:29:99:21:A5 - 00:0C:29:E9:B6:5E  
  6.  
  7. orig_default  Default   None 

10.The Client Installing:

image

image

image

image

image

For more information:Installing Oracle Solaris 11 Systems

本文出自 “candon123” 博客,谢绝转载!

你可能感兴趣的:(职场,Solaris,休闲)