OpenSolaris Automated Installer Guide
Previous Next

How to Complete Server Setup (Advanced Instructions)

If you already have DHCP server set up, use the following advanced instructions. For networks where the DHCP server is a separate system from the install server, additional administration tasks on the DHCP server are required to properly set up the automated install environment. In these cases, the following advanced instructions for completing setup replaces the simple instructions above.

Completing Server Setup

Before You Begin

Complete the initial setup instructions provided in How to Set Up an Install Server (Initial Steps).

  1. Create an install service using either the following x86 or SPARC instructions:
    • For an x86 install service, use the installadm create-service command, as in this example:
      # installadm create-service -n 0906x86 -s /export/aiimages/osol-0906-ai-x86.iso \
      /export/aiserver/osol-0906-ai-x86

      The following displays:

      Setting up the target image at /export/aiserver/osol-0906-ai-x86 ...
      Registering the service 0906x86._OSInstall._tcp.local
      
      Detected that DHCP is not set up on this server.
      If not already configured, please create a DHCP macro
      named dhcp_macro_0906x86 with:
         Boot server IP (BootSrvA) : 10.6.68.29
         Boot file      (BootFile) : 0906x86
         GRUB Menu      (GrubMenu) : menu.lst.0906x86
      If you are running Sun's DHCP server, use the following
      command to add the DHCP macro, dhcp_macro_0906x86:
         /usr/sbin/dhtadm -g -A -m dhcp_macro_0906x86 \
      -d :BootSrvA=10.6.68.29:BootFile=0906x86:GrubMenu=menu.lst.0906x86:
      
      Additionally, if the site specific symbol GrubMenu
      is not present, please add it as follows:
         /usr/sbin/dhtadm -g -A -s GrubMenu -d Site,150,ASCII,1,0
      
      Note: Be sure to assign client IP address(es) if needed
      (e.g., if running Sun's DHCP server, run pntadm(1M)).
      copying boot file to /tftpboot/pxegrub.I86PC.OpenSolaris-1
      Service discovery fallback mechanism set up

      In this example, the command creates an install service named 0906x86, using the AI ISO image previously downloaded at /export/aiimages/osol-0906-ai-x86.iso, and stores the resultant net image at /export/aiserver/0906x86.

      As shown above, this command outputs the name and values of a macro, dhcp_macro_0906x86, which needs to be added to the DHCP server. If you are using a Sun DHCP server, you can create the above macro on your DHCP server either by using the DHCP Manager or by running the dhtadm commands, provided in the above output, on your DHCP server.

      If you are setting up a Sun DHCP server and client IP addresses need to be assigned, you may need to use the pntadm(1M) command. For more information, see the pntadm(1M) man page.

      On systems which support graphic interfaces, you can use the DHCP Manager, dhcpmgr, instead of the dhtadm and pntadm commands. For more information, see the dhcpmgr(1M) man page.

    • For a SPARC install service, use the installadm create-service command as in this example:
      # installadm create-service -n 0906sparc \
      -s /export/aiimages/osol-0906-ai-sparc.iso /export/aiserver/osol-0906-ai-sparc

      The following displays:

      Automated Installations will not work with the current server network setup.
      Setting up the target image at /export/aiserver/osol-0906-ai-sparc ...
      Registering the service 0906sparc._OSInstall._tcp.local
      
      Detected that DHCP is not set up on this server.
      If not already configured, please create a DHCP macro
      named dhcp_macro_0906sparc with:
         Boot server IP (BootSrvA) : 10.6.68.29
         Boot file      (BootFile) : http://10.6.68.29:5555/cgi-bin/wanboot-cgi
      If you are running Sun's DHCP server, use the following
      command to add the DHCP macro, dhcp_macro_0906sparc:
         /usr/sbin/dhtadm -g -A -m dhcp_macro_0906sparc \
      -d :BootSrvA=10.6.68.29:BootFile=\"http://10.6.68.29:5555/cgi-bin/wanboot-cgi\":
      
      Note: Be sure to assign client IP address(es) if needed
      (e.g., if running Sun's DHCP server, run pntadm(1M)).
      Service discovery fallback mechanism set up
      Creating SPARC configuration file

      In this example, the command creates an install service named 0906sparc, using the AI ISO image previously downloaded at /export/aiimages/osol-0906-ai-sparc.iso, and stores the resultant net image at /export/aiserver/osol-0906-ai-sparc.

      As shown above, this command outputs the name and values of a macro, dhcp_macro_0906sparc, which needs to be added to the DHCP server. If you are using a Sun DHCP server, you can create the above macro on your DHCP server either by using the DHCP Manager or by running the dhtadm commands, provided in the above output, on your DHCP server.

      If you are setting up a Sun DHCP server and client IP addresses need to be assigned, you may need to use the pntadm(1M) command. For more information, see the pntadm(1M) man page.

      On systems which support graphic interfaces, you can use the DHCP Manager, dhcpmgr, instead of the dhtadm and pntadm commands. For more information, see the dhcpmgr(1M) man page.


      Note - For SPARC install services, the first install service created on an install server is the service that will be used for all client installations that use the install server. If you want a client to use a different install service from this install server, you must use the installadm create-client command to create a client-specific configuration. See Chapter 5, How to Administer a Custom Install Client.


  2. Optional: Set up a custom install client to use the install service.

    See the following x86 and SPARC examples.

    • To set up a custom x86 install client, run the installadm create-client command as shown in the following example:
      # installadm create-client -e 0:10:18:0f:28:26 -n 0906x86 \
      -t /export/aiserver/osol-0906-ai-x86

      The following displays:

      Setting up X86 client...
      Service discovery fallback mechanism set up
      
      Detected that DHCP is not set up on this server.
      If not already configured, please create a DHCP macro
      named 010010180F2826 with:
         Boot server IP (BootSrvA) : 10.6.68.29
         Boot file      (BootFile) : 010010180F2826
      If you are running Sun's DHCP server, use the following
      command to add the DHCP macro, 010010180F2826:
         /usr/sbin/dhtadm -g -A -m 010010180F2826 \
      -d :BootSrvA=10.6.68.29:BootFile=010010180F2826:GrubMenu=menu.lst.010010180F2826:
      
      Note: Be sure to assign client IP address(es) if needed
      (e.g., if running Sun's DHCP server, run pntadm(1M)).

      In this example, the command creates a client-specific setup for the system with a MAC address of 0:10:18:0f:28:26. This client will use the install service previously setup, named 0906x86, and the install image at /export/aiserver/osol-0906-ai-x86.

      As shown above, this command outputs the name and values of a macro, 010010180F2826, which needs to be added to the DHCP server. If you are using a Sun DHCP server, you can create the above macro on your DHCP server either by using the DHCP Manager or by running the dhtadm commands, provided in the above output, on your DHCP server:

      If you are setting up a Sun DHCP server and client IP addresses need to be assigned, you may need to use the pntadm(1M) command. For more information, see the pntadm(1M) man page.

      On systems which support graphic interfaces, you can use the DHCP Manager, dhcpmgr, instead of the dhtadm and pntadm commands. For more information, see the dhcpmgr(1M) man page.

    • To set up a custom SPARC install client, run the installadm create-client command as shown in the following example:
      # installadm create-client -e 0:e0:81:5d:bf:e0 \
      -t /export/aiserver/osol-0906-ai-sparc -n 0906sparc

      The following displays:

      Setting up SPARC client...
      Creating SPARC configuration file
      
      Detected that DHCP is not set up on this server.
      If not already configured, please create a DHCP macro
      named 0100E0815DBFE0 with:
         Boot server IP (BootSrvA) : 10.6.68.29
         Boot file      (BootFile) : http://10.6.68.29:5555/cgi-bin/wanboot-cgi
      If you are running Sun's DHCP server, use the following
      command to add the DHCP macro, 0100E0815DBFE0:
         /usr/sbin/dhtadm -g -A -m 0100E0815DBFE0 \
      -d :BootSrvA=10.6.68.29:BootFile=\"http://10.6.68.29:5555/cgi-bin/wanboot-cgi\":
      
      Note: Be sure to assign client IP address(es) if needed
      (e.g., if running Sun's DHCP server, run pntadm(1M)).

      In this example, the command creates a client-specific setup for the system with a MAC address of 0:e0:81:5d:bf:e0. This client will use the install service previously setup, named 0906sparc, and the install image at /export/aiserver/osol-0906-ai-sparc.

      As shown above, this command outputs the name and values of a macro, dhcp_macro_0906x86, which needs to be added to the DHCP server. If you are using a Sun DHCP server, you can create the above macro on your DHCP server either by using the DHCP Manager or by running the dhtadm commands, provided in the above output, on your DHCP server:

      If you are setting up a Sun DHCP server and client IP addresses need to be assigned, you may need to use the pntadm(1M) command. For more information, see the pntadm(1M) man page.

      On systems which support graphic interfaces, you can use the DHCP Manager, dhcpmgr, instead of the dhtadm and pntadm commands. For more information, see the dhcpmgr(1M) man page. man page.

  3. Boot the client from the network.
    1. For x86 clients, select the network device to boot from when the client boots.

      Note - It may be necessary to modify the BIOS configuration to select network booting.


    2. For SPARC clients, boot with the following command from the open boot prompt:
      OK boot net:dhcp
Troubleshooting

For further information, see Chapter 4, How to Administer an Automated Install Server. See, also, Chapter 8, Troubleshooting and FAQs for the Automated Installer.

Previous Next