1.5. ÔÚ z/VM Ï°²×°

ÒÔ Linux guest ÕʺŵǼ z/VM¡£Äã¿ÉÒÔʹÓà x3270 »ò c3270£¨ºìñÆóÒµ Linux µÄ x3270-text Èí¼þ°ü£©À´´ÓÆäËü Linux ϵͳµÇ¼ z/VM¡£ÁíÍ⣬ÄãÒ²¿ÉÒÔʹÓà S/390 ¹ÜÀí¿ØÖÆ̨É쵀 OS/2 3270 ÖÕ¶ËÄ£ÄâÆ÷À´µÇ¼ VM¡£Èç¹ûÄãÔÚÒ»¸ö»ùÓÚ Windows µÄ»úÆ÷ÉϹ¤×÷£¬Jolly Giant£¨http://www.jollygiant.com/£©ÌṩÁËÆôÓà SSL µÄ 3270 Ä£ÄâÆ÷¡£

Èç¹ûÄã²»ÔÚ CMS ģʽ£¬ÏÖÔÚ¾ÍÇë½øÈë¡£

i cms

Èô±ØÒª£¬°Ñ°üº¬ z/VM µÄ TCP/IP ¹¤¾ßµÄÉ豸Ìí¼Óµ½ÄãµÄ CMS ´ÅÅÌÁбíÖС£ÀýÈ磺

vmlink tcpmaint 592 592

Èç¹ûʹÓÃÈκλùÓÚ qdio/qeth µÄÍøÂçÁ¬½ÓÀàÐÍ£¨Èç OSA express »ò hipersockets£©£¬½ûÓà VM guest qioassist ²ÎÊý£º

set qioassist off

FTP µ½°üº¬ºìñÆóÒµ Linux Òýµ¼Ó³Ïñ£¨kernel.img ºÍ initrd.img£©µÄ»úÆ÷ÉÏ£»µÇ¼£»ÔÙÖ´ÐÐÒÔÏÂÃüÁÈç¹ûÄãÒª¸²¸ÇÏÖ´æµÄ kernel.img ºÍ initrd.img Ó³ÏñÎļþ£¬ÇëʹÓà repl Ñ¡Ï£º

ÏÖÔÚ£¬Äã¿ÉÒÔ´´½¨²ÎÊýÎļþ£¨Èç redhat.parm£©¡£Çë²ÎÔĸ½Â¼ BÀ´»ñµÃ parm ÎļþµÄ·¶Àý¡£ÒÔÏÂÊÇ¶Ô parm ÎļþÄÚÈݵĽâÊÍ¡£

²ÎÊýÎļþÖеIJÎÊýÏÞ¶îÊÇ32¡£ÎªÁËÂú×ãÏÞ¶îµÄÐèÒª£¬Ó¦¸ÃÔÚ CMS DASD ÉÏʹÓÃÒ»¸öÐÂÅäÖÃÎļþÀ´ÅäÖÃ×î³õµÄÍøÂçÉèÖÃºÍ DASD ¹æ·¶¡£

ÕæÕýµÄÄں˲ÎÊý£¬ÀýÈç root=/dev/ram0 ro ip=off ramdisk_size=40000£¬ÒÔ¼°Ã»Óб»·ÖÅä¸ø±äÁ¿µÄµ¥¸ö²ÎÊý£¬Èç vnc£¬ÈÔ¾ÉÐèÒª .parm Îļþ¡£ÔÚÐÂÅäÖÃÎļþÖÐÓÃÀ´Ö¸Ïò°²×°³ÌÐòµÄÁ½¸öвÎÊýÐèÒª±»Ìí¼Óµ½ .parm ÎļþÖС£

CMSDASD=191 CMSCONFFILE=redhat.conf

CMSDASD ÊÇ CMS ¸ñʽ»¯µÄ DASD µÄÉ豸 ID¡£Ëü°üº¬ÅäÖÃÎļþ¡£CMSDASD ͨ³£ÊÇÖ÷»úÓû§µÄ '$HOME' DASD 191¡£ÅäÖÃÎļþµÄÃû³Æ±ØÐë±»ÉèΪ CMSCONFFILE£¬²¢ÇÒ±ØÐëÈ«²¿Ê¹ÓÃСд×Öĸ¡£

