-------- Forwarded Message -------- Subject: Re: Fedora 23 s390x installed on Hercules Date: Sat, 6 Feb 2021 13:33:46 -0500 From: Dell-Edward dell.coleman@gmail.com To: s390x@lists.fedoraproject.org
This goes long fine but ends with a message cant find /dev/root What next? how do I get to have the dev dir creted on the new file system? Many thx..
To do the install I downloaded the ISO to my x86 machine, and used the x86 httpd server to perform the install.
With the httpd server running and the ISO mounted at a location httpd could access. mkdir /var/www/html/install/DVD1/ mount -o loop Fedora-Server-DVD-s390x-23.iso /var/www/html/install/DVD1/
I started hercules and issued this command to begin the install; ipl ks-lvm.ins
where ks-lvm.ins is: * minimal lpar ins file images/kernel.img 0x00000000 images/initrd.img 0x02000000 images/generic.prm.kslvm 0x00010480 images/initrd.addrsize 0x00010408
and images/generic.prm.kslvm is ro ramdisk_size=40000 cio_ignore=all,!0.0.0009 rd.dasd=0.0.0130 rd.znet=ctc,0.0.0600,0.0.0601,protocol=0 ip=192.168.200.3:192.168.200.4:192.168.200.4:255.255.255.0:f23-s390x.edu:slccw0.0.0600:none nameserver=192.168.1.254 inst.repo=http://192.168.200.4/install/DVD1 ks=http://192.168.200.4/install/f23-lvm.ks
and /var/www/html/install/f23-lvm.ks is url --url=http://192.168.200.4/install/DVD1 text part /boot --fstype="ext4" --size=500 part pv.01 --grow --size 1 volgroup Fedora --pesize=32768 pv.01 logvol / --grow --size=2048 --name=Root --vgname=Fedora logvol swap --fstype="swap" --size=2048 --name=Swap --vgname=Fedora zerombr bootloader --location=mbr clearpart --all --initlabel logging --level=debug rootpw --plaintext fedora firewall --enabled keyboard us lang en_US timezone --isUtc America/New_York poweroff %packages --ignoremissing end
and fedora.cnf is
CPUSERIAL 002623 # CPU serial number CPUMODEL 2097 # CPU model number MODEL EMULATOR # STSI returned model PLANT ZZ # STSI returned plant MANUFACTURER HRC # STSI returned manufacturer LPARNAME HERCULES # DIAG 204 returned lparname CPUVERID FD # CPU Version Identification MAINSIZE 2048 # Main storage size in megabytes XPNDSIZE 0 # Expanded storage size in megabytes NUMCPU 2 # Number of CPUs ARCHMODE z/Arch # Architecture mode S/370, ESA/390 or z/Arch ECPSVM NO # VM Assist : NO or Level (20 recommended) OSTAILOR LINUX # OS tailoring SYSEPOCH 1900 # Base year for initial TOD clock PANRATE FAST # Panel refresh rate HTTPPORT 8081 # 127.0.0.1:8081 CNSLPORT 3270 # TCP port number to which consoles connect # .-----------------------Device number # | .-----------------Device type # | | .---------File name and parameters # | | | # V V V # ---- ---- -------------------- 0009 3215-C / noprompt 000C 3505 images/kernel.img images/generic.prm images/initrd.img autopad 001F 3270 # root's password is "fedora" # # dasdinit -bz2 -r linux-fba.130 9336 16777216 # or # dd if=/dev/zero of=linux-fba.130.raw bs=1 count=0 seek=8G # dasdcopy -o CFBA -bz2 -r linux-fba.130.raw linux-fba.130 #0130 9336 dasd/linux-fba.130 # # dasdinit -bz2 -linux linux-ckd.130 3390-9 LNX000 0130 3390 dasd/linux-ckd.130 # # CTC network # run "iptables -t nat -A POSTROUTING -s 192.168.200.0/24 -d 0.0.0.0/0 -j MASQUERADE" # "echo 1 > /proc/sys/net/ipv4/ip_forward" # for allowing the Fedora VM to access external networks 0600.2 3088 CTCI /dev/net/tun 1492 192.168.200.3 192.168.200.4 255.255.255.255
It was over a month ago that I did this, but I think these are what worked for me after a good bit of trial and error.
Karl
You need a root= statement in the generic.prm file. For example here’s what we use for a RHEL7 ISO mounted on an internal NFS server:
root=live:nfs://172.17.16.45/export/redhat/rhel7/s390x/iso/images/install.img
Neale Ferguson
From: Dell-Edward dell.coleman@gmail.com Reply-To: Fedora s390x@lists.fedoraproject.org Date: Sunday, February 7, 2021 at 05:40 To: Fedora s390x@lists.fedoraproject.org Subject: Fedora 23 s390x installed on Hercules
-------- Forwarded Message -------- Subject:
Re: Fedora 23 s390x installed on Hercules
Date:
Sat, 6 Feb 2021 13:33:46 -0500
From:
Dell-Edward dell.coleman@gmail.commailto:dell.coleman@gmail.com
To:
s390x@lists.fedoraproject.orgmailto:s390x@lists.fedoraproject.org
This goes long fine but ends with a message cant find /dev/root What next? how do I get to have the dev dir creted on the new file system? Many thx..
[cid:image001.png@01D6FD37.97A37970]
To do the install I downloaded the ISO to my x86 machine, and used the x86 httpd server to perform the install.
With the httpd server running and the ISO mounted at a location httpd could access. mkdir /var/www/html/install/DVD1/ mount -o loop Fedora-Server-DVD-s390x-23.iso /var/www/html/install/DVD1/
I started hercules and issued this command to begin the install; ipl ks-lvm.ins
where ks-lvm.ins is: * minimal lpar ins file images/kernel.img 0x00000000 images/initrd.img 0x02000000 images/generic.prm.kslvm 0x00010480 images/initrd.addrsize 0x00010408
and images/generic.prm.kslvm is ro ramdisk_size=40000 cio_ignore=all,!0.0.0009 rd.dasd=0.0.0130 rd.znet=ctc,0.0.0600,0.0.0601,protocol=0 ip=192.168.200.3:192.168.200.4:192.168.200.4:255.255.255.0:f23-s390x.edu:slccw0.0.0600:none nameserver=192.168.1.254 inst.repo=http://192.168.200.4/install/DVD1 ks=http://192.168.200.4/install/f23-lvm.ks
and /var/www/html/install/f23-lvm.ks is url --url=http://192.168.200.4/install/DVD1 text part /boot --fstype="ext4" --size=500 part pv.01 --grow --size 1 volgroup Fedora --pesize=32768 pv.01 logvol / --grow --size=2048 --name=Root --vgname=Fedora logvol swap --fstype="swap" --size=2048 --name=Swap --vgname=Fedora zerombr bootloader --location=mbr clearpart --all --initlabel logging --level=debug rootpw --plaintext fedora firewall --enabled keyboard us lang en_US timezone --isUtc America/New_York poweroff %packages --ignoremissing end
and fedora.cnf is
CPUSERIAL 002623 # CPU serial number CPUMODEL 2097 # CPU model number MODEL EMULATOR # STSI returned model PLANT ZZ # STSI returned plant MANUFACTURER HRC # STSI returned manufacturer LPARNAME HERCULES # DIAG 204 returned lparname CPUVERID FD # CPU Version Identification MAINSIZE 2048 # Main storage size in megabytes XPNDSIZE 0 # Expanded storage size in megabytes NUMCPU 2 # Number of CPUs ARCHMODE z/Arch # Architecture mode S/370, ESA/390 or z/Arch ECPSVM NO # VM Assist : NO or Level (20 recommended) OSTAILOR LINUX # OS tailoring SYSEPOCH 1900 # Base year for initial TOD clock PANRATE FAST # Panel refresh rate HTTPPORT 8081 # 127.0.0.1:8081 CNSLPORT 3270 # TCP port number to which consoles connect # .-----------------------Device number # | .-----------------Device type # | | .---------File name and parameters # | | | # V V V # ---- ---- -------------------- 0009 3215-C / noprompt 000C 3505 images/kernel.img images/generic.prm images/initrd.img autopad 001F 3270 # root's password is "fedora" # # dasdinit -bz2 -r linux-fba.130 9336 16777216 # or # dd if=/dev/zero of=linux-fba.130.raw bs=1 count=0 seek=8G # dasdcopy -o CFBA -bz2 -r linux-fba.130.raw linux-fba.130 #0130 9336 dasd/linux-fba.130 # # dasdinit -bz2 -linux linux-ckd.130 3390-9 LNX000 0130 3390 dasd/linux-ckd.130 # # CTC network # run "iptables -t nat -A POSTROUTING -s 192.168.200.0/24 -d 0.0.0.0/0 -j MASQUERADE" # "echo 1 > /proc/sys/net/ipv4/ip_forward" # for allowing the Fedora VM to access external networks 0600.2 3088 CTCI /dev/net/tun 1492 192.168.200.3 192.168.200.4 255.255.255.255
It was over a month ago that I did this, but I think these are what worked for me after a good bit of trial and error.
Karl
Sorry that my notes on installing f23 s390x didn't work. Perhaps issuing these commands before starting hercules are the missing piece, idk. echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -s 192.168.200.0/24 -d 0.0.0.0/0 -j MASQUERADE systemctl stop firewalld
If the install stalls with the /dev/root message again, when you are dropped into the dracut(?) shell, enter this command in the hercules window. .cat /run/initramfs/rdsosreport.txt
Then exit hercules and browse your hercules.log file for the cat of rdsosreport.txt and look for errors. I think this is the error I had with f23 when I didn't stop firewalld. Failed to connect to 192.168.200.4 port 80: No route to host Warning: Downloading 'http://192.168.200.4/install/DVD1/images/install.img' failed
Karl