Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Example of pubset management

&pagelevel(5)&pagelevel

This example, which consists of several parts, illustrates the various ways of assigning and releasing pubsets and how the usage mode is changed when VM2000 and a guest system are used together.

In principle the execution is the same as for "Example of peripheral device management", but it utilizes simplified device selection in the command by specifying the pubset.

Guest system operations are marked with “***”. Asynchronous messages are marked with %.


Explicit pubset assignment

/create-vm memory-size=512,vm-name=system2,cpu-quota=30 ———————————————  (1)
VMS3050 VIRTUAL MACHINE (2,SYSTEM2) CREATED
VMS4615 VIRTUAL MACHINE (2,SYSTEM2) ASSIGNED TO CPU POOL '*STDPOOL'

/add-vm-devices units=(ch,ci),vm-id=system2 ———————————————————————————  (2)
VMS4005 DEVICE 'CH' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)
VMS4005 DEVICE 'CI' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)

/add-vm-devices units=*pubset-devices(pubset=4ivk),vm-id=system2
VMS4005 DEVICE 'FC1A' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)

VMS4005 DEVICE 'FC1B' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)
VMS4220 PUBSET '4IVK' WITH PUBRES DEVICE 'FC1A' ASSIGNED TO VM (2,SYSTEM2)
/start-vm ipl-unit=fc1a,vm-id=system2 —————————————————————————————————  (3)
VMS2023 CPU 00 OF VIRTUAL MACHINE (2,SYSTEM2) STARTED
VMS2023 CPU 01 OF VIRTUAL MACHINE (2,SYSTEM2) STARTED
***
*** System initialization of the guest system on VM2
***
% VMS2050 GUEST SYSTEM ON VM (2,SYSTEM2) READY  ———————————————————————  (4)

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

(1)

The VM2000 administrator creates a VM.

(2)

The VM2000 administrator explicitly assigns the KVP device pair and the devices of the home pubset to VM2. These devices are required by VM2 for startup and thus cannot be assigned implicitly. Pubset 4IVK is registered in the monitor system’s MRS catalog and is consequently detected by VM2000.

(3)

VM2 is started.

(4)

The guest system on the VM2 has reached SYSTEM READY.

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


Implicit pubset assignment

/create-vm-assignment-set set-name=sys2impl ———————————————————————————  (5)
VMS4201 ASSIGNMENT SET 'SYS2IMPL' CREATED
/modify-vm-attributes vm-id=system2,
           privileges=*par(assign-by-guest=*yes(set-name=sys2impl)) ———  (6)

/show-vm-device-status units=*pubset-devices(pubset=4ivl) —————————————  (7)
%  NKR0042 'DEVICE     =FC1C': ATTACH ACCEPTED

%  NKR0040 'DEVICE     =FC1C' ATTACHED
%  NKVD010 DISK '4IVL.0' MOUNTED ON DEVICE 'FC1C'
%  NKR0045 *** 'DEVICE     =FC1C' DETACHED ***
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY
FC1C D3435
FC1D D3435
/show-vm-device-status units=(CC42,CC43,990f)
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY

CC42 HNC
CC43 HNC
990F D3435                        SH(D)  1 MONITOR  VM-ADMIN ——————————  (8)
/modify-vm-device-attributes units=*pubset-devices(pubset=4ivl),
                  assign-by-guest=*yes(set-name=sys2impl) —————————————  (9)

VMS4240 DEVICE ATTRIBUTES OF PUBSET '4IVL' WITH PUBRES DEVICE 'FC1C' MODIFIED
/modify-vm-device-attributes units=(CC42,CC43,990f),
                             assign-by-guest=*yes(set-name=sys2impl)
/show-vm-device-status select=*par(assign-by-guest=*yes(set-name=sys2impl))
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY ——————— (10)

CC42 HNC              SYS2IMPL
CC43 HNC              SYS2IMPL

