Example: SCSI IPL of a z/VM guest virtual machine

You can perform an IPL of a z/VM® guest virtual machine from a SCSI device.

About this task

For SCSI IPL in a z/VM guest virtual machine, you specify some of the IPL parameters with the SET LOADDEV command. A subsequent IPL command with an FCP device as the IPL device uses these parameters. You can use the QUERY LOADDEV command to display the currently set IPL parameters for a SCSI IPL.

In this example, the WWPN of the remote port through which the SCSI boot disk can be accessed is set to 5005076300c20b8e and the LUN of the SCSI boot disk to 5241000000000000. The IPL process requires this information to locate the boot disk in the SAN fabric.

The example assumes that a menu configuration has been written to the boot disk and specifies the boot configuration (boot program in VM terminology) to be used. If this specification is omitted for a menu configuration, the default configuration is used.

The example also specifies a kernel parameter to be concatenated to the end of the existing kernel parameters that are used by the boot configuration. Specifying kernel parameters is optional.

Procedure

To IPL a z/VM guest virtual machine with the IPL parameters of the example:

  1. Log in to a CMS session and attach the FCP device to your z/VM guest virtual machine.
    att 50aa *
    00: FCP 50AA ATTACHED TO LINUX18 50AA
    Ready; T=0.01/0.01 13:16:20
    
    q v fcp
    00: FCP  50AA ON FCP   50AA CHPID 40 SUBCHANNEL = 000E
    00:      50AA QDIO-ELIGIBLE       QIOASSIST-ELIGIBLE
    Ready; T=0.01/0.01 13:16:24
    The FCP device is now available.
  2. Set the target port and LUN of the SCSI boot disk.
    set loaddev portname 50050763 00c20b8e lun 52410000 00000000
    Ready; T=0.01/0.01 13:16:33
  3. Specify the boot configuration.
    set loaddev bootprog 2
  4. Specify the kernel parameter that is to be concatenated at the end of the existing kernel parameters used by the boot configuration.
    set loaddev scpdata 'noresume'
  5. Confirm that the parameters have been set correctly.
    q loaddev
    PORTNAME 50050763 00C20B8E    LUN  52410000 00000000
    BOOTPROG 2 BR_LBA   00000000 00000000
    
    SCPDATA
             0----+----1----+----2----+----3----+----4----+----
        0000 NORESUME
    Ready; T=0.01/0.01 13:16:38
  6. IPL using the device number of the FCP device as parameter:
    i 50aa
    00: HCPLDI2816I Acquiring the machine loader from the processor controller.
    00: HCPLDI2817I Load completed from the processor controller.
    00: HCPLDI2817I Now starting machine loader.
    00: MLOEVL012I: Machine loader up and running (version 0.15).
    00: MLOPDM003I: Machine loader finished, moving data to final storage location.
    Linux version 2.4.21 (root@tel15v18)(gcc version 3.3 (Red Hat Linux 8.0 3.3-5bb9))
    									#3 SMP Mon Sep 15 15:28:42 CEST 2003
    We are running under VM (64 bit mode)
    On node 0 total pages: 32768
    The Linux system comes up after the two SCSI IPL machine loader messages.