Debian amd64 (wheezy)にHerculesを入れて動かしてみました。
手順はほぼ以下の記事のとおりになります。
Installing Debian under Hercules
変更点は
- DASDは3390-9型(約8GB)をroot用に、3390(約900MB)をswap用に割り当て
- インストーラーはs390x用を使用
- IPアドレスは169.254.0.1と169.254.0.2を使用
したことぐらいです。ちなみに設定ファイルはこちら。
CPUSERIAL 000069 # CPU serial number CPUMODEL 9672 # CPU model number MAINSIZE 512 # Main storage size in megabytes XPNDSIZE 0 # Expanded storage size in megabytes CNSLPORT 3270 # TCP port number to which consoles connect NUMCPU 1 # Number of CPUs LOADPARM 0120.... # IPL parameter OSTAILOR LINUX # OS tailoring PANRATE SLOW # Panel refresh rate (SLOW, FAST) ARCHMODE ESAME # Architecture mode ESA/390 or ESAME # .-----------------------Device number # | .-----------------Device type # | | .---------File name and parameters # | | | # V V V #--- ---- -------------------- # console 001F 3270 # terminal 0009 3215 # reader 000C 3505 ./rdr/kernel.debian ./rdr/parmfile.debian ./rdr/initrd.debian autopad eof # printer 000E 1403 ./prt/print00e.txt crlf # dasd 0120 3390 ./dasd/LINUX.ROOT 0121 3390 ./dasd/LINUX.SWAP # network s390 realbox 0A00,0A01 CTCI -n /dev/net/tun -t 1500 169.254.0.2 169.254.0.1
インストールは前述の手順のとおりですんなりいったのですが、リブートしてもsshできません。
コンソールからログインして確認してみると、ctc0がきちんとupしていないようです。
root@s390:~# .ifconfig ctc0 ifconfig ctc0 ctc0 Link encap:Serial Line IP POINTOPOINT NOARP MTU:32760 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@s390:~#
試しにifup ctc0をおこなってみると構文エラーがあるようです。
root@s390:~# .ifup ctc0 ifup ctc0 /etc/network/interfaces:18: option with empty value ifup: couldn't read interfaces file "/etc/network/interfaces" root@s390:~#
18行目はdns-searchで、こちらの値が空は許されないようです。
root@s390:~# .cat /etc/network/interfaces cat /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto ctc0 iface ctc0 inet static address 169.254.0.2 netmask 255.255.255.255 network 0.0.0.0 broadcast 255.255.255.255 pointopoint 169.254.0.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.11.1 dns-search root@s390:~#
インストール時にDomain name指定を空にしたのが敗因のようです。
インストールし直すのも面倒なので、interfacesファイルからdns-searchの行を取り除いてしまいます。
root@s390:~# .mv /etc/network/interfaces{,.orig} mv /etc/network/interfaces{,.orig} root@s390:~# .grep -v dns-search /etc/network/interfaces.orig > /etc/network/interfaces grep -v dns-search /etc/network/interfaces.orig > /etc/network/interfaces root@s390:~#
すると無事ifupできるようになりました。
root@s390:~# .ifup ctc0 ifup ctc0 615.082310! net ctc0: Connected with remote side root@s390:~# .ifconfig ctc0 ifconfig ctc0 ctc0 Link encap:Serial Line IP inet addr:169.254.0.2 P-t-P:169.254.0.1 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MTU:32760 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@s390:~#