Interactively installing RHEL over the network Red Hat Enterprise Linux 8 Installing RHEL on several systems using network resources or on a headless system with the graphical installer Red Hat Customer Content Services

Commands:
yum install nfs-utils
/ exported_directory / clients
/rhel8-install *
systemctl start nfs-server.service
systemctl reload nfs-server.service
mkdir /mnt/rhel8-install/
mount -o loop,ro -t iso9660 /image_directory/image.iso /mnt/rhel8-install/
cp -r /mnt/rhel8-install/ /var/www/html/
systemctl start httpd.service
systemctl enable firewalld
systemctl start firewalld
firewall-cmd --add-port min_port - max_port /tcp --permanent firewall-cmd --add-service ftp --permanent
firewall-cmd --reload
mkdir /mnt/rhel8-install
mount -o loop,ro -t iso9660 /image-directory/image.iso /mnt/rhel8-install
mkdir /var/ftp/rhel8-install cp -r /mnt/rhel8-install/ /var/ftp/
restorecon -r /var/ftp/rhel8-install find /var/ftp/rhel8-install -type f -exec chmod 444 {} \; find /var/ftp/rhel8-install -type d -exec chmod 755 {} \;
systemctl start vsftpd.service
systemctl restart vsftpd.service
systemctl enable vsftpd
install dhcp-server
option architecture-type code 93 = unsigned integer 16; subnet 192.168.124.0 netmask 255.255.255.0 { option routers 192.168.124.1 ; option domain-name-servers 192.168.124.1 ; range 192.168.124.100 192.168.124.200 ; class "pxeclients" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; next-server 192.168.124.2 ; if option architecture-type = 00:07 { filename "redhat/EFI/BOOT/BOOTX64.EFI"; } else { filename "pxelinux/pxelinux.0"; } } class "httpclients" { match if substring (option vendor-class-identifier, 0, 10) = "HTTPClient"; option vendor-class-identifier "HTTPClient"; filename "http:// 192.168.124.2 /redhat/EFI/BOOT/BOOTX64.EFI"; } }
systemctl enable --now dhcpd
install dhcp-server
option dhcp6.bootfile-url code 59 = string; option dhcp6.vendor-class code 16 = {integer 32, integer 16, string}; subnet6 fd33:eb1b:9b36::/64 { range6 fd33:eb1b:9b36::64 fd33:eb1b:9b36::c8 ; class "PXEClient" { match substring (option dhcp6.vendor-class, 6, 9); } subclass "PXEClient" "PXEClient" { option dhcp6.bootfile-url "tftp:// [fd33:eb1b:9b36::2] /redhat/EFI/BOOT/BOOTX64.EFI"; } class "HTTPClient" { match substring (option dhcp6.vendor-class, 6, 10); } subclass "HTTPClient" "HTTPClient" { option dhcp6.bootfile-url "http:// [fd33:eb1b:9b36::2] /redhat/EFI/BOOT/BOOTX64.EFI"; option dhcp6.vendor-class 0 10 "HTTPClient"; } }
systemctl enable --now dhcpd6
IPv6_rpfilter=no
yum install httpd
mkdir -p /var/www/html/redhat/
mkdir -p /var/www/html/redhat/iso/
mount -o loop,ro -t iso9660 path-to-RHEL-DVD.iso /var/www/html/redhat/iso
cp -r /var/www/html/redhat/iso/images /var/www/html/redhat/ cp -r /var/www/html/redhat/iso/EFI /var/www/html/redhat/
chmod 644 /var/www/html/redhat/EFI/BOOT/grub.cfg
set default="1" function load_video { insmod efi_gop insmod efi_uga insmod video_bochs insmod video_cirrus insmod all_video } load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 set timeout=60 # END /etc/grub.d/00_header # search --no-floppy --set=root -l ' RHEL-9-3-0-BaseOS-x86_64 ' # BEGIN /etc/grub.d/10_linux # menuentry 'Install Red Hat Enterprise Linux 9.3 ' --class fedora --class gnu-linux --class gnu --class os { linuxefi ../../images/pxeboot/vmlinuz inst.repo=http:// 192.168.124.2 /redhat/iso quiet initrdefi ../../images/pxeboot/initrd.img } menuentry 'Test this media & install Red Hat Enterprise Linux 9.3 ' --class fedora --class gnu-linux --class gnu --class os { linuxefi ../../images/pxeboot/vmlinuz inst.repo=http:// 192.168.124.2 /redhat/iso quiet initrdefi ../../images/pxeboot/initrd.img } submenu 'Troubleshooting -->' { menuentry 'Install Red Hat Enterprise Linux 9.3 in text mode' --class fedora --class gnu-linux --class gnu --class os { linuxefi ../../images/pxeboot/vmlinuz inst.repo=http:// 192.168.124.2 /redhat/iso inst.text quiet initrdefi ../../images/pxeboot/initrd.img } menuentry 'Rescue a Red Hat Enterprise Linux system' --class fedora --class gnu-linux --class gnu --class os { linuxefi ../../images/pxeboot/vmlinuz inst.repo=http:// 192.168.124.2 /redhat/iso inst.rescue quiet initrdefi ../../images/pxeboot/initrd.img } }
chmod 755 /var/www/html/redhat/EFI/BOOT/BOOTX64.EFI
firewall-cmd --zone public --add-port={80/tcp,67/udp,68/udp,546/udp,547/udp}
firewall-cmd --reload
systemctl enable --now httpd
chmod -cR u=rwX,g=rX,o=rX /var/www/html
restorecon -FvvR /var/www/html
install dhcp-server
option architecture-type code 93 = unsigned integer 16; subnet 192.168.124.0 netmask 255.255.255.0 { option routers 192.168.124.1 ; option domain-name-servers 192.168.124.1 ; range 192.168.124.100 192.168.124.200 ; class "pxeclients" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; next-server 192.168.124.2 ; if option architecture-type = 00:07 { filename "redhat/EFI/BOOT/BOOTX64.EFI"; } else { filename "pxelinux/pxelinux.0"; } } class "httpclients" { match if substring (option vendor-class-identifier, 0, 10) = "HTTPClient"; option vendor-class-identifier "HTTPClient"; filename "http:// 192.168.124.2 /redhat/EFI/BOOT/BOOTX64.EFI"; } }
systemctl enable --now dhcpd
install dhcp-server
option dhcp6.bootfile-url code 59 = string; option dhcp6.vendor-class code 16 = {integer 32, integer 16, string}; subnet6 fd33:eb1b:9b36::/64 { range6 fd33:eb1b:9b36::64 fd33:eb1b:9b36::c8 ; class "PXEClient" { match substring (option dhcp6.vendor-class, 6, 9); } subclass "PXEClient" "PXEClient" { option dhcp6.bootfile-url "tftp:// [fd33:eb1b:9b36::2] /redhat/EFI/BOOT/BOOTX64.EFI"; } class "HTTPClient" { match substring (option dhcp6.vendor-class, 6, 10); } subclass "HTTPClient" "HTTPClient" { option dhcp6.bootfile-url "http:// [fd33:eb1b:9b36::2] /redhat/EFI/BOOT/BOOTX64.EFI"; option dhcp6.vendor-class 0 10 "HTTPClient"; } }
systemctl enable --now dhcpd6
IPv6_rpfilter=no
yum install tftp-server
firewall-cmd --add-service=tftp
mount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,ro
cp -pr /mount_point/BaseOS/Packages/syslinux-tftpboot-version-architecture.rpm /my_local_directory
umount /mount_point
rpm2cpio syslinux-tftpboot-version-architecture.rpm | cpio -dimv
mkdir /var/lib/tftpboot/pxelinux
cp /my_local_directory/tftpboot/* /var/lib/tftpboot/pxelinux
mkdir /var/lib/tftpboot/pxelinux/pxelinux.cfg
default vesamenu.c32 prompt 1 timeout 600 display boot.msg label linux menu label ^Install system menu default kernel images/RHEL-8/vmlinuz append initrd=images/RHEL-8/initrd.img ip=dhcp inst.repo=http:// 192.168.124.2 /RHEL-8/x86_64/iso-contents-root/ label vesa menu label Install system with ^basic video driver kernel images/RHEL-8/vmlinuz append initrd=images/RHEL-8/initrd.img ip=dhcp inst.xdriver=vesa nomodeset inst.repo=http:// 192.168.124.2 /RHEL-8/x86_64/iso-contents-root/ label rescue menu label ^Rescue installed system kernel images/RHEL-8/vmlinuz append initrd=images/RHEL-8/initrd.img inst.rescue inst.repo=http:///192.168.124.2/RHEL-8/x86_64/iso-contents-root/ label local menu label Boot from ^local drive localboot 0xffff
mkdir -p /var/lib/tftpboot/pxelinux/images/RHEL-8/ cp /path_to_x86_64_images/pxeboot/{vmlinuz,initrd.img} /var/lib/tftpboot/pxelinux/images/RHEL-8/
systemctl enable --now tftp.socket
yum install tftp-server
firewall-cmd --add-service=tftp
mount -t iso9660 /path_to_image/name_of_image.iso /mount_point -o loop,ro
mkdir /var/lib/tftpboot/redhat cp -r /mount_point/EFI /var/lib/tftpboot/redhat/ umount /mount_point
chmod -R 755 /var/lib/tftpboot/redhat/
set timeout=60 menuentry 'RHEL 8' { linux images/RHEL-8/vmlinuz ip=dhcp inst.repo=http:// 192.168.124.2 /RHEL-8/x86_64/iso-contents-root/ initrd images/RHEL-8/initrd.img }
mkdir -p /var/lib/tftpboot/images/RHEL-8/ cp /path_to_x86_64_images/pxeboot/{vmlinuz,initrd.img}/var/lib/tftpboot/images/RHEL-8/
systemctl enable --now tftp.socket
yum install tftp-server dhcp-server
firewall-cmd --add-service=tftp
grub2-mknetdir --net-directory=/var/lib/tftpboot Netboot directory for powerpc-ieee1275 created. Configure your DHCP server to point to /boot/grub2/powerpc-ieee1275/core.elf
yum install grub2-ppc64-modules
set default=0 set timeout=5 echo -e "\nWelcome to the Red Hat Enterprise Linux 8 installer!\n\n" menuentry 'Red Hat Enterprise Linux 8' { linux grub2-ppc64/vmlinuz ro ip=dhcp inst.repo=http:// 192.168.124.2 /RHEL-8/x86_64/iso-contents-root/ initrd grub2-ppc64/initrd.img }
mount -t iso9660 /path_to_image/name_of_iso/ /mount_point -o loop,ro
cp /mount_point/ppc/ppc64/{initrd.img,vmlinuz} /var/lib/tftpboot/grub2-ppc64/
subnet 192.168.0.1 netmask 255.255.255.0 { allow bootp; option routers 192.168.0.5; group { #BOOTP POWER clients filename "boot/grub2/powerpc-ieee1275/core.elf"; host client1 { hardware ethernet 01:23:45:67:89:ab; fixed-address 192.168.0.112; } } }
systemctl enable --now dhcpd
systemctl enable --now tftp.socket
mokutil --import /usr/share/doc/kernel-keys/USD(uname -r)/kernel-signing-ca.cer
mokutil --reset
ipmitool -I lanplus -H server_ip_address -U ipmi_user -P ipmi_password chassis power on
ipmitool -I lanplus -H server_ip_address -U ipmi_user -P ipmi_password sol activate
ipmitool -I lanplus -H server_ip_address -U user-name -P ipmi_password sol deactivate
ipmitool -I lanplus -H server_ip_address -U user-name -P ipmi_password chassis power reset
[USB: sdb1 / 2015-10-30-11-05-03-00] Rescue a Red Hat Enterprise Linux system (64-bit kernel) Test this media & install Red Hat Enterprise Linux 8 (64-bit kernel) * Install Red Hat Enterprise Linux 8 (64-bit kernel)
inst.stage2=hd:UUID=your_UUID where your_UUID is the UUID that you recorded. Petitboot Option Editor qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq Device: ( ) sda2 [f8437496-78b8-4b11-9847-bb2d8b9f7cbd] (*) sdb1 [2015-10-30-11-05-03-00] ( ) Specify paths/URLs manually Kernel: /ppc/ppc64/vmlinuz Initrd: /ppc/ppc64/initrd.img Device tree: Boot arguments: ro inst.stage2=hd:UUID=2015-10-30-11-05-03-00 [ OK ] [ Help ] [ Cancel ]
CD/DVD: sr0 Install Repair
ipmitool lan set 1 ipsrc static
ipmitool lan set 1 ipaddr _ip_address_
ipmitool lan set 1 netmask _netmask_address_
ipmitool lan set 1 defgw ipaddr _gateway_server_
Where gateway_server is the gateway for this system.
ipmitool raw 0x06 0x40.
ssh root@<BMC server_ip_address> root@<BMC server password>
root@witherspoon:~# obmcutil poweron
ssh -p 2200 root@<BMC server_ip_address> root@
http://<http_server_ip>/ppc/ppc64/vmlinuz
http://<http_server_ip>/ppc/ppc64/initrd.img
inst.repo=http://<http_server_ip>/<path> ifname=<ethernet_interface_name>:<mac_addr> ip=<os ip>::<gateway>:<2 digit mask>:<hostname>:<ethernet_interface_name>:none nameserver=<name_server>
[USB: sdb1 / 2015-10-30-11-05-03-00] Rescue a Red Hat Enterprise Linux system (64-bit kernel) Test this media & install Red Hat Enterprise Linux 8 (64-bit kernel) * Install Red Hat Enterprise Linux 8 (64-bit kernel)
inst.text inst.stage2=hd:UUID=your_UUID where your_UUID is the UUID that you recorded. Petitboot Option Editor qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq Device: ( ) sda2 [f8437496-78b8-4b11-9847-bb2d8b9f7cbd] (*) sdb1 [2015-10-30-11-05-03-00] ( ) Specify paths/URLs manually Kernel: /ppc/ppc64/vmlinuz Initrd: /ppc/ppc64/initrd.img Device tree: Boot arguments: ro inst.text inst.stage2=hd:UUID=2015-10-30-11-05-03-00 [ OK ] [ Help ] [ Cancel ]
169.254.2.140 Subnet mask: 255.255.255.0 The default IP address of HMC1: 169.254.2.147
ipmitool -I lanplus -H fsp_ip_address -P _ipmi_password_ power on
ipmitool -I lanplus -H fsp_ip_address -P ipmi_password sol activate
ipmitool -I lanplus -H fsp_ip_address -P ipmi_password sol deactivate
ipmitool -I lanplus -H fsp_ip_address -P ipmi_password power off
ipmitool -I lanplus -H fsp_ip_address -P ipmi_password power on
ipmiutil power -u -N ipaddress -P ipmi_password
ipmiutil sol -a -r -N ipaddress -P ipmi_password
ipmiutil sol -d -N ipaddress -P ipmi_password
ipmiutil power -d -N ipaddress -P ipmi_password
ipmiutil power -u -N ipaddress -P ipmi_password
Petitboot (v1.11) [Disk: sda2 / disk ] Red Hat Enterprise Linux ( system ) 8.x *[Encrypted Device: rhel device / device System information System configuration System status log Language Rescan devices Retrieve config from URL Plugins (0) Exit to shell
rd.znet=qeth,0.0.0600,0.0.0601,0.0.0602,layer2=1,portno= <number>
rd.dasd=0.0.0200 rd.dasd=0.0.0202(ro),0.0.0203(ro:failfast),0.0.0205-0.0.0207
rd.zfcp=0.0.4000,0x5005076300C213e9,0x5022000000000000 rd.zfcp=0.0.4000
ro ramdisk_size=40000 cio_ignore=all,!condev inst.repo=http://example.com/path/to/repository rd.znet=qeth,0.0.0600,0.0.0601,0.0.0602,layer2=1,portno=0,portname=foo ip=192.168.17.115::192.168.17.254:24:foobar.systemz.example.com:enc600:none nameserver=192.168.17.1 rd.dasd=0.0.0200 rd.dasd=0.0.0202 rd.zfcp=0.0.4000,0x5005076300c213e9,0x5022000000000000 rd.zfcp=0.0.5000,0x5005076300dab3e9,0x5022000000000000 inst.ks=http://example.com/path/to/kickstart
images/kernel.img 0x00000000 images/initrd.img 0x02000000 images/genericdvd.prm 0x00010480 images/initrd.addrsize 0x00010408
qeth: SUBCHANNELS=" read_device_bus_id , write_device_bus_id , data_device_bus_id " lcs or ctc: SUBCHANNELS=" read_device_bus_id , write_device_bus_id "
SUBCHANNELS="0.0.f5f0,0.0.f5f1,0.0.f5f2"
DNS="10.1.2.3:10.3.2.1"
SEARCHDNS="subdomain.domain:domain"
DASD="eb1c,0.0.a000-0.0.a003,eb10-eb14(diag),0.0.ab1c(ro:diag)"
FCP_ n =" device_bus_ID [ WWPN FCP_LUN ]"
FCP_1="0.0.fc00 0x50050763050b073d 0x4020400100000000" FCP_2="0.0.4000"
inst.stage2=http://hostname/path_to_install_tree/ inst.stage2=http://hostname/path_to_install_tree/ inst.stage2=http://hostname/path_to_install_tree/
ro ramdisk_size=40000 cio_ignore=all,!condev CMSDASD="191" CMSCONFFILE="redhat.conf" inst.vnc inst.repo=http://example.com/path/to/dvd-contents
NETTYPE="qeth" SUBCHANNELS="0.0.0600,0.0.0601,0.0.0602" PORTNAME="FOOBAR" PORTNO="0" LAYER2="1" MACADDR="02:00:be:3a:01:f3" HOSTNAME="foobar.systemz.example.com" IPADDR="192.168.17.115" NETMASK="255.255.255.0" GATEWAY="192.168.17.254" DNS="192.168.17.1" SEARCHDNS="systemz.example.com:example.com" DASD="200-203"
logon user here
cp ipl cms
query disk
cp query virtual storage
cp query virtual osa
cp query virtual dasd
cp query virtual fcp
virt-install --name=<guest_name> --disk size=<disksize_in_GB> --memory=<memory_size_in_MB> --cdrom <filepath_to_iso> --graphics vnc
cp link tcpmaint 592 592 acc 592 fm
ftp <host> (secure
cd / location/of/install-tree /images/ ascii get generic.prm (repl get redhat.exec (repl locsite fix 80 binary get kernel.img (repl get initrd.img (repl quit
VMUSER FILELIST A0 V 169 Trunc=169 Size=6 Line=1 Col=1 Alt=0 Cmd Filename Filetype Fm Format Lrecl Records Blocks Date Time REDHAT EXEC B1 V 22 1 1 4/15/10 9:30:40 GENERIC PRM B1 V 44 1 1 4/15/10 9:30:32 INITRD IMG B1 F 80 118545 2316 4/15/10 9:30:25 KERNEL IMG B1 F 80 74541 912 4/15/10 9:30:17
redhat
cp ipl DASD_device_number loadparm boot_entry_number
cp ipl eb1c loadparm 0
cp set loaddev portname WWPN lun LUN bootprog boot_entry_number
cp set loaddev portname 50050763 050b073d lun 40204011 00000000 bootprog 0
query loaddev
cp ipl FCP_device
cp ipl fc00
cp set loaddev portname WWPN lun FCP_LUN bootprog 1
cp set loaddev portname 20010060 eb1c0103 lun 00010000 00000000 bootprog 1
cp query loaddev
cp ipl FCP_device
cp ipl fc00
>vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=RHEL-9-5-0-BaseOS-x86_64 rd.live.check quiet fips=1
linuxefi /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=RHEL-9-4-0-BaseOS-x86_64 rd.live. check quiet fips=1
modprobe.blacklist=ahci
vncviewer -listen PORT
TigerVNC Viewer 64-bit v1.8.0 Built on: 2017-10-12 09:20 Copyright (C) 1999-2017 TigerVNC Team and many others (see README.txt) See http://www.tigervnc.org for information about TigerVNC. Thu Jun 27 11:30:57 2019 main: Listening on port 5500
oscap xccdf eval --profile ospp --report eval_postinstall_report.html /usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml
subscription-manager register --activationkey= <activation_key_name> --org= <organization_ID>
The system has been registered with id: 62edc0f8-855b-4184-b1b8-72a9dc793b96
subscription-manager syspurpose role --set "VALUE"
subscription-manager syspurpose role --set "Red Hat Enterprise Linux Server"
subscription-manager syspurpose role --list
subscription-manager syspurpose role --unset
subscription-manager syspurpose service-level --set "VALUE"
subscription-manager syspurpose service-level --set "Standard"
subscription-manager syspurpose service-level --list
subscription-manager syspurpose service-level --unset
subscription-manager syspurpose usage --set "VALUE"
subscription-manager syspurpose usage --set "Production"
subscription-manager syspurpose usage --list
subscription-manager syspurpose usage --unset
subscription-manager syspurpose --show
man subscription-manager
subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Current System Purpose Status: Matched
subscription-manager status +-------------------------------------------+ System Status Details +-------------------------------------------+ Overall Status: Disabled Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status. System Purpose Status: Disabled
CP ATTACH EB1C TO *
CP LINK RHEL7X 4B2E 4B2E MR DASD 4B2E LINKED R/W
cio_ignore -r device_number
cio_ignore -r 4b2e
chccwdev -e device_number
chccwdev -e 4b2e
cd /root # dasdfmt -b 4096 -d cdl -p /dev/disk/by-path/ccw-0.0.4b2e Drive Geometry: 10017 Cylinders * 15 Heads = 150255 Tracks I am going to format the device /dev/disk/by-path/ccw-0.0.4b2e in the following way: Device number of device : 0x4b2e Labelling device : yes Disk label : VOL1 Disk identifier : 0X4B2E Extent start (trk no) : 0 Extent end (trk no) : 150254 Compatible Disk Layout : yes Blocksize : 4096 --->> ATTENTION! <<--- All data of that device will be lost. Type "yes" to continue, no will leave the disk untouched: yes cyl 97 of 3338 |#----------------------------------------------| 2%
Rereading the partition table Exiting
fdasd -a /dev/disk/by-path/ccw-0.0.4b2e reading volume label ..: VOL1 reading vtoc ..........: ok auto-creating one partition for the whole disk writing volume label writing VTOC rereading partition table
machine_id=USD(cat /etc/machine-id) kernel_version=USD(uname -r) ls /boot/loader/entries/USDmachine_id-USDkernel_version.conf
title Red Hat Enterprise Linux (4.18.0-80.el8.s390x) 8.0 (Ootpa) version 4.18.0-80.el8.s390x linux /boot/vmlinuz-4.18.0-80.el8.s390x initrd /boot/initramfs-4.18.0-80.el8.s390x.img options root=/dev/mapper/vg_devel1-lv_root crashkernel=auto rd.dasd=0.0.0200 rd.dasd=0.0.0207 rd.lvm.lv=vg_devel1/lv_root rd.lvm.lv=vg_devel1/lv_swap cio_ignore=all,!condev rd.znet=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0 id rhel-20181027190514-4.18.0-80.el8.s390x grub_users USDgrub_users grub_arg --unrestricted grub_class kernel
title Red Hat Enterprise Linux (4.18.0-80.el8.s390x) 8.0 (Ootpa) version 4.18.0-80.el8.s390x linux /boot/vmlinuz-4.18.0-80.el8.s390x initrd /boot/initramfs-4.18.0-80.el8.s390x.img options root=/dev/mapper/vg_devel1-lv_root crashkernel=auto rd.dasd=0.0.0200 rd.dasd=0.0.0207 rd.dasd=0.0.202b rd.lvm.lv=vg_devel1/lv_root rd.lvm.lv=vg_devel1/lv_swap cio_ignore=all,!condev rd.znet=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0 id rhel-20181027190514-4.18.0-80.el8.s390x grub_users USDgrub_users grub_arg --unrestricted grub_class kernel
zipl -V Using config file '/etc/zipl.conf' Using BLS config file '/boot/loader/entries/4ab74e52867b4f998e73e06cf23fd761-4.18.0-80.el8.s390x.conf' Target device information Device..........................: 5e:00 Partition.......................: 5e:01 Device name.....................: dasda Device driver name..............: dasd DASD device number..............: 0201 Type............................: disk partition Disk layout.....................: ECKD/compatible disk layout Geometry - heads................: 15 Geometry - sectors..............: 12 Geometry - cylinders............: 13356 Geometry - start................: 24 File system block size..........: 4096 Physical block size.............: 4096 Device size in physical blocks..: 262152 Building bootmap in '/boot' Building menu 'zipl-automatic-menu' Adding #1: IPL section '4.18.0-80.el8.s390x' (default) initial ramdisk...: /boot/initramfs-4.18.0-80.el8.s390x.img kernel image......: /boot/vmlinuz-4.18.0-80.el8.s390x kernel parmline...: 'root=/dev/mapper/vg_devel1-lv_root crashkernel=auto rd.dasd=0.0.0200 rd.dasd=0.0.0207 rd.dasd=0.0.202b rd.lvm.lv=vg_devel1/lv_root rd.lvm.lv=vg_devel1/lv_swap cio_ignore=all,!condev rd.znet=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0' component address: kernel image....: 0x00010000-0x0049afff parmline........: 0x0049b000-0x0049bfff initial ramdisk.: 0x004a0000-0x01a26fff internal loader.: 0x0000a000-0x0000cfff Preparing boot menu Interactive prompt......: enabled Menu timeout............: 5 seconds Default configuration...: '4.18.0-80.el8.s390x' Preparing boot device: dasda (0201). Syncing disks Done.
0.0.0207 0.0.0200 use_diag=1 readonly=1
cio_ignore -r device_number
cio_ignore -r 021a
echo add > /sys/bus/ccw/devices/ dasd-bus-ID /uevent
echo add > /sys/bus/ccw/devices/0.0.021a/uevent
machine_id=USD(cat /etc/machine-id) kernel_version=USD(uname -r) ls /boot/loader/entries/USDmachine_id-USDkernel_version.conf
title Red Hat Enterprise Linux (4.18.0-32.el8.s390x) 8.0 (Ootpa) version 4.18.0-32.el8.s390x linux /boot/vmlinuz-4.18.0-32.el8.s390x initrd /boot/initramfs-4.18.0-32.el8.s390x.img options root=/dev/mapper/vg_devel1-lv_root crashkernel=auto rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a000000000 rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a100000000 rd.lvm.lv=vg_devel1/lv_root rd.lvm.lv=vg_devel1/lv_swap cio_ignore=all,!condev rd.znet=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0 id rhel-20181027190514-4.18.0-32.el8.s390x grub_users USDgrub_users grub_arg --unrestricted grub_class kernel
title Red Hat Enterprise Linux (4.18.0-32.el8.s390x) 8.0 (Ootpa) version 4.18.0-32.el8.s390x linux /boot/vmlinuz-4.18.0-32.el8.s390x initrd /boot/initramfs-4.18.0-32.el8.s390x.img options root=/dev/mapper/vg_devel1-lv_root crashkernel=auto rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a000000000 rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a100000000 rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a300000000 rd.lvm.lv=vg_devel1/lv_root rd.lvm.lv=vg_devel1/lv_swap cio_ignore=all,!condev rd.znet=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0 id rhel-20181027190514-4.18.0-32.el8.s390x grub_users USDgrub_users grub_arg --unrestricted grub_class kernel
zipl -V Using config file '/etc/zipl.conf' Using BLS config file '/boot/loader/entries/4ab74e52867b4f998e73e06cf23fd761-4.18.0-32.el8.s390x.conf' Target device information Device..........................: 08:00 Partition.......................: 08:01 Device name.....................: sda Device driver name..............: sd Type............................: disk partition Disk layout.....................: SCSI disk layout Geometry - start................: 2048 File system block size..........: 4096 Physical block size.............: 512 Device size in physical blocks..: 10074112 Building bootmap in '/boot/' Building menu 'rh-automatic-menu' Adding #1: IPL section '4.18.0-32.el8.s390x' (default) kernel image......: /boot/vmlinuz-4.18.0-32.el8.s390x kernel parmline...: 'root=/dev/mapper/vg_devel1-lv_root crashkernel=auto rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a000000000 rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a100000000 rd.zfcp=0.0.fc00,0x5105074308c212e9,0x401040a300000000 rd.lvm.lv=vg_devel1/lv_root rd.lvm.lv=vg_devel1/lv_swap cio_ignore=all,!condev rd.znet=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0' initial ramdisk...: /boot/initramfs-4.18.0-32.el8.s390x.img component address: kernel image....: 0x00010000-0x007a21ff parmline........: 0x00001000-0x000011ff initial ramdisk.: 0x02000000-0x028f63ff internal loader.: 0x0000a000-0x0000a3ff Preparing boot device: sda. Detected SCSI PCBIOS disk layout. Writing SCSI master boot record. Syncing disks Done.
0.0.fc00 0x5105074308c212e9 0x401040a000000000 0.0.fc00 0x5105074308c212e9 0x401040a100000000 0.0.fc00 0x5105074308c212e9 0x401040a300000000 0.0.fcd0 0x5105074308c2aee9 0x401040a000000000 0.0.fcd0 0x5105074308c2aee9 0x401040a100000000 0.0.fcd0 0x5105074308c2aee9 0x401040a300000000 0.0.4000 0.0.5000
cio_ignore -r device_number
cio_ignore -r fcfc
echo add > /sys/bus/ccw/devices/device-bus-ID/uevent
echo add > /sys/bus/ccw/devices/0.0.fcfc/uevent
lsmod | grep qeth qeth_l3 69632 0 qeth_l2 49152 1 qeth 131072 2 qeth_l3,qeth_l2 qdio 65536 3 qeth,qeth_l3,qeth_l2 ccwgroup 20480 1 qeth
modprobe qeth
cio_ignore -r read_device_bus_id,write_device_bus_id,data_device_bus_id
cio_ignore -r 0.0.f500,0.0.f501,0.0.f502
znetconf -u Scanning for network devices Device IDs Type Card Type CHPID Drv. ------------------------------------------------------------ 0.0.f500,0.0.f501,0.0.f502 1731/01 OSA (QDIO) 00 qeth 0.0.f503,0.0.f504,0.0.f505 1731/01 OSA (QDIO) 01 qeth 0.0.0400,0.0.0401,0.0.0402 1731/05 HiperSockets 02 qeth
znetconf -a f500 Scanning for network devices Successfully configured device 0.0.f500 (encf500)
znetconf -a f500 -o portname=myname Scanning for network devices Successfully configured device 0.0.f500 (encf500)
echo read_device_bus_id,write_device_bus_id,data_device_bus_id > /sys/bus/ccwgroup/drivers/qeth/group
echo 0.0.f500,0.0.f501,0.0.f502 > /sys/bus/ccwgroup/drivers/qeth/group
ls /sys/bus/ccwgroup/drivers/qeth/0.0.f500
echo 1 > /sys/bus/ccwgroup/drivers/qeth/0.0.f500/online
cat /sys/bus/ccwgroup/drivers/qeth/0.0.f500/online 1
cat /sys/bus/ccwgroup/drivers/qeth/0.0.f500/if_name encf500
lsqeth encf500 Device name : encf500 ------------------------------------------------- card_type : OSD_1000 cdev0 : 0.0.f500 cdev1 : 0.0.f501 cdev2 : 0.0.f502 chpid : 76 online : 1 portname : OSAPORT portno : 0 state : UP (LAN ONLINE) priority_queueing : always queue 0 buffer_count : 16 layer2 : 1 isolation : none
cd /etc/sysconfig/network-scripts # cp ifcfg-enc9a0 ifcfg-enc600
lsqeth -p devices CHPID interface cardtype port chksum prio-q'ing rtr4 rtr6 lay'2 cnt -------------------------- ----- ---------------- -------------- ---- ------ ---------- ---- ---- ----- ----- 0.0.09a0/0.0.09a1/0.0.09a2 x00 enc9a0 Virt.NIC QDIO 0 sw always_q_2 n/a n/a 1 64 0.0.0600/0.0.0601/0.0.0602 x00 enc600 Virt.NIC QDIO 0 sw always_q_2 n/a n/a 1 64
IBM QETH DEVICE=enc9a0 BOOTPROTO=static IPADDR=10.12.20.136 NETMASK=255.255.255.0 ONBOOT=yes NETTYPE=qeth SUBCHANNELS=0.0.09a0,0.0.09a1,0.0.09a2 PORTNAME=OSAPORT OPTIONS='layer2=1 portno=0' MACADDR=02:00:00:23:65:1a TYPE=Ethernet
IBM QETH DEVICE=enc600 BOOTPROTO=static IPADDR=192.168.70.87 NETMASK=255.255.255.0 ONBOOT=yes NETTYPE=qeth SUBCHANNELS=0.0.0600,0.0.0601,0.0.0602 PORTNAME=OSAPORT OPTIONS='layer2=1 portno=0' MACADDR=02:00:00:b3:84:ef TYPE=Ethernet
cio_ignore -r read_device_bus_id,write_device_bus_id,data_device_bus_id
cio_ignore -r 0.0.0600,0.0.0601,0.0.0602
echo add > /sys/bus/ccw/devices/read-channel/uevent
echo add > /sys/bus/ccw/devices/0.0.0600/uevent
lsqeth
ifup enc600
ip addr show enc600 3: enc600: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 3c:97:0e:51:38:17 brd ff:ff:ff:ff:ff:ff inet 10.85.1.245/24 brd 10.34.3.255 scope global dynamic enc600 valid_lft 81487sec preferred_lft 81487sec inet6 1574:12:5:1185:3e97:eff:fe51:3817/64 scope global noprefixroute dynamic valid_lft 2591994sec preferred_lft 604794sec inet6 fe45::a455:eff:d078:3847/64 scope link valid_lft forever preferred_lft forever
ip route default via 10.85.1.245 dev enc600 proto static metric 1024 12.34.4.95/24 dev enp0s25 proto kernel scope link src 12.34.4.201 12.38.4.128 via 12.38.19.254 dev enp0s25 proto dhcp metric 1 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
ping -c 1 192.168.70.8 PING 192.168.70.8 (192.168.70.8) 56(84) bytes of data. 64 bytes from 192.168.70.8: icmp_seq=0 ttl=63 time=8.07 ms
machine_id=USD(cat /etc/machine-id) kernel_version=USD(uname -r) ls /boot/loader/entries/USDmachine_id-USDkernel_version.conf
root=10.16.105.196:/nfs/nfs_root cio_ignore=all,!condev rd.znet=qeth,0.0.0a00,0.0.0a01,0.0.0a02,layer2=1,portno=0,portname=OSAPORT ip=10.16.105.197:10.16.105.196:10.16.111.254:255.255.248.0:nfs‐server.subdomain.domain:enc9a0:none rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
subscription-manager unregister
vmlinuz ... inst.debug
cd /tmp/pre-anaconda-logs/
dmesg
[ 170.171135] sd 5:0:0:0: [sdb] Attached SCSI removable disk
mkdir usb
mount /dev/sdb1 /mnt/usb
cd /mnt/usb
ls
cp /tmp/*log /mnt/usb
umount /mnt/usb
cd /tmp
scp *log user@address:path
scp *log john@192.168.0.122:/home/john/logs/
The authenticity of host '192.168.0.122 (192.168.0.122)' can't be established. ECDSA key fingerprint is a4:60:76:eb:b2:d0:aa:23:af:3d:59:5c:de:bb:c4:42. Are you sure you want to continue connecting (yes/no)?
curl --output directory-path/filename.iso 'new_copied_link_location' --continue-at -
sha256sum rhel-x.x-x86_64-dvd.iso `85a...46c rhel-x.x-x86_64-dvd.iso`
curl --output _rhel-x.x-x86_64-dvd.iso 'https://access.cdn.redhat.com//content/origin/files/sha256/85/85a...46c/rhel-x.x-x86_64-dvd.iso?_auth =141...963' --continue-at -
grubby --default-kernel /boot/vmlinuz-4.18.0-94.el8.x86_64
grubby --remove-args="rhgb" --update-kernel /boot/vmlinuz-4.18.0-94.el8.x86_64
df -h
Filesystem Size Used Avail Use% Mounted on devtmpfs 396M 0 396M 0% /dev tmpfs 411M 0 411M 0% /dev/shm tmpfs 411M 6.7M 405M 2% /run tmpfs 411M 0 411M 0% /sys/fs/cgroup /dev/mapper/rhel-root 17G 4.1G 13G 25% / /dev/sda1 1014M 173M 842M 17% /boot tmpfs 83M 20K 83M 1% /run/user/42 tmpfs 83M 84K 83M 1% /run/user/1000 /dev/dm-4 90G 90G 0 100% /home
free -m
mem= xx M
free -m
grubby --update-kernel=ALL --args="mem= xx M"
Enable=true
systemctl restart gdm.service
X :1 -query address
Xnest :1 -query address
inst.rescue inst.dd=driver_name
inst.rescue modprobe.blacklist=driver_name
The rescue environment will now attempt to find your Linux installation and mount it under the directory: /mnt/sysroot/. You can then make any changes required to your system. Choose 1 to proceed with this step. You can choose to mount your file systems read-only instead of read-write by choosing 2 . If for some reason this process does not work choose 3 to skip directly to a shell. 1) Continue 2) Read-only mount 3) Skip to shell 4) Quit (Reboot)
sh-4.2#
sh-4.2# chroot /mnt/sysroot
sh-4.2# mount -t xfs /dev/mapper/VolGroup00-LogVol02 /directory
sh-4.2# fdisk -l
sh-4.2# chroot /mnt/sysroot/
sh-4.2# sosreport
bash-4.2# ip addr add 10.13.153.64/23 dev eth0
sh-4.2# exit
sh-4.2# cp /mnt/sysroot/var/tmp/sosreport new_location
sh-4.2# scp /mnt/sysroot/var/tmp/sosreport username@hostname:sosreport
sh-4.2# chroot /mnt/sysroot/
sh-4.2# /sbin/grub2-install install_device
sh-4.2# chroot /mnt/sysroot/
sh-4.2# yum install /root/drivers/xorg-x11-drv-wacom-0.23.0-6.el7.x86_64.rpm
sh-4.2# exit
sh-4.2# chroot /mnt/sysroot/
sh-4.2# yum remove xorg-x11-drv-wacom
sh-4.2# exit
ip=192.168.1.15 netmask=255.255.255.0 gateway=192.168.1.254 nameserver=192.168.1.250 hostname=myhost1
ip=192.168.1.15::192.168.1.254:255.255.255.0:myhost1::none: nameserver=192.168.1.250
inst.xtimeout= N
[ ...] rootfs image is not initramfs
sha256sum dvd/images/pxeboot/initrd.img fdb1a70321c06e25a1ed6bf3d8779371b768d5972078eb72b2c78c925067b5d8 dvd/images/pxeboot/initrd.img
grep sha256 dvd/.treeinfo images/efiboot.img = sha256: d357d5063b96226d643c41c9025529554a422acb43a4394e4ebcaa779cc7a917 images/install.img = sha256: 8c0323572f7fc04e34dd81c97d008a2ddfc2cfc525aef8c31459e21bf3397514 images/pxeboot/initrd.img = sha256: fdb1a70321c06e25a1ed6bf3d8779371b768d5972078eb72b2c78c925067b5d8 images/pxeboot/vmlinuz = sha256: b9510ea4212220e85351cbb7f2ebc2b1b0804a6d40ccb93307c165e16d1095db
[ ...] No filesystem could mount root, tried: [ ...] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0) [ ...] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.14.0-55.el9.s390x #1 [ ...] [ ...] Call Trace: [ ...] ([<...>] show_trace+0x.../0x...) [ ...] [<...>] show_stack+0x.../0x [ ...] [<...>] panic+0x.../0x [ ...] [<...>] mount_block_root+0x.../0x [ ...] [<...>] prepare_namespace+0x.../0x [ ...] [<...>] kernel_init_freeable+0x.../0x [ ...] [<...>] kernel_init+0x.../0x [ ...] [<...>] kernel_thread_starter+0x.../0x [ ...] [<...>] kernel_thread_starter+0x.../0x...
inst.stage2=https://hostname/path_to_install_image/ inst.noverifyssl
inst.repo=https://hostname/path_to_install_repository/ inst.noverifyssl
inst.stage2.all inst.stage2=http://hostname1/path_to_install_tree/ inst.stage2=http://hostname2/path_to_install_tree/ inst.stage2=http://hostname3/path_to_install_tree/
[PROTOCOL://][USERNAME[:PASSWORD]@]HOST[:PORT]
inst.nosave=Input_ks,logs
ifname=eth0:01:23:45:67:89:ab
vlan=vlan5:enp0s1
bond=bond0:enp0s1,enp0s2:mode=active-backup,tx_queues=32,downdelay=5000
team=team0:enp0s1,enp0s2
bridge=bridge0:enp0s1,enp0s2
modprobe.blacklist=ahci,firewire_ohci
modprobe.blacklist=virtio_blk