Mercurial > docs > s390-linux
comparison body-zvm-centos4.html @ 12:e5ab4d0d4407
zvm-centos4: finished the first version
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 07 Nov 2008 12:51:45 -0500 |
parents | 43f87a840ead |
children |
comparison
equal
deleted
inserted
replaced
11:43f87a840ead | 12:e5ab4d0d4407 |
---|---|
8 </p> | 8 </p> |
9 | 9 |
10 <p> | 10 <p> |
11 The following howto assumes, that you know at least a little bit of: | 11 The following howto assumes, that you know at least a little bit of: |
12 <ul> | 12 <ul> |
13 <li>CentOS/RHEL familiarity</li> | 13 <li>CentOS/RHEL installer familiarity on non s390</li> |
14 <li>General networking knowledge</li> | 14 <li>General networking knowledge</li> |
15 </ul> | 15 </ul> |
16 </p> | 16 </p> |
17 | 17 |
18 <p> | 18 <p> |
34 <p> | 34 <p> |
35 First of all, you'll need to get the installation files to get things going. | 35 First of all, you'll need to get the installation files to get things going. |
36 </p> | 36 </p> |
37 | 37 |
38 <p> | 38 <p> |
39 So, point your browser to the mirror nearest you, navigate to this rather | 39 So, point your browser to the mirror nearest you, navigate to this path: |
40 long path: | |
41 <pre>/centos-4/4.6/os/s390/images/</pre> | 40 <pre>/centos-4/4.6/os/s390/images/</pre> |
42 | 41 |
43 and grab these files: | 42 and grab these files: |
44 <pre> | 43 <pre> |
45 redhat.exec | |
46 kernel.img | 44 kernel.img |
47 initrd.img | 45 initrd.img |
48 generic.prm | 46 generic.prm |
49 </pre> | 47 </pre> |
50 | 48 |
51 I used CentOS 4.6 to write this howto, but a newer version should work just | 49 I used CentOS 4.6 to write this howto, but a newer version should work just |
52 as well.<br/> | 50 as well.<br/> |
53 <br/> | 51 <br/> |
54 Note: If you want a 64-bit system, you'll want to use <strong>s390x</strong> | 52 Note: If you want a 64-bit system, you'll want to use <strong>s390x</strong> |
55 in the path instead. | 53 in the path instead.<br/> |
54 <br/> | |
55 I used this REXX script as to make my life easier. I called it | |
56 redhat.exec (you'll notice that some of the files are called redhat or rhel, | |
57 that's because I based my install steps on scripts/config files used to | |
58 install RHEL on s390):<br/> | |
59 <pre> | |
60 /* */ | |
61 'CL RDR' | |
62 'PURGE RDR ALL' | |
63 'SPOOL PUNCH * RDR' | |
64 'PUNCH KERNEL IMG A (NOH' | |
65 'PUNCH REDHAT PARM A (NOH' | |
66 'PUNCH INITRD IMG A (NOH' | |
67 'CH RDR ALL KEEP NOHOLD' | |
68 'I 00C' | |
69 </pre> | |
56 </p> | 70 </p> |
57 | 71 |
58 <p> | 72 <p> |
59 Login to your VM id, and start CMS <pre>ipl cms</pre>. Then transfer the | 73 Login to your VM id, and start CMS <pre>ipl cms</pre>. Then transfer the |
60 files you got to your A minidisk. You can either use FTP, or IND$FILE | 74 files you got to your A minidisk. You can either use FTP, or IND$FILE |
61 through your 3270 terminal emulator. I used the IND$FILE method via c3270.<br/> | 75 through your 3270 terminal emulator. I used the IND$FILE method via c3270.<br/> |
62 <br/> | 76 <br/> |
63 <b>Note:</b> The .img files should be transfered as binaries, and the other two | 77 <b>Note:</b> The .img files should be transfered as binaries, and the other |
64 need to be converted to EBCDIC. Both, FTP and IND$FILE support converting | 78 two need to be converted to EBCDIC. Both, FTP and IND$FILE support |
65 between ASCII and EBCDIC.<br/> | 79 converting between ASCII and EBCDIC.<br/> |
66 <br/> | 80 <br/> |
67 I used the following commands in c3270 to do the transfers:<br/> | 81 I used the following commands in c3270 to do the transfers:<br/> |
68 | 82 |
69 <pre> | 83 <pre> |
70 transfer host=vm ... mode=binary localfile=kernel.img "hostfile=kernel img a" | 84 transfer host=vm ... mode=binary localfile=kernel.img "hostfile=kernel img a" |
84 <p> | 98 <p> |
85 At this point, your CMS A minidisk should look like something like | 99 At this point, your CMS A minidisk should look like something like |
86 this:<br/> | 100 this:<br/> |
87 <img src="zvm-centos4/install1.png" alt="CMS listing the files on A" /><br/> | 101 <img src="zvm-centos4/install1.png" alt="CMS listing the files on A" /><br/> |
88 <br/> | 102 <br/> |
89 The RHEL5.CONF file contains configuration options for the installer. | 103 The RHEL5.CONF file contains configuration options for the installer. Here's |
90 <pre> | 104 an example config file from the CentOS install docs: |
91 FIXME: example conf file | 105 |
92 </pre> | 106 <pre> |
107 DASD=200 | |
108 HOSTNAME=client.z900.example.com | |
109 NETTYPE=ctc | |
110 IPADDR=192.168.0.10 | |
111 SUBCHANNELS=0.0.0150,0.0.0151 | |
112 NETWORK=192.168.0.0 | |
113 NETMASK=255.255.255.0 | |
114 SEARCHDNS=example.com:dns.example.com:z900.example.com | |
115 BROADCAST=192.168.0.255 | |
116 GATEWAY=192.168.0.1 | |
117 DNS=192.168.0.254 | |
118 MTU=1492 | |
119 CTCPROT=0 | |
120 </pre> | |
121 | |
122 You will want to change the DASD to list all your DASDs that Linux should | |
123 bring online. The HOSTNAME, IPADDR, NETWORK, NETMASK, SEARCHDNS, BROADCAST, | |
124 GATEWAY, DNS, and MTU need to be changed to match your network config. And | |
125 chances are that you'll want to change NETTYPE to qeth, or something other | |
126 than ctc (possible values are: ctc, qeth, iucv, lcs). Go read the | |
127 <a href="http://www.centos.org/docs/4/4.5/rhel-ig-s390-multi-en-4/ch-parmfiles.html">CentOS documentation</a> | |
128 to figure out what are all the options you can use in the config file. | |
93 </p> | 129 </p> |
94 | 130 |
95 <p> | 131 <p> |
96 Now, it is time to run the REXX script. Just type <pre>redhat</pre> and | 132 Now, it is time to run the REXX script. Just type <pre>redhat</pre> and |
97 press enter. You'll see the reader getting purged, and then three files | 133 press enter. You'll see the reader getting purged, and then three files |
98 getting punched:<br/> | 134 getting punched:<br/> |
99 <img src="zvm-centos4/install2.png" alt="Files punched to RDR" /> | 135 <img src="zvm-centos4/install2.png" alt="Files punched to RDR" /> |
100 </p> | 136 </p> |
101 | 137 |
102 <p> | 138 <p> |
103 FIXME: do I need to IPL by hand?<br/> | |
104 Shortly after, you'll see the kernel banner displayed. Since I installed | 139 Shortly after, you'll see the kernel banner displayed. Since I installed |
105 CentOS 4.x, the kernel version is 2.6.9. If you use 5.x, the version will be | 140 CentOS 4.x, the kernel version is 2.6.9. If you use 5.x, the version will be |
106 obviously different.<br/> | 141 obviously different.<br/> |
107 <img src="zvm-centos4/install3.png" alt="Kernel banner" /> | 142 <img src="zvm-centos4/install3.png" alt="Kernel banner" /> |
108 </p> | 143 </p> |
109 | 144 |
110 <p> | 145 <p> |
111 After a few screen-fulls of output, you should be prompted for ... FIXME. | |
112 FIXME: Include a screenshot. | |
113 </p> | |
114 | |
115 <p> | |
116 Some more scrolling later, you'll see a message prompting you to telnet or | 146 Some more scrolling later, you'll see a message prompting you to telnet or |
117 ssh into the system, and continue with the installation process:<br/> | 147 ssh into the system, and continue with the installation process:<br/> |
118 <img src="zvm-centos4/install5.png" alt="SSH/telnet prompt" /><br/> | 148 <img src="zvm-centos4/install5.png" alt="SSH/telnet prompt" /><br/> |
119 SSH or telnet in as root. The password is the empty string, so when | 149 SSH or telnet in as root. The password is the empty string, so when |
120 prompted, simply press the enter key.<br/> | 150 prompted for it, simply press the enter key.<br/> |
121 <br/> | 151 <br/> |
122 At this point, the install process is much like network install on any other | 152 At this point, the install process is much like network install on any other |
123 architecture. | 153 architecture. |
124 </p> | 154 </p> |
125 | 155 |
126 <p> | 156 <p> |
127 The regular CentOS installer will kicks. It'll prompt you for the type of | 157 The regular CentOS installer will kick in. It'll prompt you for the type of |
128 install (http, ftp, nfs - FIXME: verify + image). I went with HTTP.<br/> | 158 install (http, ftp, nfs). I went with HTTP.<br/> |
129 <br/> | 159 <br/> |
130 The next screen prompts you for the hostname and path on the HTTP server | 160 The next screen prompts you for the hostname and path on the HTTP server |
131 that contains the CentOS packages:<br/> | 161 that contains the CentOS packages:<br/> |
132 <img src="zvm-centos4/install7.png" alt="SSH/telnet prompt" /><br/> | 162 <img src="zvm-centos4/install7.png" alt="SSH/telnet prompt" /><br/> |
133 Right after, the installer tries to grab stage 2 of itself: | 163 Right after, the installer tries to grab stage 2 of itself: |
134 <img src="zvm-centos4/install8.png" alt="Stage2 being downloaded" /><br/> | 164 <img src="zvm-centos4/install8.png" alt="Stage2 being downloaded" /><br/> |
135 </p> | 165 </p> |
136 | 166 |
137 <p> | 167 <p> |
138 FIXME: partitions | 168 Partition your DASDs whichever way you want. It's a good idea to use LVM, |
169 since DASDs are limited to about 2.2GB (3338 cylinders). On my setup, I made | |
170 /home a logical volume of 5 3390-3 DASDs. | |
139 </p> | 171 </p> |
140 | 172 |
141 <p> | 173 <p> |
142 Most of the questions the installer normally asks you get answered by the | 174 Most of the questions the installer normally asks you get answered by the |
143 options in the RHEL5.CONF file (FIXME: rename). And before long, you'll see | 175 options in the RHEL5.CONF file. And before long, you'll see the install |
144 the install process doing its thing:<br/> | 176 process doing its thing:<br/> |
145 <img src="zvm-centos4/install9.png" alt="Install!" /> | 177 <img src="zvm-centos4/install9.png" alt="Install!" /> |
146 </p> | 178 </p> |
147 | 179 |
148 <p> | 180 <p> |
149 Although this howto was aimed at 31-bit CentOS...<br/> | 181 Although this howto was aimed at 31-bit CentOS...<br/> |
150 <ul> | 182 <ul> |
151 <li> installing a 64-bit version should be the same process...just | 183 <li> installing a 64-bit version should be the same process...just |
152 use the <i>s390x</i> directories on the mirror instead of | 184 use the <i>s390x</i> directories on the mirror instead of |
153 <i>s390</i>.</li> | 185 <i>s390</i>.</li> |
154 <li> installing RHEL 4.x should be the same process; just point the | 186 <li> installing RHEL 4.x should be the same process; just grab the |
155 installer at a server with RHEL4 RPMS.</li> | 187 right kernel/initrd files, and then point the installer at a server |
188 with RHEL4 RPMS.</li> | |
156 </ul> | 189 </ul> |
157 </p> | 190 </p> |
158 | 191 |
159 <h2>Final Note</h2> | 192 <h2>Final Note</h2> |
160 <p> | 193 <p> |