Hercules s390 zOS Emulator in xendomain

xenhost erstellen

LVM

logische volumes erstellen

lvcreate -L8G -n s390lv xendisk
lvcreate -L2G -n s390swaplv xendisk
mkswap /dev/mapper/xendisk-s390swaplv 
mkfs.ext3 -L s390 /dev/mapper/xendisk-s390lv
tune2fs -c0 /dev/mapper/xendisk-s390lv
mkdir -p /mnt/sarge
mount /dev/mapper/xendisk-s390lv /mnt/sarge

debootstrap

Siehe: debian debootstrap info

debian system vorbereiten

debootstrap --arch i386 sarge /mnt/sarge
mount -t proc proc /mnt/sarge/proc
mount -t sysfs sys /mnt/sarge/sys

chroot

chroot /mnt/sarge
cat >> /etc/bash.bashrc << EOF
alias ll="ls -Al"
EOF
cat >> /etc/hosts << EOF 
127.0.0.1       localhost.localdomain localhost loopback
127.0.0.2       s390
EOF
cat << EOF >> /etc/fstab
/dev/hda1       /       ext3    defaults        0 1 
/dev/hda2       none    swap    sw
proc            /proc   proc    defaults        0 0
sys             /sys    sysfs   defaults        0 0 
none            /tmp    tmpfs   defaults        0 0
EOF
cat << EOF > /etc/network/interfaces
auto lo eth0
iface lo inet loopback

iface eth0 inet static
address 192.168.100.39
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
gateway 192.168.100.1

#ip route add to default via 192.168.100.1 metric 0
EOF
echo "s390" > /etc/hostname
base-config
apt-get update
apt-get install ssh
apt-get install less
exit
cp -ar /lib/modules/2.6.12.6-xenU /mnt/sarge/lib/modules
mv /mnt/sarge/lib/tls /mnt/sarge/lib/tls.disabled

xenhost definieren

cat > /etc/xen/conf/s390 << EOF
kernel = "/boot/vmlinuz-2.6.12.6-xenU"
memory = 128
name = "s390"
vif = ['']
disk = [ 'phy:xendisk/s390lv,hda1,w', 'phy:xendisk/s390swaplv,hda2,w' ]
root = "/dev/hda1 ro"
EOF
umount /mnt/sarge/sys
umount /mnt/sarge/proc
umount /mnt/sarge
xm create -c /etc/xen/conf/s390

Hercules installieren

s390:~# apt-get install hercules
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libbz2-1.0
Suggested packages:
  vmnet
The following NEW packages will be installed:
  hercules libbz2-1.0
0 upgraded, 2 newly installed, 0 to remove and 109 not upgraded.
Need to get 2349kB of archives.
After unpacking 8081kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp-stud.fht-esslingen.de testing/main libbz2-1.0 1.0.3-6 [41.9kB]
Get:2 http://ftp-stud.fht-esslingen.de testing/main hercules 3.03.1-1 [2307kB]
Fetched 2349kB in 0s (2825kB/s)    
Selecting previously deselected package libbz2-1.0.
(Reading database ... 7760 files and directories currently installed.)
Unpacking libbz2-1.0 (from .../libbz2-1.0_1.0.3-6_i386.deb) ...
Selecting previously deselected package hercules.
Unpacking hercules (from .../hercules_3.03.1-1_i386.deb) ...
Setting up libbz2-1.0 (1.0.3-6) ...

Setting up hercules (3.03.1-1) ...

s390:~# mkdir -p /etc/hercules
s390:~# touch /etc/hercules/hercules.cnf

hercules.cnf

hercules.cnf


Systemzugriff (c3270)

apt-get install c3270
c3270

Betriebssysteminstallation (MVS 3.8j)

Zuerst einmal muss man sich das ISO-Image des letzten frei verfügbaren MVS-Releases (Version 3.8j) besorgen. Empfehlenswert ist das Image von der Web-Site http://www.bsp-gmbh.com/turnkey/tk3_faq.html, das neben dem MVS selbst auch über eine Installations-Routine verfügt.

Auch neuere zOS-Versionen können unter Hercules betrieben werden, doch benötigt man hierfür eine gültige zOS-Lizenz!

 
wissen/gpl/xen/hercules-s390-emulation-in-xenguest.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de