144 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
'CP SET VSWITCH VSW1 GRANT LNXINST'
'CP SET VSWITCH VSW1 GRANT RHEL52'
'CP SET VSWITCH VSW1 GRANT LINUX01'
'CP SET VSWITCH VSW1 GRANT LINUX02'
'CP SET VSWITCH VSW1 GRANT LINUX03'
'CP SET VSWITCH VSW1 GRANT LINUX04'
/* XAUTOLOG each Linux user that should be started */
'CP XAUTOLOG LNXINST'
'CP XAUTOLOG LINUX01'
'CP XAUTOLOG LINUX02'
'CP XAUTOLOG LINUX03'
'CP XAUTOLOG LINUX04'
====> file
It is easiest to grant access to the new user IDs for the current z/VM session with the SET
VSWITCH command:
==> set vswitch vsw1 grant linux02
Command complete
==> set vswitch vsw1 grant linux03
Command complete
==> set vswitch vsw1 grant linux04
Command complete
Verify that the user IDs have access with the QUERY VSWITCH ACCESSLIST command:
==> query vswitch vsw1 acc
VSWITCH SYSTEM VSW1 Type: VSWITCH Connected: 4 Maxconn: INFINITE
PERSISTENT RESTRICTED NONROUTER Accounting: OFF
VLAN Unaware
State: Ready
IPTimeout: 5 QueueStorage: 8
Portname: UNASSIGNED RDEV: 3004 Controller: DTCVSW1 VDEV: 3004
Portname: UNASSIGNED RDEV: 3008 Controller: DTCVSW2 VDEV: 3008 BACKUP
Authorized userids:
RHEL52 LINUX01 LINUX02 LINUX03 LINUX04 LNXINST
SYSTEM
9.4.4 Testing logging on to a new user ID
You should now be able to logon to a new user ID and verify the integrity of the definitions.
Logon to LINUX02 and you should first notice that a NIC is created, as well as two VDISKs:
LOGON LINUX02
00: NIC 0600 is created; devices 0600-0602 defined
00: z/VM Version 5 Release 3.0, Service Level 0702 (64-bit),
00: built on IBM Virtualization Technology
00: There is no logmsg data
00: FILES: NO RDR, NO PRT, NO PUN
00: LOGON AT 10:17:55 EST WEDNESDAY 12/13/06
z/VM V5.3.0 2007-11-18 09:54
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
Comentarios a estos manuales