Saminnet-Search Article Wiki Forum Piwigo SNS Cloud vtiger Sugar
z/VM New user

  • Data-Articles
    • Labuanbajo2 (288) Sat09,12:10pm

      Hari pertamaSailingKomodo, kapal kami menuju ke pulau Kanawa. Bukan Kenawa yang di Sumba itu, ya. Karena biasanya sering tertukar. Pulau Kanawa sendiri sebuah pulau kecil yang memiliki dermaga dan sebuah resort. Kalian bisa menginap di resort ini dengan fasilitas antar jemput dari pelabuhan Labuan Bajo-Kanawa. Bisa dilihat paketnya di situs-situs penjualan reservasi hotel. Kami akan mampir untuksn

      Read More...

z/VM New user

Create a new Linux guest (SLES 11) without the z/VM dirmaint tool

composed by Daniel Schwarzentruber, IBM Switzerland

In this section you'll find a step by step description how to install a Linux guest.
The option DIRMAINT - a tool which helps to manage the minidisks - is disabled by default.
So we've to manage the minidisk resources manually i.e. creating a diskmap, check gaps and overlaps.

It's only a part of several tasks installing and running z/VM and Linux on system z.
To learn more about z/VM and Linux on system z, please take a look at the appropriate redbooks below.

Introduction to the New Mainframe: z/VM Basics (SG24-7316-00)
The Virtualization Cookbook for SLES 11 SP1 (SG24-7931-00)

0. Overview installing a Linux guest - the essential steps

