Project

General

Profile

Actions

action #33682

closed

[sle][functional][s390-kvm][hard][u] Create a useful documentation for the automated LPAR setup/qnipl

Added by nicksinger about 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
SUSE QA - Milestone 18
Start date:
Due date:
2018-08-28
% Done:

0%

Estimated time:

Description

#33223 showed us how to setup a SCSI-drive to kickstart a SLES installation from the initramfs by using kexec to chain-load several "bootloader" steps.
This knowledge now needs to be preserved for future in form of documentation. This includes ( ACs ):

Notes:

  • https://progress.opensuse.org/projects/openqav3/wiki#s390x-Test-Organisation would be maybe a good place to put all the info
  • Move dracut-qnipl into a non-private repo (maybe openQA org?)
  • bootstrap SCSI-disk is a shared medium between several LPARs and Infra/gschlotter is needed to link LPAR <-> SCSI-bootstrap-disk
  • Example cmd to start an LPAR remote (e.g. from a x86_64 host): snipl -f ./snipl.conf -s P0069A27-LP3 -A fa00 --wwpn_scsiload 500507630713d3b3 --lun_scsiload 4001401100000000 --ossparms_scsiload "install=http://openqa.suse.de/assets/repo/SLE-15-Installer-DVD-s390x-Build533.2-Media1 hostip=10.161.159.3/20 gateway=10.161.159.254 Nameserver=10.160.0.1 Domain=suse.de ssh=1 regurl=http://all-533.2.proxy.scc.suse.de"

Notes about the "magic" bootstrap disk:

linux-kboz:~ # lsblk
NAME                                        MAJ:MIN RM  SIZE RO TYPE  MOUNTPOINT
sda                                           8:0    0   10G  0 disk  
  sda1                                        8:1    0   10G  0 part  
  36005076307ffd3b30000000000000111         254:0    0   10G  0 mpath 
    36005076307ffd3b30000000000000111-part1 254:1    0   10G  0 part  
sdb                                           8:16   0   10G  0 disk  
  sdb1                                        8:17   0   10G  0 part  
  36005076307ffd3b30000000000000111         254:0    0   10G  0 mpath 
    36005076307ffd3b30000000000000111-part1 254:1    0   10G  0 part
linux-kboz:/boot/zipl # sfdisk -d /dev/sda 
label: dos
label-id: 0x1323e80f
device: /dev/sda
unit: sectors

/dev/sda1 : start=        2048, size=    20969472, type=83
linux-kboz:/tmp/test # mount /dev/mapper/36005076307ffd3b30000000000000111-part1 /tmp/test
linux-kboz:/tmp/test # find .
.
./zipl
./zipl/bootmap
./image_installer
./lost+found
./initrd_installer
./zipl.conf
./initrd_zipl
./image_4.12.14-16.2
./image_zipl
./custom_initramfs
./image_4.12.14-11.2
linux-kboz:/tmp/test # find .
.
./zipl
./zipl/bootmap
./image_installer
./lost+found
./initrd_installer
./zipl.conf
./initrd_zipl
./image_4.12.14-16.2
./image_zipl
./custom_initramfs
./image_4.12.14-11.2
linux-kboz:/tmp/test # file *
custom_initramfs:   XZ compressed data    <- generated by dracut with qnipl-module enabled
image_4.12.14-11.2: Linux S390
image_4.12.14-16.2: Linux S390
image_installer:    Linux S390
image_zipl:         Linux S390
initrd_installer:   XZ compressed data
initrd_zipl:        XZ compressed data
lost+found:         directory
zipl:               directory
zipl.conf:          ASCII text             <- IIRC needed for `zipl` to generate/write the z-bootloader
linux-kboz:/tmp/test # cat zipl.conf 
## This file was written by 'grub2-install/grub2-zipl-setup'
## filling '/etc/default/zipl2grub.conf.in' as template
## with values from '/etc/default/grub'.
## In-place modifications will eventually go missing!

[defaultboot]
defaultmenu = menu

[custom]
    target = /mnt/network_boot/zipl
    ramdisk = /mnt/network_boot/custom_initramfs
    image = /mnt/network_boot/image_4.12.14-16.2
    parameters = "rd.break=initqueue TERM=dumb plymouth.enable=0 "

:menu
    target = /mnt/network_boot/zipl
    timeout = 0
    default = 1
    prompt = 1
    1 = custom

Related issues 1 (0 open1 closed)

Follows openQA Project - action #33223: [sle][functional][virtualization][s390-kvm][s390x][tools][u][research] Learn how to use snipl to install and configure an LPARResolvednicksinger2018-03-142018-03-27

Actions
Actions

Also available in: Atom PDF