990F D3435            SYS2IMPL    SH(D)  1 MONITOR  VM-ADMIN
FC1C D3435            SYS2IMPL(P)
FC1D D3435            SYS2IMPL
/show-vm-assignment-set set-name=sys2impl ————————————————————————————— (11)
ASSIGNMENT-SET   #DEVICES   VM-ID
SYS2IMPL             5       2 SYSTEM2

***
*** Guest system operation on VM2:
*** /attach-device unit=*pubset-devices(pubset=4ivl) —————————————————— (12)
*** %  NKR0042 'DEVICE     =FC1C': ATTACH ACCEPTED
*** %  NKR0040 'DEVICE     =FC1C' ATTACHED
*** %  NKR0042 'DEVICE     =FC1D': ATTACH ACCEPTED
*** %  NKVD010 DISK '4IVL.0' MOUNTED ON DEVICE 'FC1C' ————————————————— (13)
*** %  NKR0040 'DEVICE     =FC1D' ATTACHED
*** %  NKVD010 DISK '4IVL.1' MOUNTED ON DEVICE 'FC1D'

*** NBR0740 COMMAND COMPLETED 'ATTACH-DEVICE';
***         (RESULT: SC2=000, SC1=000, MC=CMD0001); DATE: <date>
*** /attach-device unit=(CC42,CC43,990f)
*** NKR0042 'DEVICE     =CC42': ATTACH ACCEPTED

*** NKR0042 'DEVICE     =CC43': ATTACH ACCEPTED
*** NKR0042 'DEVICE     =990F': ATTACH ACCEPTED
*** NKR0040 'DEVICE     =CC42' ATTACHED
*** NKR0040 'DEVICE     =CC43' ATTACHED
*** NKR0040 'DEVICE     =990F' ATTACHED
*** NKVD010 DISK 'WO990F' MOUNTED ON DEVICE '990F'
*** NBR0740 COMMAND COMPLETED 'ATTACH-DEVICE';
***         (RESULT: SC2=000, SC1=000, MC=CMD0001); DATE: <date>
***

%  VMS4005 DEVICE 'FC1C' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)   (BY GUEST)
%  VMS4005 DEVICE 'FC1D' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)   (BY GUEST)
%  VMS4005 DEVICE 'CC42' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)
           (BY GUEST) ————————————————————————————————————————————————— (14)
%  VMS4005 DEVICE 'CC43' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)   (BY GUEST)
%  VMS4005 DEVICE '990F' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)   (BY GUEST)

/show-vm-device-status units=*std,information=*all,
                select=*par(assign-by-guest=*yes(set-name=sys2impl)) —— (15)
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY

CC42 HNC              SYS2IMPL    EXCL   2 SYSTEM2  GUEST ————————————— (16)
CC43 HNC              SYS2IMPL    EXCL   2 SYSTEM2  GUEST
990F D3435            SYS2IMPL    SH(I)    ( 2)     MIXED ————————————— (17)
                                         1 MONITOR  VM-ADMIN
                                         2 SYSTEM2  GUEST
FC1C D3435            SYS2IMPL(P) SH(D)  2 SYSTEM2  GUEST ————————————— (18)
FC1D D3435            SYS2IMPL    SH(D)  2 SYSTEM2  GUEST
/show-vm-attributes information=*all,vm-id=system2 ———————————————————— (19)
             CPU-POOL(P)
VM-ID        VM-GROUP(G)  CPU-Q   MAX-U  PROC   MEM-SIZE  MAX-IO

 2 SYSTEM2   *STDPOOL(P)  30.00  100.00  1(+1)       512  (100)
VM-ID        STATE           VERSION PER ADMIN PRIV
 2 SYSTEM2   RUNNING         V20.0B  NO  NO    AG,AS
VM-ID        CPU-POOL  GR-CPU-Q  CPU-Q/ EFF-Q  MAX-U/ EFF-U  PROC
 2 SYSTEM2   *STDPOOL            30.00/ 25.00 100.00/ 25.00  1(+1)
VM-ID        SCHED ACT-I  VIRT CPUS
 2 SYSTEM2    DC    NO    00(RUN),01(SLEEP)
VM-ID        VM-MONJV
 2 SYSTEM2   NO VM-MONJV ASSIGNED
