Debian s390x with QEMU user-mode emulation
1.3K
qemu-debootstrap --verbose --arch=s390x --variant=buildd --include=gdb,vim-tiny,less jessie rootfs-debian-s390x http://ftp.jp.debian.org/debian/
$ sudo docker run --rm -i -t inaz2/debian-s390x /bin/bash
root@a2acd75d2ef2:/# uname -a
Linux a2acd75d2ef2 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 s390x GNU/Linux
root@a2acd75d2ef2:/# gcc --version
gcc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@a2acd75d2ef2:/# objdump -d /bin/bash | head
/bin/bash: file format elf64-s390
Disassembly of section .init:
000000008001d6d8 <_init>:
8001d6d8: eb 6f f0 30 00 24 stmg %r6,%r15,48(%r15)
8001d6de: b9 04 00 1f lgr %r1,%r15
8001d6e2: a7 fb ff 60 aghi %r15,-160
root@a2acd75d2ef2:/# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 1.4 0.6 109864 12828 ? Ss 13:01 0:00 /usr/bin/qemu-s390x-static /bin/bash
root 10 0.0 0.4 108996 8328 ? R+ 09:51 0:00 /usr/bin/qemu-s390x-static /bin/ps aux
root@a2acd75d2ef2:/# exit
Content type
Image
Digest
Size
121.6 MB
Last updated
almost 11 years ago
docker pull inaz2/debian-s390x