IBM | diyIT
Hercules IBM S/390 emulator running in a FreeBSD jail
  • zOS 1.10
  • MVS 3.8j
  • Michigan Terminal System (MTS)

The notes on this page are still a WIP

Those Who Do Not Learn History Are Doomed To Repeat It.



export JAIL=ibm
export JAILHOSTNAME=ibm
export JAILDOMAIN=ahlawat.com
export JAILIP=95
export JAILUSER=X
export JAILUSERID=1000
export JAILUSERVNC=false

/root/FreeBSD/jails/create.sh $JAIL $JAILHOSTNAME $JAILDOMAIN $JAILIP $JAILUSER $JAILUSERID $JAILUSERVNC

iocage fstab -r $JAIL /mnt/ship/certs /mnt/certs nullfs ro 0 0
iocage exec $JAIL "mkdir /data"
iocage fstab -a $JAIL /mnt/ship/$JAIL /data nullfs rw 0 0

iocage set allow_vmm=1 children_max=8 securelevel=1 allow_mount=1 enforce_statfs=1 allow_mount_devfs=1 devfs_ruleset=300 allow_mount_procfs=1 exec_start="/bin/sh /mnt/config/setup_jail.sh" $JAIL 

iocage exec $JAIL "pkg install -y hercules tmux"

iocage exec $JAIL "sysrc firewall_script=/mnt/config/ipfw.rules"

iocage exec $JAIL "sysrc gateway_enable=YES"
iocage exec $JAIL "sysrc natd_enable=YES"
iocage exec $JAIL "sysrc natd_interface=epair0b"
iocage exec $JAIL 'sysrc natd_flags="-f /mnt/config/natd.conf"'

iocage restart $JAIL

iocage console $JAIL
tmux att #start various hercules sessions

Notes:

ifconfig tun95 create ifconfig tun95 inet 172.16.0.95 172.16.0.100 chmod 666 /dev/tun95

iocage exec $JAIL "service ipfw restart"


Infrastructure: Configure pfsense DNS entry for ibm.ahlawat.com 192.168.0.95


.


Notes


Showcased here is a capital and operational cost effective approach, using minimal server and networking hardware with multiple virtualized applications for Home and Business. This solution template can be easily scaled out and adapted for larger Enterprise deployments.
drop by the diyIT Matrix public room at #diyit:matrix.ahlawat.com
if you have any IT questions/feedback or to request pro bono consulting for a nonprofit

message me privately at @sharad:matrix.ahlawat.com
or email me at - sharad@ahlawat.com - pgpkey: 68DD6B89
Networking and Security Technologist.
EngineerĀ andĀ an avid Programmer.

https://sharad.ahlawat.com
strive to learn and pass on the knowledge to the next generation
one day humanity will understand the meaning of life and hopefully it will be more than ASCII 42 = "*" regex for whatever you want it to be,
and destiny is more than just a roll of a pair of dice with 42 dots (Lets nail down Quantum Entanglement)

May you Live Long (Intelligently) and Prosper and work on technology that matters.
© 2024 Sharad Ahlawat

No personal identifying data is collected or any form of analytics/metrics reported to a third-party by this website.