VM-ID        UNITS ———————————————————————————————————————————————————— (20)
 2 SYSTEM2   ASSIGNED BY VM-ADMIN
             EXCL:   CH,CI,FC1A,FC1B

             ASSIGNED BY GUEST
             EXCL:   CC42,CC43
             SHARED: 990F,FC1C,FC1D
...
VM-ID        PRIV    DETAILS
 2 SYSTEM2   AG      SYS2IMPL ————————————————————————————————————————— (21)
             AS
*** Guest system operation on VM2:
*** /import-pubset pubset=4ivl,use=*exclusive ————————————————————————— (22)
*** DMS035B IMPORT PUBSET TASK WITH TSN 'XAAU' FOR PUBSET WITH PUBSET ID
***         '4IVL' HAS BEEN CREATED AND STARTED
*** SRM5017 USER GROUP MANAGEMENT ON PUBSET '4IVL' INITIALIZED WITH '1'
***         USER GROUP(S)
*** PRO6000 GUARDS CATALOG ':4IVL:$TSOS.SYSCAT.GUARDS' OPENED

*** DMS03E0: SCA (SPEEDCAT) VERSION V19.0A00 RUNNING FOR CATALOG-ID 4IVL
*** DMS03E1: SCA RUNNING FOR CATALOG-ID 4IVL.
***          STATUS OF CATALOG: 00 002664 FILE ENTRIES AND
***          00000002 JOB VARIABLES IN 00000288 CATALOG BLOCKS

*** DMS038F IMPORT PUBSET PROCESSING COMPLETED.
***         PUBSET WITH PUBSET ID '4IVL' IN 'LOCAL-IMPORTED' STATE
*** NBR0740 COMMAND COMPLETED 'IMPORT-PUBSET';

***         (RESULT: SC2=000, SC1=000, MC=DMS038F); DATE: <date>
*** /show-device-config unit=*pubset-devices(pubset=4ivl),info=*vm2000  (23)

*** MNEM UN-CLASS UN-TYPE  CONF-STATE   VM-ASSIGN      VM-USAGE ——————— (24)
*** FC1C DVC      D3435    ATTACHED     BY-GUEST       EXCL ——————————— (25) 
*** FC1D DVC      D3435    ATTACHED     BY-GUEST       EXCL

*** NBR0740 COMMAND COMPLETED 'SHOW-DEVICE-CONFIGURATION';
*** (RESULT:SC2=000, SC1=000, MC=CMD0001); DATE: <date>

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

(5)

The assignment set SYS2IMPL is created.

(6)

The VM2000 administrator assigns VM2 the ASSIGN-BY-GUEST privilege for the devices in assignment set SYS2IMPL. This enables the guest system operator to assign free devices to the VM implicitly (and also to release them again). This privilege could also have been assigned to the VM with /CREATE-VM provided the assignment set SYS2IMPL already exists at this time.

(7)

The VM2000 administrator wants to make some devices available to VM2 and uses the VM2000 administrator command to obtain information about the state of the devices first. The pubres device FC1C is briefly attached in the monitor system in the course of command execution in order to ascertain the pubset data. Similar reconfiguration messages are not shown in the rest of this example.

(8)

All the relevant devices are free.
Disk device 990F has already been assigned explicitly (VM-ADMIN) to the monitor VM for shared use with other VMs and therefore has the usage mode SH(D) (shared with direct I/O).

(9)

Implicit device assignment is to be permitted for the devices. Therefore, the VM2000 administrator specifies the ASSIGN-BY-GUEST attribute for the pubset and the devices concerned and assigns them to assignment set SYS2IMPL.

(10)

Now, all the devices concerned have the ASSIGN-BY-GUEST attribute and are assigned to assignment set SYS2IMPL. The PUBRES-FOR-ATTRIBUTES attribute is displayed for device FC1C.

(11)

The information output for the assignment set shows the related summary.

(12)

The guest system operator uses the BS2000 command /ATTACH-DEVICE to attach the pubset. The devices of the pubset are assigned to VM2 implicitly.

(13)

