Changes between Version 1 and Version 2 of TipAndDoc/VM/QEMU/PowerPC


Ignore:
Timestamp:
Nov 20, 2011 11:55:00 AM (13 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/VM/QEMU/PowerPC

    v1 v2  
    33 * [http://baalzephon.dyndns.org/tech/index.php?Linux%2Fqemu-ppc Linux/qemu-ppc - PukiWiki Plus!] 
    44 
    5  == Ubuntu 11.10 on VMware 7.1.4 == 
     5 = Ubuntu 11.10 on VMware 7.1.4 = 
    66 * Ubuntu 11.10では不可な模様 
    77 
     
    3333 > > * 2011-01-29 
    3434 > >  * 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. 
     35 
     36 = Debian 6.0 on VMware 7.1.4 = 
     37 * s0711489@viola-debian:~$ uname -a 
     38{{{ 
     39Linux viola-debian 2.6.32-5-amd64 #1 SMP Mon Oct 3 03:59:20 UTC 2011 x86_64 GNU/Linux 
     40}}} 
     41 
     42 * s0711489@viola-debian:~$ sudo aptitude install qemu-system 
     43{{{ 
     44Version: 0.12.5+dfsg-3squeeze1 
     45}}} 
     46 
     47 * s0711489@viola-debian:~/debian-ppc$ qemu-img create -f qcow2 debian-ppc.img 4G 
     48{{{ 
     49Formatting 'debian-ppc.img', fmt=qcow2 size=4294967296 encryption=off cluster_size=0 
     50}}} 
     51 
     52 * 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 
     53{{{ 
     54qemu: warning: could not load VGA bios 'video.x' 
     55}}} 
     56  * [Image(qemu-debian-01.png,33%)]] 
     57 
     58 == VNC == 
     59 * X forwardが遅いので、QEMUに内蔵されているVNCに接続する 
     60  * see also [http://blog.livedoor.jp/techblog/archives/64660691.html livedoor Techブログ : オープンソースなPCエミュレータ QEMU] 
     61 
     62 * 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 
     63{{{ 
     64qemu: warning: could not load VGA bios 'video.x' 
     65}}} 
     66 * [[Image(qemu-debian-02.png,33%)]] 
     67 
     68 * Guided partitioning[[br]][[Image(qemu-debian-03.png,33%)]] 
     69  * 基本的にデフォルトのままでよい模様 
     70 * change CD[[br]][[Image(qemu-debian-04.png,33%)]] 
     71  * ここでは<No> 
     72 * network mirror[[br]][[Image(qemu-debian-05.png,33%)]] 
     73  * QEMUのNAT機能によりWANに繋がるため、ミラーは問題なく使用出来る 
     74 * Software Selection[[br]][[Image(qemu-debian-06.png,33%)]] 
     75 * quik boot loader[[br]][[Image(qemu-debian-07.png,33%)]] 
     76 
     77 * 再起動後、OpenBIOSのプロンプトが出て起動しないので、Ctrl+Cで終了しCD-ROM isoをdetachして再起動する[[br]][[Image(qemu-debian-08.png,33%)]] 
     78 
     79 * s0711489@viola-debian:~/debian-ppc$ qemu-system-ppc -m 512 -k ja -hda debian-ppc.img -vnc :0 -redir tcp:2222::22 
     80{{{ 
     81qemu: warning: could not load VGA bios 'video.x' 
     82}}} 
     83  * [[Image(qemu-debian-09.png,33%)]] [[Image(qemu-debian-10.png,33%)]] [[Image(qemu-debian-11.png,33%)]] 
     84 
     85 == ssh login to guest == 
     86 * s0711489@viola-debian:~$ telnet localhost 2222 
     87{{{ 
     88Trying 127.0.0.1... 
     89Connected to localhost. 
     90Escape character is '^]'. 
     91SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze1 
     92 
     93Protocol mismatch. 
     94Connection closed by foreign host. 
     95}}} 
     96 * s0711489@viola-debian:~$ ssh localhost -p 2222 
     97 
     98 * s0711489@debian-ppc:~$ uname -a 
     99{{{ 
     100Linux debian-ppc 2.6.32-5-powerpc #1 Mon Oct 3 04:26:33 UTC 2011 ppc GNU/Linux 
     101}}} 
     102 * s0711489@debian-ppc:~$ lspci 
     103{{{ 
     10400:00.0 Host bridge: Motorola MPC106 [Grackle] 
     10500:01.0 VGA compatible controller: Technical Corp. Device 1111 
     10600:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS) 
     10700:03.0 IDE interface: Silicon Image, Inc. PCI0646 (rev 07) 
     10800:04.0 Unassigned class [ff00]: Apple Computer Inc. Heathrow Mac I/O 
     109}}} 
     110 * s0711489@debian-ppc:~$ cat /proc/cpuinfo 
     111{{{ 
     112processor       : 0 
     113cpu             : 740/750 
     114temperature     : 62-64 C (uncalibrated) 
     115clock           : 1000.000000MHz 
     116revision        : 3.1 (pvr 0008 0301) 
     117bogomips        : 33.20 
     118timebase        : 16600483 
     119platform        : PowerMac 
     120model           : Power Macintosh 
     121machine         : Power Macintosh 
     122motherboard     : AAPL,PowerMac G3 MacRISC 
     123detected as     : 49 (PowerMac G3 (Silk)) 
     124pmac flags      : 00000000 
     125pmac-generation : OldWorld 
     126Memory          : 512 MB 
     127}}} 
     128 
     129 * s0711489@debian-ppc:~$ ping google.co.jp -c 1 
     130{{{ 
     131PING google.co.jp (74.125.31.105) 56(84) bytes of data. 
     132 
     133--- google.co.jp ping statistics --- 
     1341 packets transmitted, 0 received, 100% packet loss, time 2ms 
     135}}} 
     136  * ICMPは通らない? 
     137 
     138 * s0711489@debian-ppc:~$ wget -S --spider www.google.co.jp 
     139{{{ 
     140Spider mode enabled. Check if remote file exists. 
     141--2011-11-20 00:04:10--  http://www.google.co.jp/ 
     142Resolving www.google.co.jp... 74.125.31.99, 74.125.31.103, 74.125.31.104, ... 
     143Connecting to www.google.co.jp|74.125.31.99|:80... connected. 
     144HTTP request sent, awaiting response... 
     145  HTTP/1.0 200 OK 
     146  Date: Sat, 19 Nov 2011 15:04:11 GMT 
     147  Expires: -1 
     148  Cache-Control: private, max-age=0 
     149  Content-Type: text/html; charset=Shift_JIS 
     150  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 
     151  Set-Cookie: NID=53=Fc_iIXWtN5Xef7pMnWub3Vfo7KkPWTRjNPMRx516_G4mYiRumQ5q-CUdDIKHiRO6xKKhFHuf4e2ro17d0As68KZKLbMLoBRxVoXyVYtQiR4iEtWudbz2ggUIE-eUixBh; expires=Sun, 20-May-2012 15:04:11 GMT; path=/; domain=.google.co.jp; HttpOnly 
     152  Server: gws 
     153  X-XSS-Protection: 1; mode=block 
     154  X-Frame-Options: SAMEORIGIN 
     155Length: unspecified [text/html] 
     156Remote file exists and could contain further links, 
     157but recursion is disabled -- not retrieving. 
     158}}} 
     159 
     160 * s0711489@debian-ppc:~$ sudo poweroff