|
|||
|
1. Getting Started With the Automated Installer |
Example Scenarios for Automated InstallerThe following scenarios demonstrate how to use the installadm utility to set up services and to customize clients. Setting Up a Server and 20 ClientsThis scenario describes how the installadm create-service command can be used to set up one server that can install 20 clients, for example, in a classroom setting. The following describes the general steps to this process. Then, specific examples are provided to illustrate this process. In this scenario, the server and clients are in the same subnet. You want to install the OpenSolaris 2008.11 release on the first disk of each client. All clients are identical x86 systems. You need to set up a DHCP server on the installation server. No client setup is needed. An extension of this scenario shows how you can copy an existing service to an different location. This option could be useful, for example, if you need to make a service available to people who cannot access it in it's current location. Run the following command to set up a service, providing the required initial image source and a target directory. installadm create-service -s srcimage -i dhcp_ip_start -c count_of_ipaddr targetdir Note - Because this is the first service created on this system, you also must provide a starting IP address and a total number of IP addresses to be made available for the clients. This single command sets up a service. The components in this command accomplish the following tasks.
Note - If you want to update the default manifest file, use the installadm set command after creating the service. Example 2-13 Set Up a Server and 20 Clients The following example illustrates a specific case where you are setting up a server and clients. Use the following command: installadm create-service -s /tmp/image/OpenSolaris-ai-2008-11.iso -i 135.134.133.0 -c 20 /tmp/newimage In this example, the terminal displays the progress as follows: Setting up the target image ... 15280 Terminated Registering the service _install_service_46503._install._tcp.local Creating DHCP Server Created DHCP configuration file. Created dhcptab. Added "Locale" macro to dhcptab. Added server macro to dhcptab - hostname1. DHCP server started. Added network macro to dhcptab - 135.134.0.0. Created network table. The components in this example accomplish the following:
You can create a new service at different location by using an existing service as a model. For example, if you need to post a new service on a location that is accessible to other people, you can copy an existing service to this accessible location. This example illustrates a specific case where you are copying a service to a different location. Use the following command: installadm create-service -s /tmp/image -n new_service /tmp/image2 The terminal displays the following progress: Setting up the target image ... 15529 Terminated 15535 Terminated Registering the service new_service._install._tcp.local Each of the components in this example accomplish the following:
Creating a Custom ClientThe automated installer application enables multiple client systems to access the available installation blueprints that are provided by existing OSInstall services. Client setup is not required. You need only boot the client to initiate service discovery. When the client boots, the automated installer process is as follows:
Optionally, you can use the installadm create-client utility to customize your client configurations and to limit the services, or to explicitly specify a service name and image path that a client can discover. Use the following command to create a custom client. installadm create-client -e macaddr -n svcname -t imagepath
The following example illustrates a specific case where you set up a client that references a specific service name and a specific source image location. Use the following command. installadm create-client -e 0:19:db:4f:db:c8 -n myservice -t /export/opensolaris/myimage The terminal displays the following output: copying boot file to /tftpboot/pxegrub.I86PC.OpenSolaris-1 Enabled PXE boot by adding a macro named 010019DB4FDBC8 to DHCP server with: Boot server IP (BootSrvA) : 135.134.0.0. Boot file (BootFile) : 010019DB4FDBC8
You can view the DHCP configuration results in the DHCP table in the DHCP Manager by using the /usr/sadm/admin/bin/dhcpmgr utility. Go to the /tftpboot directory and view the results of the command as follows. # cd /tftpboot
# ls -l
lrwxrwxrwx 13:23 010019DB4FDBC8 -> pxegrub.I86PC.OpenSolaris-1
drwxr-xr-x 13:26 I86PC.OpenSolaris-1
-rw-r--r-- 13:23 menu.lst.010019DB4FDBC8
-rwxr-xr-x 13:23 pxegrub.I86PC.OpenSolaris-1
-rw-r--r-- 13:23 rm.010019DB4FDBC8
# cat menu.lst.010019DB4FDBC8
default=0
timeout=30
title OpenSolaris myimage
kernel /I86PC.OpenSolaris-1/platform/i86pc/kernel/unix -B
install_media=http://135.134.0.0.:5555:/export/opensolaris/myimage,install_boot=
http://135.134.0.0.:555:/export/opensolaris/myimage/boot,
install_service=myservice,livemode=text
module /I86PC.OpenSolaris-1/x86.microroot
|
||
|