Disks are detected in the guest system on the attached disk devices.

(14)

The VM and VM2000 administrators are notified about the implicit device assignment to VM2 by asynchronous messages.

(15)

The VM2000 administrator obtains detailed information on the state of the devices. If INFORMATION=*ALL is specified for a device which is assigned to multiple VMs for shared use, all of the VMs are output.

(16)

Devices which are not disk devices or CRD devices are assigned to the usage mode EXCLUSIVE in the event of implicit device assignment.

(17)

Disk device 990F is assigned to the monitor VM explicitly and to VM2 implicitly. The usage mode is therefore SH(I) (shared with indirect I/O).

(18)

In the case of implicit device assignment, the disk devices are assigned in the usage mode SHARED. Input/output takes place by means of direct I/O because the devices are initially assigned to only one VM.

(19)

This command provides a VM administrator with information on his or her VM.

(20)

The type of device assignment (BY VM-ADMIN, BY GUEST) and the usage mode (EXCL, SHARED) are displayed for VM2.

(21)

The ASSIGN-BY-GUEST privilege for the VM and the assignment set assigned are displayed.

(22)

In the guest system, pubset 4IVL is imported in exclusive access mode. The pubset consists of the disk devices FC1C and FC1D.

(23)

The guest system operator obtains information on the VM2000 state of the implicitly assigned disk devices of his or her guest system.

(24)

The output columns VM-ASSIGN and VM-USAGE also inform the guest system operator about the type of assignment and usage.

(25)

For the disk devices FC1C and FC1D, the exclusive importing of the pubset has changed the usage mode from SHARED to EXCLUSIVE.

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


Changing the usage mode

/show-vm-device-status units=*std,information=*all,
                       select=*par(state=*assigned(vm-id=system2)) ———— (26)
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY

CH   SKP2                         EXCL   2 SYSTEM2  VM-ADMIN
CI   SKP2                         EXCL   2 SYSTEM2  VM-ADMIN
CC42 HNC              SYS2IMPL    EXCL   2 SYSTEM2  GUEST
CC43 HNC              SYS2IMPL    EXCL   2 SYSTEM2  GUEST
990F D3435            SYS2IMPL    SH(I)    ( 2)     MIXED
                                         1 MONITOR  VM-ADMIN
                                         2 SYSTEM2  GUEST
FC1A D3435                        EXCL   2 SYSTEM2  VM-ADMIN(P)
FC1B D3435                        EXCL   2 SYSTEM2  VM-ADMIN
FC1C D3435            SYS2IMPL(P) EXCL   2 SYSTEM2  GUEST ————————————— (27)
FC1D D3435            SYS2IMPL    EXCL   2 SYSTEM2  GUEST

/modify-vm-device-usage vm-id=system2,usage=*shared,
                        units=*pubset-devices(pubset=4ivl) ———————————— (28)

VMS4230 DEVICE USAGE OF PUBSET '4IVL' WITH PUBRES DEVICE 'FC1C' MODIFIED

/show-vm-device-status units=*pubset-devices(pubset=4ivl)

UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY
FC1C D3435            SYS2IMPL(P) SH(D)  2 SYSTEM2  GUEST ————————————— (29)
FC1D D3435            SYS2IMPL    SH(D)  2 SYSTEM2  GUEST

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

(26)

The VM2000 administrator obtains detailed information on the state of the devices assigned to VM2.

(27)

For the disk devices FC1C and FC1D, the exclusive importing of the pubset has changed the usage mode from SHARED to EXCLUSIVE, see (25).

(28)

The VM2000 administrator nevertheless wants to set the usage mode SHARED for these disk devices again.

(29)

In spite of the exclusive use of the pubset, SHARED usage is set again in the guest system.

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


Implicit pubset release

***
*** Guest system operation on VM2:
*** /export-pubset pubset=4ivl ———————————————————————————————————————— (30)
*** DMS035D EXPORT-PUBSET TASK WITH TSN 'XAAX'FOR PUBSET WITH PUBSET ID
            '4IVL' HAS BEEN CREATED AND STARTED