After gaining the first experience working with z/VM save time and keep the overview using cheat slips like belowツ;-)

  ==> att 1110-1111 *			/* attach the volumes to MAINT */
  ==> cpformat 1110-1111 as perm	/* format the volumes as perm */
  ==> det 1110-1111			/* detach the volumes from MAINT */
  ==> att 1110-1111 system		/* attach the volumes to system */
  ==> x user direct c			/* create an user profile and append the minidisk's to the USER's $ALLOC$ entry */
  ==> diskmap user			/* create the current diskmap layout */
  ==> all /gap/|/overlap		/* check the gap and overlaps */	
  ==> directxa user			/* compile and save the user diskmap */
  ==> vmlink autolog1 191 (w    	/* xedit the PROFILE EXEC */
  ==> cp set vswitch vsw1 grant LXxxxx	/* grant access to the vswitch, network immediately */
  ==> vmlink lnxmaint 192 (w    	/* copy/create a parm file */
  LOGON LXxxxx				/* logon the new user on the 3270 console */
  ==> q osa				/* check the connections */	
  ==> q da				/* check if the allocated DASDs and VDISKs 300, 301 are available */
  ==> sles11				/* start the installation EXEC script */		
  Install the Linux			/* You'll need a java enabled browser or a vncviewer */

1. Logon as MAINT

Logon into the x3270 console as MAINT.

First, find out the current z/VM release:

==> q cplevel
z/VM Version 6 Release 1.0, service level 0901 (64-bit)
Generated at 09/11/09 16:51:48 CES

In the following installation we're working with two DASDs 3390 model 9.

2. Query the free devices or just that will be used for the new linux guest

==> q dasd free
DASD 1008 FREE    , DASD 1009 FREE    , DASD 100A FREE    , DASD 100B FREE
DASD 100C FREE    , DASD 100D FREE    , DASD 100E FREE    , DASD 100F FREE
DASD 1010 FREE    , DASD 1011 FREE    , DASD 1012 FREE    , DASD 1013 FREE
DASD 1014 FREE    , DASD 1015 FREE    , DASD 1016 FREE    , DASD 1046 FREE
DASD 1047 FREE    , DASD 1048 FREE    , DASD 1049 FREE    , DASD 104A FREE
DASD 104B FREE    , DASD 1100 FREE    , DASD 1101 FREE    , DASD 1102 FREE
DASD 1103 FREE    , DASD 1104 FREE    , DASD 1105 FREE    , DASD 1106 FREE
DASD 1107 FREE    , DASD 1108 FREE    , DASD 1109 FREE    , DASD 110A FREE
DASD 110B FREE    , DASD 110C FREE    , DASD 110D FREE    , DASD 110E FREE
DASD 110F FREE    , DASD 1110 FREE    , DASD 1111 FREE    , DASD 1120 FREE
DASD 1121 FREE    , DASD 1122 FREE    , DASD 1123 FREE    , DASD 1124 FREE
DASD 1125 FREE    , DASD 1126 FREE    , DASD 1127 FREE    , DASD 1128 FREE
DASD 1129 FREE    , DASD 112A FREE    , DASD 112B FREE    , DASD 112C FREE
DASD 112D FREE    , DASD 112E FREE    , DASD 112F FREE    , DASD 1130 FREE
DASD 1131 FREE    , DASD 1132 TM1112  , DASD 1133 TM1113
Ready; T=0.01/0.01 09:46:53

Or you could query the appropriate devices:

==> q 1110 1111
DASD 1110 FREE    , DASD 1111 FREE
Ready; T=0.01/0.01 09:47:05

3. Attach the two volumes to MAINT and format them

==> att 1110 1111 *
DASD 1110 ATTACHED TO MAINT 1110 WITH DEVCTL PAV BASE
DASD 1111 ATTACHED TO MAINT 1111 WITH DEVCTL PAV BASE
Ready; T=0.01/0.01 09:51:11
==> cpformat 1110-1111 as perm
Format the following DASD:
TargetID Tdev OwnerID  Odev Dtype Vol-ID Rdev   StartLoc       Size
MAINT    1110 MAINT    1110 3390         1110          0      10017
TargetID Tdev OwnerID  Odev Dtype Vol-ID Rdev   StartLoc       Size
MAINT    1111 MAINT    1111 3390         1111          0      10017
 
WARNING - this will destroy data!
ARE YOU SURE you want to format the DASD as PERM space (y/n)?

y

ICK00002I ICKDSF PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
DASD successfully formatted:  TM1110 TM1111
1110-1111 DETACHED
DASD 1110 ATTACHED TO MAINT 1110 WITH DEVCTL PAV BASE
DASD 1111 ATTACHED TO MAINT 1111 WITH DEVCTL PAV BASE
 
DASD status after:
TargetID Tdev OwnerID  Odev Dtype Vol-ID Rdev   StartLoc       Size
MAINT    1110 MAINT    1110 3390  TM1110 1110          0      10017
MAINT    1111 MAINT    1111 3390  TM1111 1111          0      10017
Ready; T=0.34/0.73 10:00:51

4. Detach the volumes from the MAINT and attach them to the system

Now they're available to be used as minidisks.
Remark: The 窶朸ser_Volume_Include TM* SL* SR*窶 statement within the SYSTEM CONFIG will enable the devices with the matched patterns after a reipl.
Detach the two volumes from the MAINT:

==> det 1110-1111
1110-1111 DETACHED
Ready; T=0.01/0.01 10:02:52

Attach the the two volumes to the system to make them available for the definedツCMSツuser and the installation task.

==> att 1110-1111 system
DASD 1110 ATTACHED TO SYSTEM TM1110 PAV BASE
DASD 1111 ATTACHED TO SYSTEM TM1111 PAV BASE
Ready; T=0.01/0.01 10:03:14

Hint and remark: To remove volumes from the system you've to add a 'from' to the command:

==> det 2500 from system

5. Define a new Linux guest

After preparing the DASDs for our new guest we create a new user ID, a newツCMSツuser editing the USER DIRECT which is located on Disk c.

==> q disk
LABEL  VDEV M  STAT   CYL TYPE BLKSZ   FILES  BLKS USED-(%) BLKS LEFT  BLK TOTAL
MNT191 191  A   R/W   175 3390 4096       35        273-01      31227      31500
MNT5E5 5E5  B   R/W     9 3390 4096      129       1207-75        413       1620
MNT2CC 2CC  C   R/W     5 3390 4096       60        599-67        301        900
MNT51D 51D  D   R/W    26 3390 4096      303       1379-29       3301       4680
ZOS00  391  Q   R/W    10 3390 4096        1          8-01       1792       1800
MNT190 190  S   R/O   100 3390 4096      694      15028-83       2972      18000
MNT19E 19E  Y/S R/O   250 3390 4096     1021      28254-63      16746      45000
MNT19D 19D  Z/Z R/O   146 3390 1024    15472      58502-81      13768      72270
Ready; T=0.01/0.01 17:02:01
==> filel * * c
MAINT    FILELIST A0  V 169  Trunc=169 Size=60 Line=1 Col=1 Alt=0
Cmd   Filename Filetype Fm Format Lrecl    Records     Blocks   Date     Time
      USER     DIRECT   C1 F         80       2245         44  3/30/12 10:50:23
      USER     DIREWRKS C1 F         80       2110         42  3/28/12 17:25:45
      IPWIZARD $FILE$   C1 V         80        150          3  3/28/12 10:54:35
      $LOAD$   LOG      C1 F         80        110          3  3/27/12 13:37:44
      USER     DIREWRK2 C1 F         80       2110         42  3/27/12 11:18:32

To edit the USER DIRECT use an x on the same row or type the command xedit user direct c.

 MAINT    FILELIST A0  V 169  Trunc=169 Size=60 Line=1 Col=1 Alt=0
Cmd   Filename Filetype Fm Format Lrecl    Records     Blocks   Date     Time
x     USER     DIRECT   C1 F         80       2245         44  3/30/12 10:50:23

orツ

xedit user direct c

6. Create a new entry in the USER DIRECT

Go to the bottom of the file typing 'bot' on the top of the file

 USER     DIRECT   C1  F 80  Trunc=72 Size=2245 Line=0 Col=1 Alt=0
==> bot

      |...+....1....+....2....+....3....+....4....+....5....+....6....+....7.
00000 * * * Top of File * * * 
00001 ***************************************************************
00002 *  z/VM 6.1.0  SYSTEM DIRECTORY                               *
00003 ***************************************************************
00004 *                                                             *
00005 *  THE ADDRESSES 123 THROUGH 133 ARE VIRTUAL ADDRESSES.       *
00006 *                                                             *
00007 *  NOTES:                                                     *
00008 *  REMEMBER THESE ARE ONLY VIRTUAL ADDRESSES NOT REAL         *
00009 *  ADDRESSES, SO THERE IS NO NEED TO CHANGE THEM TO MATCH     *
00010 *  YOUR HARDWARE ADDRESSES.                                   *
00011 *                                                             *
00012 *                                                             *
00013 ***************************************************************
00014 *                                                             *
00015 *  FOR A DESCRIPTION OF DIRECTORY STATEMENTS SEE:             *
00016 *     VM ENTERPRISE SYSTEM ARCHITECTURE                       *
00017 *     PLANNING AND ADMINISTRATION MANUAL.                     *
00018 *                                                             *
00019 ***************************************************************

and you will be placed at the end of the file.

 USER     DIRECT   C1  F 80  Trunc=72 Size=2245 Line=2245 Col=1 Alt=0
==>
02244 MDISK 101 3390 1 10016 TM1113 MR LNX4VM LNX4VM LNX4VM
      |...+....1....+....2....+....3....+....4....+....5....+....6....+....7.> 
02245 *
02246 * * * End of File * * * 

Press PF7 to go backward窶ヲ.

 USER     DIRECT   C1  F 80  Trunc=72 Size=2245 Line=2207 Col=1 Alt=0
====>
02206 MDISK 192 3390 21 300 TM111A MR ALL  WRITE MULTIPLE
      |...+....1....+....2....+....3....+....4....+....5....+....6....+....7.> 
02207 *
02208 ******************************
02209 *
02210 USER S11CLONE S11CLONE 512M 1G BDEG
02211 INCLUDE LNXDFLT
02212 * this links 192 as 191 from LNXMAINT
02213 OPTION LNKNOPAS APPLMON
02214 IPL 100
02215 MDISK 100 3390 1 10016 TM111B MR LNX4VM LNX4VM LNX4VM
02216 MDISK 101 3390 1 10016 TM111C MR LNX4VM LNX4VM LNX4VM
02217 *
02218 ******************************
02219 *
02220 USER S11GOLD S11GOLD 512M 1G G
02221 INCLUDE LNXDFLT
02222 OPTION LNKNOPAS APPLMON
02223
02224 MDISK 100 3390 1 10016 TM1118 MR LNX4VM LNX4VM LNX4VM
02225 MDISK 101 3390 1 10016 TM1119 MR LNX4VM LNX4VM LNX4VM
02226 *
02227 ******************************
02228 *
02229 USER S11UWED S11UWED 1G 1G BDEG
02230 INCLUDE LNXDFLT
02231 OPTION LNKNOPAS APPLMON
02232 IPL 100
02233 MDISK 100 3390 1 10016 TM1114 MR LNX4VM LNX4VM LNX4VM
02234 MDISK 101 3390 1 10016 TM1115 MR LNX4VM LNX4VM LNX4VM
02235 MDISK 102 3390 1 10016 TM1116 MR LNX4VM LNX4VM LNX4VM
02236 MDISK 103 3390 1 10016 TM1117 MR LNX4VM LNX4VM LNX4VM
02237 ******************************
02238 *
02239 USER S11KLON1 S11KLON1 512M 512M G
02240 INCLUDE LNXDFLT
02241 OPTION LNKNOPAS APPLMON
02242
02243 MDISK 100 3390 1 10016 TM1112 MR LNX4VM LNX4VM LNX4VM
02244 MDISK 101 3390 1 10016 TM1113 MR LNX4VM LNX4VM LNX4VM
1=HLP 2=SPLJOI 3=END 4=TOP 5=? 6=BOT 7=BCK 8=FWD 9=SAVE 10=RI20 11=LE20 12=QUIT

and type a slash "/" i.e. at line 02236 press Return

02235 MDISK 102 3390 1 10016 TM1116 MR LNX4VM LNX4VM LNX4VM
/2236 MDISK 103 3390 1 10016 TM1117 MR LNX4VM LNX4VM LNX4VM
02237 ******************************
02238 *
02239 USER S11KLON1 S11KLON1 512M 512M G

So you determined the line 02235 as the top line

 USER     DIRECT   C1  F 80  Trunc=72 Size=2245 Line=2236 Col=1 Alt=0
====>
02235 MDISK 102 3390 1 10016 TM1116 MR LNX4VM LNX4VM LNX4VM
      |...+....1....+....2....+....3....+....4....+....5....+....6....+....7.> 
02236 MDISK 103 3390 1 10016 TM1117 MR LNX4VM LNX4VM LNX4VM
02237 ******************************
02238 *
02239 USER S11KLON1 S11KLON1 512M 512M G
02240 INCLUDE LNXDFLT
02241 OPTION LNKNOPAS APPLMON
02242
02243 MDISK 100 3390 1 10016 TM1112 MR LNX4VM LNX4VM LNX4VM
02244 MDISK 101 3390 1 10016 TM1113 MR LNX4VM LNX4VM LNX4VM
02245 *
02246 * * * End of File * * * 

To create the new user we copy the above user S11KLON1 typing cc at 02237, cc at 02245 and p at 02246.
After pressing Return you copied the lines.

 USER     DIRECT   C1  F 80  Trunc=72 Size=2245 Line=2237 Col=1 Alt=0
====>
02236 MDISK 103 3390 1 10016 TM1117 MR LNX4VM LNX4VM LNX4VM
      |...+....1....+....2....+....3....+....4....+....5....+....6....+....7.> 
cc237 ******************************
02238 *
02239 USER S11KLON1 S11KLON1 512M 512M G
02240 INCLUDE LNXDFLT
02241 OPTION LNKNOPAS APPLMON
02242
02243 MDISK 100 3390 1 10016 TM1112 MR LNX4VM LNX4VM LNX4VM
02244 MDISK 101 3390 1 10016 TM1113 MR LNX4VM LNX4VM LNX4VM
cc245 *
p2246 * * * End of File * * * 

Modify the entries窶ヲ

02244 MDISK 101 3390 1 10016 TM1113 MR LNX4VM LNX4VM LNX4VM
02245 *
02246 ******************************
02247 *
02248 USER LXMARC01 LXMARC01 512M 512M G
02249 INCLUDE LNXDFLT
02250 OPTION LNKNOPAS APPLMON
02251
02252 MDISK 100 3390 1 10016 TM1110 MR LNX4VM LNX4VM LNX4VM
02253 MDISK 101 3390 1 10016 TM1111 MR LNX4VM LNX4VM LNX4VM
02254 *
02255 * * * End of File * * * 

Go to the top of the file

==> top

and entry a search pattern leading with a slash "/".ツ
Sometimes it's faster to find a pattern if you extend it. In this example we're looking for the user $alloc$.
So we're taking the last character of "user" - the "r" followed by the username $alloc

==> /r $alloc
 USER     DIRECT   C1  F 80  Trunc=72 Size=2254 Line=100 Col=1 A
====>
00099 *
      |...+....1....+....2....+....3....+....4....+....5....+...
00100 USER $ALLOC$  NOLOG
00101  MDISK A01 3390 000 001 UV101B R
00102  MDISK A02 3390 000 001 UV101E R
00103  MDISK A03 3390 000 001 UV101F R
00104  MDISK A04 3390 000 001 TM111B R
00105  MDISK A05 3390 000 001 TM111C R
00106  MDISK A06 3390 000 001 TM1118 R
00107  MDISK A07 3390 000 001 TM1119 R
00108  MDISK A08 3390 000 001 TM1114 R
00109  MDISK A09 3390 000 001 TM1115 R
00110  MDISK A10 3390 000 001 TM1116 R
00111  MDISK A11 3390 000 001 TM1117 R
0113  MDISK A13 3390 000 001 TM1113 R
0114  MDISK A13 3390 000 001 TM1113 R

To duplicate a line we could enter a quotation mark. In case to duplicate two lines we enter a double quotation mark at the beginnen and the end of the partツ

""112  MDISK A12 3390 000 001 TM1112 R
""113  MDISK A13 3390 000 001 TM1113 R

and press return.

00112  MDISK A12 3390 000 001 TM1112 R
00113  MDISK A13 3390 000 001 TM1113 R
00114  MDISK A12 3390 000 001 TM1112 R
00115  MDISK A13 3390 000 001 TM1113 R

Modifiy the last two lines窶ヲ

00112  MDISK A12 3390 000 001 TM1112 R
00113  MDISK A13 3390 000 001 TM1113 R
00114  MDISK A14 3390 000 001 TM1110 R
00115  MDISK A15 3390 000 001 TM1111 R

The reason why we do this is to avoid showing up the cylinder 0 in the user diskmap as a gap.

Save the changes

==> file

7. Create/update and check the user diskmap

==> diskmap user
The minidisks with the END option specified in this directory will not be includ
ed in the following DISKMAP file.
 
The DEVNO defined minidisks specified in this directory will not be included in
the following DISKMAP file.
 
File USER DISKMAP A has been created.
Ready; T=0.04/0.04 18:00:58
==> x user diskmap

First turn off the prefix areaツ

==> prefix off

Search overlaps with the / subcommand

==> /overlap

You should see the message "Target not found". So no minidisks are overlapping each other.

 USER     DISKMAP  A1  F 80  Trunc=80 Size=389 Line=0 Col=1 Alt=0
==> /OVERLAP
Target not found
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7..   
* * * Top of File * * * 

------------------------------------------------------------------------

VOLUME   USERID      CUU   DEVTYPE      START         END        SIZE
                                            0         500         501
$$$$$$   DATAMOVE    5F0     3380       00501       00501       00001
         DATAMOVE    5FF     3380       00502       00502       00001

Now search the gaps with the known / subcommand.

==> /GAP

To see the right part of the screen, press the PF11 key. Go back to the left side with PF10.
Three GAPs should be listed.
- 501 cylinders on the $$$$$$ volume
- 1 cylinder on the $$$LNX volume
- 1 cylinder on the disks 191 and 192 used for LNXMAINT on the volume TM111A (Label "TM111A" in our example).

 USER     DISKMAP  A1  F 80  Trunc=80 Size=389 Line=5 Col=1 Alt=0
====>
VOLUME   USERID      CUU   DEVTYPE      START         END        SIZE
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7..   
                                            0         500         501	GAP
$$$$$$   DATAMOVE    5F0     3380       00501       00501       00001
         DATAMOVE    5FF     3380       00502       00502       00001

------------------------------------------------------------------------

VOLUME   USERID      CUU   DEVTYPE      START         END        SIZE
                                            0           0           1	GAP
$$$LNX   ZVMMAPLX    150     3390       00001       03338       03338

------------------------------------------------------------------------

VOLUME   USERID      CUU   DEVTYPE      START         END        SIZE
                                            0           0           1	GAP
TM111A   LNXMAINT    191     3390       00001       00020       00020
         LNXMAINT    192     3390       00021       00320       00300

There is another way to check the gaps and overlaps using the ALL subcommand with the logical OR operator "|" in one step.

==> all /gap/|/overlap
 USER     DISKMAP  A1  F 80  Trunc=80 Size=389 Line=5 Col=1 Alt=0
====>
00001 --------------------  4  line(s) not displayed --------------------
      |...+....1....+....2....+....3....+....4....+....5....+....6....+....7..
00005                                             0         500         501
00006 --------------------  6  line(s) not displayed --------------------
00012                                             0           0           1
00013 --------------------  5  line(s) not displayed --------------------
00018                                             0           0           1
00019 --------------------  371  line(s) not displayed --------------------

Quit without saving by pressing PF3, ===竍 qq oder ===竍 quit

8. DIRECTXA USER

Activate the changes with the directxa command which compiles the user direct in a specific file format.

==> directxa user
z/VM USER DIRECTORY CREATION PROGRAM - VERSION 6 RELEASE 1.0
EOJ DIRECTORY UPDATED AND ON LINE
User directory occupies 46 disk pages
Ready; T=0.01/0.01 18:06:26

9. Adding the new guest to AUTOLOG1's PROFILE EXEC

The new guest needs access (grant) to the VSWITCH.
As MAINT link and access the AUTOLOG1 191 disk and modify the PROFILE EXEC.
Then connect the new guest manually to the VSWITCH because the changes of the profile exec will take effect not till the next IPL.

==> vmlink autolog1 191 (w
AUTOLOG1 191 linked M as 0120 file mode X
Ready; T=0.01/0.01 09:58:43

Check the linked disk with a query disk.

==> q disk
q disk
LABEL  VDEV M  STAT   CYL TYPE BLKSZ   FILES  BLKS USED-(%) BLKS LEFT  BLK TOTAL
MNT191 191  A   R/W   175 3390 4096       35        273-01      31227      31500
MNT5E5 5E5  B   R/W     9 3390 4096      129       1207-75        413       1620
MNT2CC 2CC  C   R/W     5 3390 4096       60        600-67        300        900
MNT51D 51D  D   R/W    26 3390 4096      303       1379-29       3301       4680
ZOS00  391  Q   R/W    10 3390 4096        1          8-01       1792       1800
MNT190 190  S   R/O   100 3390 4096      694      15028-83       2972      18000
AUT191 120  X   R/W     1 3390 4096        4         11-06        169        180
MNT19E 19E  Y/S R/O   250 3390 4096     1021      28254-63      16746      45000
MNT19D 19D  Z/Z R/O   146 3390 1024    15472      58502-81      13768      72270
Ready; T=0.01/0.01 09:58:57
==> x profile exec x

      |...+....1....+....2....+....3....+....4....+....5....+....
00000 * * * Top of File * * * 
00001 /***************************/
00002 /*  Autolog1 Profile Exec  */
00003 /***************************/
00004 'CP XAUTOLOG TCPIP'
00005 'CP XAUTOLOG VMSERVS'
00006 'CP XAUTOLOG VMSERVU'
00007 'CP XAUTOLOG VMSERVR'
00008 'CP XAUTOLOG DTCVSW1'
00009 'CP XAUTOLOG DTCVSW2'
00010 /* 'CP XAUTOLOG DIRMAINT' */
00011 /* 'CP XAUTOLOG DATAMOVE' */
00012 'CP SET pf12 ret'
00013 'CP SET mdc stor 0m 128m'
00014 'CP SET mdc xstore 0m 0m'
00015 'CP SET srm storbuf 300% 250% 200%'
00016 'CP SET signal shutdown 300'
00017 /* Grant access to VSWITCH for each Linux user ID */
00018 'cp set vswitch vsw1 grant S11CLONE'
00019 'cp set vswitch vsw1 grant S11GOLD'
00020 'cp set vswitch vsw1 grant S11UWED'
00021 'cp set vswitch vsw1 grant S11KLON1'
00022 'cp set vswitch vsw1 grant LXMARC01'
00023 /* XAUTOLOG each Linux user that should be started */
00024 'cp xautolog S11CLONE'
00025 'cp logoff'
00026 * * * End of File * * * 
==> file

Exit and connect the new guest manually to the VSWITCH.

==> cp set vswitch vsw1 grant LXMARC01
Command complete

To spare and optimize resources release and detach the disk of AUTOLOG1 (releasing is like an umount in Unix, detaching is similar to removing a disk)

==> rel x (det
DASD 0120 DETACHED

10. Create a parameter file for the new Linux guest

For each Linux guest you've to create a parameter file which is used for cloning or installing this Linux guest.
The parameter files are located on the disk 192 of the LNXMAINT.
As MAINT link and access the LNXMAINT 192 disk and create the new paramater file LXMARC01 PARM-S11.

==> vmlink lnxmaint 192 (w
LNXMAINT 192 linked M as 0120 file mode X

List the content of the LNXMAINT's 192 disk.

==> Filel * * x

 MAINT    FILELIST A0  V 169  Trunc=169 Size=12 Line=1 Col=1 Alt=0
Cmd   Filename Filetype Fm Format Lrecl    Records     Blocks   Date     Time
      S11KLON1 PARM-S11 X1 V         65         11          1  3/29/12 12:03:16
      S11UWED  PARM-S11 X1 V         65         11          1  3/28/12 21:15:12
      S11GOLD  PARM-S11 X1 V         65         11          1  3/28/12 15:17:14
      S11CLONE PARM-S11 X1 V         65         11          1  3/26/12  7:59:38
      SLES11   INITRD   X1 F         80     166542       3253  3/26/12  7:49:11
      SLES11   KERNEL   X1 F         80      86071       1390  3/26/12  7:48:55
      CHPW610  XEDIT    X1 V         72        190          3  3/26/12  7:38:42
      CPFORMAT EXEC     X1 V         79        252          3  3/26/12  7:38:42
      PROFILE  EXEC     X1 V         63         17          1  3/26/12  7:38:42
      SAMPLE   PARM-S11 X1 V         80         11          1  3/26/12  7:38:42
      SLES11   EXEC     X1 V         68         10          1  3/26/12  7:38:42
      SWAPGEN  EXEC     X1 V         72        467          6  3/26/12  7:38:42

Copy an available paramater file and edit it.

 MAINT    FILELIST A0  V 169  Trunc=169 Size=12 Line=1 Col=1 Alt=0
Cmd   Filename Filetype Fm Format Lrecl    Records     Blocks   Date     Time
      S11KLON1 PARM-S11 X1 V         65         11          1  3/29/12 12:03:16
      S11UWED  PARM-S11 X1 V         65         11          1  3/28/12 21:15:12
      S11GOLD  PARM-S11 X1 V         65         11          1  3/28/12 15:17:14
copy / LXMARC01 = =-S11 X1 V         65         11          1  3/26/12  7:59:38
      SLES11   INITRD   X1 F         80     166542       3253  3/26/12  7:49:11
      SLES11   KERNEL   X1 F         80      86071       1390  3/26/12  7:48:55
      CHPW610  XEDIT    X1 V         72        190          3  3/26/12  7:38:42
      CPFORMAT EXEC     X1 V         79        252          3  3/26/12  7:38:42
      PROFILE  EXEC     X1 V         63         17          1  3/26/12  7:38:42
      SAMPLE   PARM-S11 X1 V         80         11          1  3/26/12  7:38:42
      SLES11   EXEC     X1 V         68         10          1  3/26/12  7:38:42
      SWAPGEN  EXEC     X1 V         72        467          6  3/26/12  7:38:42

Refresh the view pressing

==> PF2
</files>

Edit now the new paramter file placing an x in front of the line and pressing Return.\\

<file>
 MAINT    FILELIST A0  V 169  Trunc=169 Size=13 Line=1 Col=1 Alt=24
Cmd   Filename Filetype Fm Format Lrecl    Records     Blocks   Date     Time
x     LXMARC01 PARM-S11 X1 V         65         11          1  4/02/12 10:24:21
      S11KLON1 PARM-S11 X1 V         65         11          1  3/29/12 12:03:16
      S11UWED  PARM-S11 X1 V         65         11          1  3/28/12 21:15:12
      S11GOLD  PARM-S11 X1 V         65         11          1  3/28/12 15:17:14
====>

      |...+....1....+....2....+....3....+....4....+....5....+....6....+...
00000 * * * Top of File * * * 
00001 ramdisk_size=65536 root=/dev/ram1 ro init=/linuxrc TERM=dumb
00002 HostIP=10.29.64.114 Hostname=s0114.intra064.vm.el.campus.intern
00003 Gateway=10.29.64.1 Netmask=255.255.255.0
00004 Broadcast=10.29.64.255 Layer2=0
00005 ReadChannel=0.0.0600  WriteChannel=0.0.0601  DataChannel=0.0.0602
00006 Nameserver=10.31.0.23
00007 portname=port0
00008 portno=0
00009 Install=nfs://10.31.0.39/data/ISOs/system_z/suse/dvd1
00010 UseVNC=1  VNCPassword=password
00011 InstNetDev=osa OsaInterface=qdio OsaMedium=eth Manual=0
00012 * * * End of File * * * 

Save and quit the paramater file:

==> file
==> PF3

Release and detach the disk of LNXMAINTツ

==> rel x (det
DASD 0120 DETACHED

11. Logon to LXMARC01

LOGON LXMARC01
NIC 0600 is created; devices 0600-0602 defined
z/VM Version 6 Release 1.0, Service Level 0901 (64-bit), 
built on IBM Virtualization Technology
There is no logmsg data
FILES:   NO RDR,   NO PRT,   NO PUN
LOGON AT 10:38:06 CES MONDAY 04/02/12
z/VM V6.1.0    2012-03-19 07:32

Press RETURN the this message appears.

DMSACP723I A (191) R/O
DMSACP723I C (592) R/O
DIAG swap disk defined at virtual address 300 (64989 4K pages of swap space)
DIAG swap disk defined at virtual address 301 (129981 4K pages of swap space)
Do you want to IPL Linux from minidisk 100? y/n

==> n
Ready; T=0.01/0.04 10:39:35

Verify that the new Linux guest has a NIC at addresses 600-602:

==> q osa
OSA  0600 ON NIC  0600  UNIT 000 SUBCHANNEL = 0002
     0600 DEVTYPE OSA         CHPID 02 OSD
     0600 MAC 02-00-01-00-00-06 CURRENT
     0600 QDIO-ELIGIBLE       QIOASSIST-ELIGIBLE
OSA  0601 ON NIC  0600  UNIT 001 SUBCHANNEL = 0003
     0601 DEVTYPE OSA         CHPID 02 OSD
     0601 QDIO-ELIGIBLE       QIOASSIST-ELIGIBLE
OSA  0602 ON NIC  0600  UNIT 002 SUBCHANNEL = 0004
     0602 DEVTYPE OSA         CHPID 02 OSD
     0602 QDIO-ELIGIBLE       QIOASSIST-ELIGIBLE
Ready; T=0.01/0.01 10:40:42

Verify that the minidisks 100, 101 and the VDISKs at 300, 301 are writeable:

==> q da
DASD 0100 3390 TM1110 R/W      10016 CYL ON DASD  1110 SUBCHANNEL = 0000
DASD 0101 3390 TM1111 R/W      10016 CYL ON DASD  1111 SUBCHANNEL = 0001
DASD 0190 3390 UV101B R/O        107 CYL ON DASD  101B SUBCHANNEL = 0009
DASD 0191 3390 TM111A R/O        300 CYL ON DASD  111A SUBCHANNEL = 000C
DASD 019D 3390 UV101E R/O        146 CYL ON DASD  101E SUBCHANNEL = 000A
DASD 019E 3390 UV101E R/O        250 CYL ON DASD  101E SUBCHANNEL = 000B
DASD 0300 9336 (VDSK) R/W     524288 BLK ON DASD  VDSK SUBCHANNEL = 000E
DASD 0301 9336 (VDSK) R/W    1048576 BLK ON DASD  VDSK SUBCHANNEL = 000F
DASD 0592 3390 UV101F R/O         70 CYL ON DASD  101F SUBCHANNEL = 000D
Ready; T=0.01/0.01 10:42:59

You also could verify it using the addresses directly

==> q 100-101
DASD 0100 3390 TM1110 R/W      10016 CYL ON DASD  1110 SUBCHANNEL = 0000
DASD 0101 3390 TM1111 R/W      10016 CYL ON DASD  1111 SUBCHANNEL = 0001

==> q 300-301
DASD 0300 9336 (VDSK) R/W     524288 BLK ON DASD  VDSK SUBCHANNEL = 000E
DASD 0301 9336 (VDSK) R/W    1048576 BLK ON DASD  VDSK SUBCHANNEL = 000F

==> q v stor
STORAGE = 512M
Ready; T=0.01/0.01 10:47:54

12. Begin the SLES11 Installation

Run the SLES11 EXEC which is reading the parameter file LXMARC01 PARM-S11 amongst other.
After some messages you can establish a connection with vncviewer or with a Java capable browser like Firefox.

==> sles11
     NO FILES PURGED
RDR FILE 0001 SENT FROM LXMARC01 PUN WAS 0001 RECS 086K CPY  001 A NOHOLD NOKEEP
RDR FILE 0002 SENT FROM LXMARC01 PUN WAS 0002 RECS 0011 CPY  001 A NOHOLD NOKEEP
RDR FILE 0003 SENT FROM LXMARC01 PUN WAS 0003 RECS 167K CPY  001 A NOHOLD NOKEEP
0000003 FILES CHANGED
0000003 FILES CHANGED
Initializing cgroup subsys cpuset 
Initializing cgroup subsys cpu 
....
....
Linux version 2.6.32.12-0.7-default (geeko@buildhost) (gcc version 4.3.4 テ挌cc-4_
3-branch revision 152973ツィ (SUSE Linux) ) #1 SMP 2010-05-20 11:14:20 +0200 
setup.1a06a7: Linux is running as a z/VM guest operating system in 64-bit mode 
Zone PFN ranges: 
  DMA      0x00000000 -> 0x00080000 
  Normal   0x00080000 -> 0x00080000 
Movable zone start PFN for each node 

{{:wiki:formating-dasd-process.jpeg?nolink|}}
  
***  
***           You can connect to 10.29.64.114, display :1 now with vncviewer 
***           Or use a Java capable browser on  http://10.29.64.114:5801/  
***  
  
(When YaST2 is finished, close your VNC viewer and return to this window.)  
  
*** Starting YaST2 ***  

Let's open a Java-enabled browser to access YaST2 a the appropriateツURLツand logon.
Please, find the process as a movie:

SLES 11 Installation on System z - an example

Login to the new Linux guest using the terminal

Congratulation - you did itツ;-)

Comments   

 
0 #1 Guest 2020-06-08 20:23
It's a shame you don't have a donate button! I'd most certainly donate to this
excellent blog! I suppose for now i'll settle for book-marking and adding your
RSS feed to my Google account. I look forward to fresh updates and will talk about
this website with my Facebook group. Chat soon!

Also visit my blog post ... movie free
Quote
 

Articles by Date

TweetTweet Share on LinkedInShare on LinkedIn Share on Google+Google+ Submit to RedditReddit Publish on WordPress WordPress Send emailSend email