Ok we have done for you the difficult stuff, from original reporter:
Hi all,
I'm very very sorry I kept you waiting. In the last time I have been very busy at work. My apologies!
Well, I reproduce the test environment with hercules emulator. You can download (from this link:
http://brain-debug.org/zdebian.tar.xz) everything necessary in order to start the debian-s390x (AKA zdebian) instance.
In the package (xz compressed) you will find the following directories:
|---zlinux
|---dasd/
|---prt/
|---rdr/
|---hercules.cnf
- `dasd/`: it contains the dasd (virtual disk) file `3390.DEBIAN.0100`
- `prt`: the printer device
- `rdr`: the reader device (useful in installation process)
- `hercules.cnf`: emulator configuration file
After extracting the above files, you can start the vm with the following command:
$ sudo hercules -f zlinux/hercules.cnf
at hercules prompt, you have to type:
Command ==> ipl 0100
(wait until the debian login prompt)
At this point, you can connect to vm through a tun device on the real-box which will be connected to a ctc (channel-to-channel) device within emulator.
In my configuration:
- the tun0 device has 10.1.1.1 IP
- the ctc0 device has 10.1.1.2 IP
Then, from your real-box you can connect using ssh client:
$ ssh -l root 10.1.1.2
On debian system, I have already installed `imagemagick` and `librsvg2-bin` packages. Furthermore, I have already copied the img0.svg file in the root directory. Also, you will find generated png files from `convert` and `rsvg-convert` tools.
Eventually, If you want to allow network communication from zdebian machine to external net you have to type the following commands on real-box machine:
$ sudo sysctl -w net.ipv4.ip_forward=1
$ sudo sysctl -w net.ipv4.conf.all.proxy_arp=1
$ sudo iptables -t nat -A POSTROUTING -o eth0 -s 10.1.1.0/24 ! -d 10.1.1.0/24 -j MASQUERADE
(Note: The configuration assumes the default iptables policy is ACCEPT)
I hope this helps. Please, let me know.