*** PRO6005 GUARDS CATALOG ':4IVL:$TSOS.SYSCAT.GUARDS' CLOSED
*** DMS03E2 NORMAL TERMINATION OF SCA (CATALOG ID '4IVL')
*** DMS037F EXPORT-PUBSET PROCESSING COMPLETED FOR PUBSET '4IVL'
*** NBR0740 COMMAND COMPLETED 'EXPORT-PUBSET';
***         (RESULT: SC2=000, SC1=000, MC=DMS037F); DATE: <date>
*** /detach-device unit=*pubset-devices(pubset=4ivl) —————————————————— (31)

*** NKR0092 'DEVICE     =FC1C': /DETACH-DEVICE PENDING ACCEPTED
*** NKR0092 'DEVICE     =FC1D': /DETACH-DEVICE PENDING ACCEPTED

*** NKR0045 *** 'DEVICE     =FC1C' DETACHED ***
*** NKR0045 *** 'DEVICE     =FC1D' DETACHED ***
*** NBR0740 COMMAND COMPLETED 'DETACH-DEVICE';
***         (RESULT: SC2=000, SC1=000, MC=CMD0001); DATE: <date>
***

%  VMS4009 DEVICE 'FC1C' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
           (BY GUEST) ————————————————————————————————————————————————— (32)
%  VMS4009 DEVICE 'FC1D' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2) (BY GUEST)
/show-vm-device-status units=*pubset-devices(pubset=4ivl),information=*all
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY ——————— (33)

FC1C D3435            SYS2IMPL(P)
FC1D D3435            SYS2IMPL

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

(30)

Pubset 4IVL is exported in the guest system.

(31)

The pubset device(s) are detached in the guest system and consequently removed from the VM.

(32)

VM and VM2000 administrators are informed of the implicit device release by asynchronous messages.

(33)

The devices have their original state again.

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


Converting from explicit to implicit pubset assignment

/add-vm-devices units=*pubset-devices(pubset=4ivl),vm-id=system2 —————— (34)
VMS4005 DEVICE 'FC1C' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)
VMS4005 DEVICE 'FC1D' ASSIGNED TO VIRTUAL MACHINE (2,SYSTEM2)

VMS4220 PUBSET '4IVL' WITH PUBRES DEVICE 'FC1C' ASSIGNED TO VM (2,SYSTEM2)
/show-vm-device-status information=*std,units=*pubset-devices(pubset=4ivl)
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY ——————— (35)

FC1C D3435            SYS2IMPL(P) EXCL   2 SYSTEM2  VM-ADMIN(P)
FC1D D3435            SYS2IMPL    EXCL   2 SYSTEM2  VM-ADMIN
*** Guest system operation on VM2:
*** /attach-device unit=*pubset-devices(pubset=4ivl) —————————————————— (36)
*** NKR0042 'DEVICE     =FC1C': ATTACH ACCEPTED
*** NKR0040 'DEVICE     =FC1C' ATTACHED

*** NKR0042 'DEVICE     =FC1D': ATTACH ACCEPTED
*** NKVD010 DISK '4IVL.0' MOUNTED ON DEVICE 'FC1C'
*** NKR0040 'DEVICE     =FC1D' ATTACHED
*** NKVD010 DISK '4IVL.1' MOUNTED ON DEVICE 'FC1D'
*** NBR0740 COMMAND COMPLETED 'ATTACH-DEVICE';
***         (RESULT: SC2=000, SC1=000, MC=CMD0001); DATE: <date>
/remove-vm-devices vm-id=system2,units=*pubset-devices(pubset=4ivl) ——— (37)

VMS4085 DEVICE 'FC1C' STILL ATTACHED IN GUEST SYSTEM. DEVICE NOT REMOVED
VMS4085 DEVICE 'FC1D' STILL ATTACHED IN GUEST SYSTEM. DEVICE NOT REMOVED
VMS4223 VM2000 COMMAND /REMOVE-VM-DEVICES FOR PUBSET SPECIFIED BY PUBRES
        DEVICE OR CATID '4IVL' REJECTED
