How to set up Mainframe in Raspberry Pi

  • Home
  • /
  • How to set up Mainframe in Raspberry Pi
How to set up Mainframe in Raspberry Pi

How to set up Mainframe in Raspberry Pi

General 06 Jun 2020 Siva Nadesan

In this article we will see how to install Multiple Virtual Storage, more commonly called MVS operating system into Raspberry Pi.

We will use MVS 3.8j Tur(n)key 4- (“TK4-"). This a ready to use OS/VS2 MVS 3.8j system built specifically to run under the Hercules System/370, ESA/390, and z/Architecture Emulator.


We assume you have already completed the initial setup of Raspberry Pi. If need instructions on how to do the initial setup of Raspberry Pi, Please read How to set up your Raspberry Pi.


Please follow below steps to install MVS in Raspberry Pi

Step 01: Download & Install MVS Turnkey (MVS TK4) Emulation
  • Login into Raspberry Pi in desktop mode

  • Download current version of MVS Turnkey from You can do this just by following this link in chromium browser OR using wget in a terminal session.

  • Open a terminal session, then create a directory for mvs and unzip the content to this new directory

cd /opt
sudo mkdir mvs
sudo unzip /home/pi/Downloads/ -d /opt/mvs/
post thumb
  • Start mvs in unattended mode with the command
sudo ./mvs
  • Successful start will give you below message. DO NOT type any thing in this terminal after this. Just minimize the screen and leave this running.
post thumb
Step 02: Download and Install Terminal

Download a terminal of your choice. You might be familiar with commercial once like PowerTerm TN3270 and Bluezone. Unless you are holding license for a commercial terminal, go a head and download the opensource x3270. x3270 can be installed both on your Raspberry Pi OR windows machine.

Install x3270 on windows machine
post thumb
  • Install wc3270
post thumb
Configure wc3270
  • Open wc3270 and select create new session (new)
post thumb
  • Give a name for for the session.
post thumb
  • Enter the host name OR IP address of your Raspberry Pi with MVS. Host name did not work in my first try, So I had to use IP address.
post thumb
  • MVS is running on port 3270, So enter 3 to change the port number
post thumb
  • Update port number to 3270 and click enter
post thumb
  • Create the session file and save the desktop shortcut
post thumb post thumb
Step 03: Open MVS Session
  • Click on the desktop shortcut for the session
post thumb
  • Press enter after placing the pointer on first line
post thumb
  • Login using HERC01 and CUL8TR
post thumb
  • In the TSO menu enter 2 to select the RFP (Robs’s Programming Facility)
post thumb
  • You are in the RFP menu now. This should give the feel that we are in mainframes now.
post thumb
  • Go back to home screen by pressing F3 and navigate to 1 RFE –> 1 BROWSE –> DATA SET NAME ===> 'SYS2.JCLLIB'. You can try running some test jobs from this library. Today for this article we will try IEBCOPY
post thumb
  • Target dataset before execution
post thumb
  • Target dataset after execution
post thumb
  • From home screen, navigate to 4 QUEUE –> $T PRTN,Q=A –> HO to review the job execution results.
post thumb

Now we have MVS running in Raspberry Pi to work/play/practice in Mainframe. Hope you found this article interesting.


About The Authors
Siva Nadesan

Siva Nadesan is a Principal Data Engineer. His passion includes data and blogging about technologies. He is also the creator and maintainer of