1. Prepare hercules on Fedora Let hercules run as normal user, give the hercules network interface config tool more access rights.

    $ sudo chmod u+s /usr/bin/hercifc
    $ sudo chmod o+rw /dev/net/tun
  2. Download the DVD iso Fedora-DVD-s390x-21.iso

  3. Extract kernel.img, install.img and install.img from above ISO9660 image Above files are in the directory „/images“ in the iso image.

  4. Create target DASD image

    dasdinit -z -linux fedora-21-s390x.img 3390-54 DAROOT

    (see dasdtab.c for sizes)

  5. Fix DVD size for FBA-DASD usage (size must align on a block group, i.e. 120*512 bytes

    truncate -s 4937195520 Fedora-DVD-s390x-21.iso
  6. Change kernel command line file „generic.prm“

    ro ramdisk_size=40000 rd.dasd=0.0.0120 rd.dasd=0.0.0160 rd.dasd=0.0.0180 root=live:/dev/dasdc plymouth.enable=0 selinux=0 text repo=cdrom:/dev/dasdb ip= rd.znet=ctc,0.0.0600,0.0.0601,protocol=0
  7. Enable masquerading on your external internet connection

    $ firewall-cmd --zone=external --change-interface=eth0
  8. Create hercules config file

  9. Add tun0 to the correct firewalld zone

    firewall-cmd --zone=internal --add-interface=tun0

This opens the sshd port on the interface

  1. ssh into anaconda

    ssh install@
  2. Mount the installation DVD Sadly there seems to be a race condition/timing bug in the anaconda installer which is exposed by a very slow machine, a machine like the hercules emulator running on a slow laptop, see bug report 1126227 So when the anaconda installer is still in the start-up phase, switch to the shell console (with Ctrl+B) and mount the installation DVD to /run/install/repo (DRACUT_REPODIR):

    mount /dev/dasdb /run/install/repo

After that the installation DVD is recognised correctly by anaconda. See also this article for some more info.

Reference kernel command line options: anaconda and dracut

Fedora 21 s390x running on hercules s390 emulator: Fedora 21 s390x on hercules«