Solaris Unattended installation » History » Version 9
Oliver Weinmann, 12/28/2011 05:13 AM
1 | 1 | Romain Vrignaud | h1. Solaris Unattended installation |
---|---|---|---|
2 | |||
3 | 4 | Oliver Weinmann | h2. Installation Media |
4 | 1 | Romain Vrignaud | |
5 | 9 | Oliver Weinmann | Installation Media can reside on a non Solaris host. Only the setup of the installation media has to be carried out on a Solaris host. |
6 | 7 | Oliver Weinmann | |
7 | 9 | Oliver Weinmann | Create a directory and run the following script from the Solaris 10 Installation DVD on a Solaris 8 / 10 machine: |
8 | 4 | Oliver Weinmann | |
9 | <pre> |
||
10 | mkdir -p /Solaris |
||
11 | cd /cdrom/cdrom0/Solaris_10/Tools |
||
12 | ./setup_install_server /Solaris |
||
13 | </pre> |
||
14 | |||
15 | 3 | Oliver Weinmann | A Solaris distribution should be declared in the same form as a Linux distribution. There should be an http based access URL, (the path variable,) so that the smart-proxy can |
16 | download the required components for the build. Currently this step has to be done manually. Simply copy the inetboot files to your tftp directory. |
||
17 | |||
18 | Example: |
||
19 | 1 | Romain Vrignaud | |
20 | 3 | Oliver Weinmann | <pre> |
21 | 4 | Oliver Weinmann | cp /Solaris/install/Solaris_5.10_sparc_hw0811/Solaris_10/Tools/Boot/platform/sun4u/inetboot /var/lib/tftpboot/Solaris-5.10-hw0811-SUN4U-inetboot |
22 | 3 | Oliver Weinmann | </pre> |
23 | |||
24 | As the Solaris jumpstart process is performed via NFS rather than TFTP the distribution media must also be made available for |
||
25 | 1 | Romain Vrignaud | ReadOnly mounting on the clients. The fields describing this alternative access naming scheme are revealed on the Media page when a Solaris operating system is selected. The |
26 | Solaris build can proceed via a conventional package build, where the packages selected are the SUWNCreq minimal install, or a flash build. The flash archives are located under |
||
27 | the distribution directory by default but can be located anywhere that can be accessed via NFS. |
||
28 | |||
29 | 2 | Oliver Weinmann | Example: |
30 | |||
31 | <pre> |
||
32 | Name: Solaris Install Media |
||
33 | |||
34 | Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release |
||
35 | Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release |
||
36 | 5 | Oliver Weinmann | Config Path: server:/jumpstart |
37 | 2 | Oliver Weinmann | Image Path: server:/Solaris/images |
38 | </pre> |
||
39 | |||
40 | 5 | Oliver Weinmann | h2. Jumpstart files |
41 | 1 | Romain Vrignaud | |
42 | 5 | Oliver Weinmann | The Solaris jumpstart process occurs in two phases; a diskless client is first booted and then in phase two, the host mounts its build media and configuration files from an NFS location and proceeds with the build. Foreman provides a skeleton configuration directory structure suitable for NFS mounting on the host. In this structure are files that are customised to forward configuration requests to the Foreman instance. This directory tree, located at .../foreman/extra/jumpstart, should be NFS shared to the subnet that contains any potential Solaris clients. Some customization of this directory tree may be required. See [[Solaris_jumpstart_directory]] |
43 | 7 | Oliver Weinmann | |
44 | Examples: |
||
45 | |||
46 | h3. Linux: |
||
47 | |||
48 | <pre> |
||
49 | vi /etc/exports |
||
50 | "/usr/share/foreman/extra/jumpstart" *(ro,async,no_root_squash,anonuid=0) |
||
51 | </pre> |
||
52 | |||
53 | 1 | Romain Vrignaud | h3. Solaris: |
54 | 8 | Oliver Weinmann | <pre> |
55 | 7 | Oliver Weinmann | share -F nfs -o ro,anon=0 /jumpstart |
56 | </pre> |
||
57 | 1 | Romain Vrignaud | |
58 | 5 | Oliver Weinmann | h2. Edit Model |
59 | |||
60 | You need to setup a model for each Solaris Sparc host that you want to deploy. |
||
61 | |||
62 | Example: |
||
63 | |||
64 | <pre> |
||
65 | Name: Sun Ultra 10 |
||
66 | Hardware Model: SUN4U |
||
67 | Vendor Class: Ultra-5_10 |
||
68 | </pre> |
||
69 | |||
70 | 1 | Romain Vrignaud | h2. Model consolidation |
71 | |||
72 | 5 | Oliver Weinmann | When Foreman imports a host that has not been configured and built by Foreman it will attempt to determine the model of that machine by analyzing the facts that are associated with the host. This can often result in many badly named models all referring to what should be a single manufacturers model. A rake task has been provided that attempts to consolidate all these duplicate malformed names into a single sensible model together with the appropriate Solaris vendor class and Solaris hardware model. See [[models_consolidate|rake models::consolidate]] |