/remove-vm-devices units=*pubset-devices(pubset=4ivl),vm-id=system2,
                   force=*no(wait-for-unassign=*yes) —————————————————— (38)

VMS4087 DEVICE 'FC1C' REMAINS ASSIGNED TO VM (2,SYSTEM2) UNTIL DETACH IN
        GUEST SYSTEM HAS BEEN DONE
VMS4087 DEVICE 'FC1D' REMAINS ASSIGNED TO VM (2,SYSTEM2) UNTIL DETACH IN

        GUEST SYSTEM HAS BEEN DONE
VMS4235 SOME DEVICES OF PUBSET '4IVL' WITH PUBRES DEVICE 'FC1C' REMAIN
        ASSIGNED TO VM (2,SYSTEM2) UNTIL DETACH IN GUEST SYSTEM HAS BEEN DONE
/show-vm-device-status information=*std,
                       units=*pubset-devices(pubset=4ivl)
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY ——————— (39)

FC1C D3435            SYS2IMPL(P) SH(D)  2 SYSTEM2  GUEST
FC1D D3435            SYS2IMPL    SH(D)  2 SYSTEM2  GUEST
***
*** Guest system operation on VM2:
*** /detach-device unit=*pubset-devices(pubset=4ivl) —————————————————— (40)
*** NKR0092 'DEVICE     =FC1C': /DETACH-DEVICE PENDING ACCEPTED
*** NKR0092 'DEVICE     =FC1D': /DETACH-DEVICE PENDING ACCEPTED

*** NKR0045 *** 'DEVICE     =FC1C' DETACHED ***
*** NKR0045 *** 'DEVICE     =FC1D' DETACHED ***
*** NBR0740 COMMAND COMPLETED 'DETACH-DEVICE';

***         (RESULT: SC2=000, SC1=000, MC=CMD0001); DATE: <date>
***

%  VMS4009 DEVICE 'FC1C' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
           (BY GUEST) ————————————————————————————————————————————————— (41)
%  VMS4009 DEVICE 'FC1D' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2) (BY GUEST)
/show-vm-device-status units=*pubset-devices(pubset=4ivl),information=*std
UNIT DEV-TYPE PAV   S ASSIGN-SET  USAGE VM-ID/(#VM) ASSIGNED-BY ——————— (42)

FC1C D3435            SYS2IMPL(P)
FC1D D3435            SYS2IMPL

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

(34)

The VM2000 administrator assigns the pubset devices explicitly and exclusively to VM2.

(35)

The output of /SHOW-VM-DEVICE-STATUS indicates this. For the device FC1C the PUBRES-FOR-ASSIGNMENT attribute is displayed in the ASSIGNED-BY column.

(36)

The devices are attached in the guest system.

(37)

The VM2000 administrator cannot remove the devices because they are still attached in the guest system.

(38)

By means of the FORCE=*NO(WAIT-FOR-UNASSIGN=*YES) operand, the VM2000 administrator changes explicit assignment to implicit assignment (FORCE=*YES should only be used in exceptional cases).

(39)

The output of /SHOW-VM-DEVICE-STATUS indicates that the devices are now assigned implicitly to the VM. The PUBRES-FOR-ASSIGNMENT attribute (ASSIGNED-BY column) has once more been removed from the pubres device for this VM. At the same time the usage mode has also changed (SH(D)) because the pubset in the guest system has not been imported exclusively.

(40)

The devices are detached in the guest system and consequently released implicitly.

(41)

VM and VM2000 administrators are informed of the implicit device release by asynchronous messages.

(42)

The devices are once again free.

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


Implicit device release at shutdown

/shutdown-vm vm-id=system2,action=*shutdown(quiet-time=0) ————————————— (43)
VMS2054 SHUTDOWN OF GUEST SYSTEM ON VM (2,SYSTEM2) INITIATED
%  VMS2037 NON-INTERRUPTIBLE WAIT STATE FOR VIRTUAL MACHINE (2,SYSTEM2),

           CODE 80FFFFFF, CPU 01
%  VMS2033 'EXC0557 SHUTDOWN PROCESSING COMPLETED' FROM VM (2,SYSTEM2)
%  VMS2051 GUEST SYSTEM ON VM (2,SYSTEM2) DOWN; REASON: SHUTDOWN
%  VMS2037 NON-INTERRUPTIBLE WAIT STATE FOR VIRTUAL MACHINE (2,SYSTEM2),
           CODE 80FFFFFF, CPU 00
%  VMS4009 DEVICE 'CC42' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2) ————— (44)
%  VMS4009 DEVICE 'CC43' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
%  VMS4009 DEVICE '990F' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
/show-vm-attributes vm-id=system2,information=*all
             CPU-POOL(P)

