Project

General

Profile

Solaris Unattended installation » History » Version 13

Oliver Weinmann, 12/28/2011 07:22 AM

1 1 Romain Vrignaud
h1. Solaris Unattended installation
2
3 4 Oliver Weinmann
h2. Installation Media
4 1 Romain Vrignaud
5 11 Oliver Weinmann
First you have to identify the release name of you Solaris install media. To do this check the disc label on your Solaris DVD. 
6
7
Example:
8
9
<pre>
10
SOL_10_811_SPARC = hw0811
11
</pre>
12
13
I recommend to create a structure to hold more than just one Solaris install media like the following:
14
15
<pre>
16
/Solaris
17
/Solaris/install
18
/Solaris/images
19
/Solaris/jumpstart
20
</pre>
21
22 10 Oliver Weinmann
h3. Linux:
23 1 Romain Vrignaud
24 11 Oliver Weinmann
Copy the contents of the Solaris 10 Install DVD to the local install directory.
25 10 Oliver Weinmann
26
Example:
27 1 Romain Vrignaud
28 10 Oliver Weinmann
<pre>
29 11 Oliver Weinmann
cp -r /media/dvd /Solaris/install/Solaris_5.10_sparc_hw0811
30 1 Romain Vrignaud
</pre>
31
32 12 Oliver Weinmann
Note that hw0811 is the release name that has to match your Solaris install media.
33 11 Oliver Weinmann
34 9 Oliver Weinmann
h3. Solaris:
35 4 Oliver Weinmann
36 1 Romain Vrignaud
Create a directory and run the following script from the Solaris 10 Installation DVD on a Solaris 8 / 10 machine:
37
38 4 Oliver Weinmann
<pre>
39 11 Oliver Weinmann
mkdir -p /Solaris/install/Solaris_5.10_sparc_hw0811
40 4 Oliver Weinmann
cd /cdrom/cdrom0/Solaris_10/Tools
41 11 Oliver Weinmann
./setup_install_server /Solaris/install/Solaris_5.10_sparc_hw0811
42 4 Oliver Weinmann
</pre>
43
44 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
45
download the required components for the build. Currently this step has to be done manually. Simply copy the inetboot files to your tftp directory.
46
47
Example:
48 1 Romain Vrignaud
49 3 Oliver Weinmann
<pre>
50 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
51 3 Oliver Weinmann
</pre>
52
53
As the Solaris jumpstart process is performed via NFS rather than TFTP the distribution media must also be made available for
54 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
55
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 
56
the distribution directory by default but can be located anywhere that can be accessed via NFS.
57
58 2 Oliver Weinmann
Example:
59
60 13 Oliver Weinmann
h3. Linux:
61
62 2 Oliver Weinmann
<pre>
63 13 Oliver Weinmann
vi /etc/exports
64
"/Solaris" *(ro,async,no_root_squash,anonuid=0)
65
</pre>
66
67
h3. Solaris:
68
69
<pre>
70
share -F nfs -o ro,anon=0 /Solaris
71
echo "share -F nfs -o ro,anon=0 /Solaris" >> /etc/dfs/dfstab
72
</pre>
73
74
Example:
75
76
<pre>
77 2 Oliver Weinmann
Name: Solaris Install Media
78
79
Path: http://server/Solaris/install/Solaris_$major.$minor_$arch_$release
80
Media Path: server:/Solaris/install/Solaris_$major.$minor_$arch_$release
81 5 Oliver Weinmann
Config Path: server:/jumpstart
82 2 Oliver Weinmann
Image Path: server:/Solaris/images
83
</pre>
84
85 5 Oliver Weinmann
h2. Jumpstart files
86 1 Romain Vrignaud
87 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]]
88 7 Oliver Weinmann
89
Examples:
90
91
h3. Linux:
92
93 1 Romain Vrignaud
<pre>
94 12 Oliver Weinmann
cp -r /usr/share/foreman/extra/jumpstart /Solaris/jumpstart
95 7 Oliver Weinmann
vi /etc/exports
96 12 Oliver Weinmann
"/Solaris/jumpstart" *(ro,async,no_root_squash,anonuid=0)
97 7 Oliver Weinmann
</pre>
98
99 1 Romain Vrignaud
h3. Solaris:
100
<pre>
101 12 Oliver Weinmann
cp -r /usr/share/foreman/extra/jumpstart /Solaris/jumpstart
102 7 Oliver Weinmann
share -F nfs -o ro,anon=0 /jumpstart
103 13 Oliver Weinmann
echo "share -F nfs -o ro,anon=0 /jumpstart" >> /etc/dfs/dfstab
104 7 Oliver Weinmann
</pre>
105 1 Romain Vrignaud
106 5 Oliver Weinmann
h2. Edit Model
107
108
You need to setup a model for each Solaris Sparc host that you want to deploy.
109
110
Example:
111
112
<pre>
113
Name: Sun Ultra 10
114
Hardware Model: SUN4U
115
Vendor Class: Ultra-5_10
116
</pre>
117
118 1 Romain Vrignaud
h2. Model consolidation
119
120 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]]