| 35 | |
| 36 | = Debian 6.0 on VMware 7.1.4 = |
| 37 | * s0711489@viola-debian:~$ uname -a |
| 38 | {{{ |
| 39 | Linux 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 | {{{ |
| 44 | Version: 0.12.5+dfsg-3squeeze1 |
| 45 | }}} |
| 46 | |
| 47 | * s0711489@viola-debian:~/debian-ppc$ qemu-img create -f qcow2 debian-ppc.img 4G |
| 48 | {{{ |
| 49 | Formatting '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 | {{{ |
| 54 | qemu: 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 | {{{ |
| 64 | qemu: 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 | {{{ |
| 81 | qemu: 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 | {{{ |
| 88 | Trying 127.0.0.1... |
| 89 | Connected to localhost. |
| 90 | Escape character is '^]'. |
| 91 | SSH-2.0-OpenSSH_5.5p1 Debian-6+squeeze1 |
| 92 | |
| 93 | Protocol mismatch. |
| 94 | Connection closed by foreign host. |
| 95 | }}} |
| 96 | * s0711489@viola-debian:~$ ssh localhost -p 2222 |
| 97 | |
| 98 | * s0711489@debian-ppc:~$ uname -a |
| 99 | {{{ |
| 100 | Linux 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 | {{{ |
| 104 | 00:00.0 Host bridge: Motorola MPC106 [Grackle] |
| 105 | 00:01.0 VGA compatible controller: Technical Corp. Device 1111 |
| 106 | 00:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS) |
| 107 | 00:03.0 IDE interface: Silicon Image, Inc. PCI0646 (rev 07) |
| 108 | 00:04.0 Unassigned class [ff00]: Apple Computer Inc. Heathrow Mac I/O |
| 109 | }}} |
| 110 | * s0711489@debian-ppc:~$ cat /proc/cpuinfo |
| 111 | {{{ |
| 112 | processor : 0 |
| 113 | cpu : 740/750 |
| 114 | temperature : 62-64 C (uncalibrated) |
| 115 | clock : 1000.000000MHz |
| 116 | revision : 3.1 (pvr 0008 0301) |
| 117 | bogomips : 33.20 |
| 118 | timebase : 16600483 |
| 119 | platform : PowerMac |
| 120 | model : Power Macintosh |
| 121 | machine : Power Macintosh |
| 122 | motherboard : AAPL,PowerMac G3 MacRISC |
| 123 | detected as : 49 (PowerMac G3 (Silk)) |
| 124 | pmac flags : 00000000 |
| 125 | pmac-generation : OldWorld |
| 126 | Memory : 512 MB |
| 127 | }}} |
| 128 | |
| 129 | * s0711489@debian-ppc:~$ ping google.co.jp -c 1 |
| 130 | {{{ |
| 131 | PING google.co.jp (74.125.31.105) 56(84) bytes of data. |
| 132 | |
| 133 | --- google.co.jp ping statistics --- |
| 134 | 1 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 | {{{ |
| 140 | Spider mode enabled. Check if remote file exists. |
| 141 | --2011-11-20 00:04:10-- http://www.google.co.jp/ |
| 142 | Resolving www.google.co.jp... 74.125.31.99, 74.125.31.103, 74.125.31.104, ... |
| 143 | Connecting to www.google.co.jp|74.125.31.99|:80... connected. |
| 144 | HTTP 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 |
| 155 | Length: unspecified [text/html] |
| 156 | Remote file exists and could contain further links, |
| 157 | but recursion is disabled -- not retrieving. |
| 158 | }}} |
| 159 | |
| 160 | * s0711489@debian-ppc:~$ sudo poweroff |