VM-ID        VM-GROUP(G)  CPU-Q   MAX-U  PROC   MEM-SIZE  MAX-IO
 2 SYSTEM2   *STDPOOL(P)  30.00  100.00  1(+1)       512  (100)
VM-ID        STATE           VERSION PER ADMIN PRIV
 2 SYSTEM2   DOWN            V20.0B  NO  NO    AG,AS —————————————————— (45)
VM-ID        CPU-POOL  GR-CPU-Q  CPU-Q/ EFF-Q  MAX-U/ EFF-U  PROC
 2 SYSTEM2   *STDPOOL            30.00/ 25.00 100.00/ 25.00  1(+1)

VM-ID        SCHED ACT-I  VIRT CPUS
 2 SYSTEM2    -     NO    00(IDLE),01(IDLE)
VM-ID        VM-MONJV

 2 SYSTEM2   NO VM-MONJV ASSIGNED
VM-ID        UNITS
 2 SYSTEM2   ASSIGNED BY VM-ADMIN
             EXCL:   CH,CI,FC1A,FC1B —————————————————————————————————— (46)
...

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

(43)

The VM2000 administrator initiates the shutdown in the guest system.

(44)

The implicitly assigned devices of VM2 are released (asynchronous messages to the VM and VM2000 administrators).

(45)

The concluding information command shows that the guest system on VM2 is no longer active.

(46)

Only the explicitly assigned devices are still with VM2.

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


Explicit device release upon termination of the VM

/delete-vm vm-id=system2 —————————————————————————————————————————————— (47)
VMS4009 DEVICE 'CH' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
VMS4009 DEVICE 'CI' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
VMS4009 DEVICE 'FC1A' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
VMS4009 DEVICE 'FC1B' REMOVED FROM VIRTUAL MACHINE (2,SYSTEM2)
VMS4619 VIRTUAL MACHINE (2,SYSTEM2) REMOVED FROM CPU POOL '*STDPOOL'
VMS4024 VIRTUAL MACHINE (2,SYSTEM2) TERMINATED
/show-vm-assignment-set set-name=sys2impl ————————————————————————————— (48)
ASSIGNMENT-SET   #DEVICES   VM-ID
SYS2IMPL             5         NONE

/modify-vm-device-attributes units=*by-assignment-set(set-name=sys2impl),
                             assign-by-guest=*no —————————————————————— (49)

/show-vm-assignment-set set-name=sys2impl ————————————————————————————— (50)
ASSIGNMENT-SET   #DEVICES   VM-ID
SYS2IMPL             0         NONE

/delete-vm-assignment-set set-name=sys2impl ——————————————————————————— (51)
VMS4205 ASSIGNMENT SET 'SYS2IMPL' DELETED
/show-vm-assignment-set ——————————————————————————————————————————————— (52)

ASSIGNMENT-SET   #DEVICES   VM-ID
*STDSET              0         NONE

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

(47)

VM2 is terminated. The explicitly assigned devices are removed.

(48)

Assignment set SYS2IMPL is no longer assigned to a VM, but it still contains 5 devices.

(49)

Implicit device assignment is no longer to be permitted for the devices in assignment set SYS2IMPL.

(50)

Assignment set SYS2IMPL now no longer contains devices; it can be deleted.

(51)

Assignment set SYS2IMPL is deleted.

(52)

Only the assignment set *STDSET still exists.