[[PageOutline]] * [http://baalzephon.dyndns.org/tech/index.php?Linux%2Fqemu-ppc Linux/qemu-ppc - PukiWiki Plus!] = Ubuntu 11.10 on VMware 7.1.4 = * Ubuntu 11.10では不可な模様 * s0711489@viola-ubuntu:~$ uname -a {{{ Linux viola-ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux }}} * s0711489@viola-ubuntu:~$ sudo aptitude install qemu-system {{{ Version: 0.15.50-2011.08-0ubuntu4 }}} * s0711489@viola-ubuntu:~/debian-ppc$ qemu-img create -f qcow2 debian-ppc.img 4G {{{ Formatting 'debian-ppc.img', fmt=qcow2 size=4294967296 encryption=off cluster_size=0 }}} * s0711489@viola-ubuntu:~/debian-ppc$ qemu-system-ppc -m 512 -k ja -hda debian-ppc.img -cdrom debian-6.0.3-powerpc-CD-1.iso -boot d {{{ qemu: hardware error: qemu: could not load PowerPC bios 'openbios-ppc' }}} * [https://bugs.launchpad.net/debian/+source/qemu/+bug/60478 Bug #60478 in qemu (Debian): “Missing files for qemu-system-ppc”] * s0711489@viola-ubuntu:~$ sudo aptitude install qemu-kvm-extras * 解決せず * [https://lists.ubuntu.com/archives/ubuntu-users/2011-July/248391.html how to run a ppc kernel using qemu-system-ppc on ubuntu 11.04?] > * http://pkgs.org/ubuntu-11.04/ubuntu-universe-amd64/qemu-system_0.14.50-2011.03-1-0ubuntu2_amd64.deb.html > > * 2011-01-29 > > * Don't depend on openbios-ppc, openbios-sparc, or openhackware; these are still needed for proper ppc/sparc system use, but these packages aren't available in Ubuntu so that would just make qemu-system uninstallable. = Debian 6.0 on VMware 7.1.4 = * s0711489@viola-debian:~$ uname -a {{{ Linux viola-debian 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux }}} * s0711489@viola-debian:~$ sudo aptitude install qemu-system {{{ Version: 0.12.5+dfsg-3squeeze1 }}} * s0711489@viola-debian:~/debian-ppc$ qemu-img create -f qcow2 debian-ppc.img 4G {{{ Formatting 'debian-ppc.img', fmt=qcow2 size=4294967296 encryption=off cluster_size=0 }}} * s0711489@viola-debian:~/debian-ppc$ qemu-system-ppc -m 512 -k ja -hda debian-ppc.img -cdrom debian-6.0.3-powerpc-CD-1.iso -boot d {{{ qemu: warning: could not load VGA bios 'video.x' }}} * [[Image(qemu-debian-01.png,33%)]] == VNC == * X forwardが遅いので、QEMUに内蔵されているVNCに接続する * see also [http://blog.livedoor.jp/techblog/archives/64660691.html livedoor Techブログ : オープンソースなPCエミュレータ QEMU] * s0711489@viola-debian:~/debian-ppc$ qemu-system-ppc -m 512 -k ja -hda debian-ppc.img -cdrom debian-6.0.3-powerpc-CD-1.iso -boot d -vnc :0 -redir tcp:2222::22 {{{ qemu: warning: could not load VGA bios 'video.x' }}} * [[Image(qemu-debian-02.png,33%)]] * Guided partitioning[[br]][[Image(qemu-debian-03.png,33%)]] * 基本的にデフォルトのままでよい模様 * change CD[[br]][[Image(qemu-debian-04.png,33%)]] * ここでは * network mirror[[br]][[Image(qemu-debian-05.png,33%)]] * QEMUのNAT機能によりWANに繋がるため、ミラーは問題なく使用出来る * Software Selection[[br]][[Image(qemu-debian-06.png,33%)]] * quik boot loader[[br]][[Image(qemu-debian-07.png,33%)]] * 再起動後、OpenBIOSのプロンプトが出て起動しないので、Ctrl+Cで終了しCD-ROM isoをdetachして再起動する[[br]][[Image(qemu-debian-08.png,33%)]] * s0711489@viola-debian:~/debian-ppc$ qemu-system-ppc -m 512 -k ja -hda debian-ppc.img -vnc :0 -redir tcp:2222::22 {{{ qemu: warning: could not load VGA bios 'video.x' }}} * [[Image(qemu-debian-09.png,33%)]] [[Image(qemu-debian-10.png,33%)]] [[Image(qemu-debian-11.png,33%)]] == ssh login to guest == * s0711489@viola-debian:~$ telnet localhost 2222 {{{ Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze1 Protocol mismatch. Connection closed by foreign host. }}} * s0711489@viola-debian:~$ ssh localhost -p 2222 * s0711489@debian-ppc:~$ uname -a {{{ Linux debian-ppc 2.6.32-5-powerpc #1 Mon Oct 3 04:26:33 UTC 2011 ppc GNU/Linux }}} * s0711489@debian-ppc:~$ lspci {{{ 00:00.0 Host bridge: Motorola MPC106 [Grackle] 00:01.0 VGA compatible controller: Technical Corp. Device 1111 00:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS) 00:03.0 IDE interface: Silicon Image, Inc. PCI0646 (rev 07) 00:04.0 Unassigned class [ff00]: Apple Computer Inc. Heathrow Mac I/O }}} * s0711489@debian-ppc:~$ cat /proc/cpuinfo {{{ processor : 0 cpu : 740/750 temperature : 62-64 C (uncalibrated) clock : 1000.000000MHz revision : 3.1 (pvr 0008 0301) bogomips : 33.20 timebase : 16600483 platform : PowerMac model : Power Macintosh machine : Power Macintosh motherboard : AAPL,PowerMac G3 MacRISC detected as : 49 (PowerMac G3 (Silk)) pmac flags : 00000000 pmac-generation : OldWorld Memory : 512 MB }}} * s0711489@debian-ppc:~$ ping google.co.jp -c 1 {{{ PING google.co.jp (74.125.31.105) 56(84) bytes of data. --- google.co.jp ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 2ms }}} * ICMPは通らない? * s0711489@debian-ppc:~$ wget -S --spider www.google.co.jp {{{ Spider mode enabled. Check if remote file exists. --2011-11-20 00:04:10-- http://www.google.co.jp/ Resolving www.google.co.jp... 74.125.31.99, 74.125.31.103, 74.125.31.104, ... Connecting to www.google.co.jp|74.125.31.99|:80... connected. HTTP request sent, awaiting response... HTTP/1.0 200 OK Date: Sat, 19 Nov 2011 15:04:11 GMT Expires: -1 Cache-Control: private, max-age=0 Content-Type: text/html; charset=Shift_JIS Set-Cookie: PREF=ID=452fd1d18eb9137f:FF=0:TM=1321715051:LM=1321715051:S=A2sN7lpFxF9-t3tc; expires=Mon, 18-Nov-2013 15:04:11 GMT; path=/; domain=.google.co.jp Set-Cookie: NID=53=Fc_iIXWtN5Xef7pMnWub3Vfo7KkPWTRjNPMRx516_G4mYiRumQ5q-CUdDIKHiRO6xKKhFHuf4e2ro17d0As68KZKLbMLoBRxVoXyVYtQiR4iEtWudbz2ggUIE-eUixBh; expires=Sun, 20-May-2012 15:04:11 GMT; path=/; domain=.google.co.jp; HttpOnly Server: gws X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN Length: unspecified [text/html] Remote file exists and could contain further links, but recursion is disabled -- not retrieving. }}} * s0711489@debian-ppc:~$ sudo poweroff == install packages == * aptitude install時に、以下のような要求をされることがある模様 {{{ Media Change: Please insert the disc labeled 'Debian GNU/Linux 6.0.3 _Squeeze_ - Official powerpc CD Binary-1 20111008-15:27' in the drive '/media/cdrom/' and press [Enter]. }}} * s0711489@viola-debian:~/debian-ppc$ qemu-system-ppc -m 512 -k ja -hda debian-ppc.img -cdrom debian-6.0.3-powerpc-CD-1.iso -vnc :0 -redir tcp:2222::22 * s0711489@debian-ppc:~$ sudo mount /dev/cdrom /media/cdrom {{{ mount: block device /dev/sr0 is write-protected, mounting read-only }}}