CMSCONFFILE µÄÓ﷨ʹÓà bash ·ç¸ñ¡£ËüʹÓà variable="value" ¸ñʽ£¬Ã¿ÐÐÒ»×é¡£

redhat.parm ʾÀýÎļþ£º

root=/dev/ram0 ro ip=off ramdisk_size=40000
CMSDASD=191 CMSCONFFILE=redhat.conf
vnc

redhat.exec ʾÀýÎļþ£º

/* */                    
'cl rdr'                 
'purge rdr all'          
'spool punch * rdr'      
'PUNCH KERNEL IMG A (NOH'
'PUNCH REDHAT PARM A (NOH'
'PUNCH INITRD IMG A (NOH'
'ch rdr all keep nohold' 
'i 00c' 

redhat.conf ʾÀýÎļþ£º

HOSTNAME="foobar.zSeries.example.com"
DASD="200-203"
NETTYPE="qeth"
IPADDR="192.168.17.115"
SUBCHANNELS="0.0.0600,0.0.0601,0.0.0602"
PORTNAME="FOOBAR"
NETWORK="192.168.17.0"
NETMASK="255.255.255.0"
BROADCAST="192.168.17.255"
SEARCHDNS="example.com:zSeries.example.com"
GATEWAY="192.168.17.254"
DNS="192.168.17.1"
MTU="4096"

ÒÔϲÎÊýÊDZØÐèµÄ£¬±ØÐë±»°üÀ¨ÔÚ²ÎÊýÎļþÖУº

ÒÔϲÎÊýÊÇÉèÖÃÁªÍøËù±ØÐèµÄ£º

ÒÔϲÎÊýÊÇ¿ÉÑ¡µÄ£º

ÒÔÏÂÓÃÓÚ kickstart °²×°µÄ²ÎÊýÊÇ¿ÉÑ¡µÄ£º

Èç¹û parm ÎļþÖÐÊ¡ÂÔÁËҪʹÍøÂç²Ù×÷ÕýÈ·½øÐÐËù±ØÐèµÄÈκÎÍøÂç²ÎÊý£¬°²×°Òýµ¼½ø³ÌÖоͻá³öÏÖÒ»¸öÌáʾ¡£

Èç¹ûÄãÍ˳öÁË£¬ÇëÖØÐÂÁ¬½Ó£¬²¢Ê¹ÓÃÄãΪ°²×°ÅäÖÃµÄ z/VM guest ID À´µÇ¼¡£Èç¹ûÄã²»ÔÚ CMS ģʽ£¬ÇëÏÖÔھͽøÈë¡£

i cms

´´½¨Ò»¸ö¿ÉÖ´Ðнű¾£¬ÆäÖаüº¬Òª IPL ÔØÈëÄÚºËÓ³Ïñ²¢Æô¶¯°²×°Ëù±ØÐèµÄÃüÁî¡£ÒÔϽű¾·¶ÀýÊǵäÐ͵ijõʼÆô¶¯½Å±¾£º

/* */
'CL RDR'
'PURGE RDR ALL'
'SPOOL PUNCH * RDR'
'PUNCH KERNEL IMG A (NOH'
'PUNCH REDHAT PARM A (NOH'
'PUNCH INITRD IMG A (NOH'
'CH RDR ALL KEEP NOHOLD'
'IPL 00C CLEAR'

³ý·ÇÄãÔÚ parm ÎļþÖÐÒѾ­Ö¸¶¨ÁËËùÓбØÒªµÄÐÅÏ¢£¬³õʼ°²×°Æô¶¯½Å±¾»áÌáʾÄãÊäÈë¹ØÓÚÁªÍøºÍ DASD µÄÐÅÏ¢¡£

»Ø´ðÁËËùÓеÄÎÊÌâºó£¬Äã¾Í¿ÉÒÔÆô¶¯ºËÐÄ°²×°³ÌÐò loader ÁË¡£Òª¼ÌÐø°²×°£¬Çë²ÎÔĵÚ2Õ ÖеÄ˵Ã÷¡£