From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Al9mH-0006jH-Lt for qemu-devel@nongnu.org; Mon, 26 Jan 2004 11:39:57 -0500 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Al9lh-0006Tm-8o for qemu-devel@nongnu.org; Mon, 26 Jan 2004 11:39:52 -0500 Received: from [24.21.209.245] (helo=pdx.silverbeach.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Al9lg-0006TQ-Fh for qemu-devel@nongnu.org; Mon, 26 Jan 2004 11:39:20 -0500 Received: from localhost (localhost [127.0.0.1]) by pdx.silverbeach.net (Postfix) with ESMTP id D59A41BF47C for ; Mon, 26 Jan 2004 08:39:21 -0800 (PST) From: Kyle Hayes Date: Mon, 26 Jan 2004 08:39:20 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200401260839.20562.kyle@silverbeach.net> Subject: [Qemu-devel] problem bringing up QEMU test Reply-To: kyle@silverbeach.net, qemu-devel@nongnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I'm doing something wrong somewhere. I am using Gentoo on x86 as the host.= =20 I've loaded the precompiled QEMU binary 0.5.2. I have the TUN/TAP device set up on the host: bash-2.05b# ifconfig tap0 tap0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00 inet addr:172.20.0.1 Bcast:172.20.255.255 Mask:255.255.0.0 inet6 addr: fe80::fcfd:ff:fe00:0/64 Scope:Link UP BROADCAST RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:55 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:5416 (5.2 Kb) I set up a direct host route to the other end: bash-2.05b# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Ifa= ce 172.20.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tap0 10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tap0 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0 I'm running QEMU as root (not particularly safe, but I want to see if I can= =20 get it to work before I break things with permissions). The test image boo= ts=20 and runs, but the network doesn't work: bash-2.05b# ./qemu.sh Connected to host network interface: tun0 Load kernel at 0xac100000 (0x00100000) Linux version 2.4.21 (bellard@voyager.localdomain) (gcc version 3.2.2 20030= 222=20 (Red Hat Linux 3.2.2-5)) #5 Tue Nov 11 18:18:53 CET 2003 BIOS-provided physical RAM map: BIOS-e801: 0000000000000000 - 000000000009f000 (usable) BIOS-e801: 0000000000100000 - 0000000002000000 (usable) 32MB LOWMEM available. On node 0 totalpages: 8192 zone(0): 4096 pages. zone(1): 4096 pages. zone(2): 0 pages. Kernel command line: console=3DttyS0 root=3D/dev/hda sb=3D0x220,5,1,5 ide2= =3Dnoprobe=20 ide3=3Dnoprobe ide4=3Dnoprobe ide5=3Dnoprobe ide_setup: ide2=3Dnoprobe ide_setup: ide3=3Dnoprobe ide_setup: ide4=3Dnoprobe ide_setup: ide5=3Dnoprobe Initializing CPU#0 Detected 2592.439 MHz processor. Calibrating delay loop... 5164.23 BogoMIPS Memory: 28880k/32768k available (1210k kernel code, 3500k reserved, 266k da= ta,=20 64k init, 0k highmem) Dentry cache hash table entries: 4096 (order: 3, 32768 bytes) Inode cache hash table entries: 2048 (order: 2, 16384 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes) Page-cache hash table entries: 8192 (order: 3, 32768 bytes) CPU: L1 I cache: 8K<6>CPU: L2 cache: 128K CPU: Intel Pentium Pro stepping 03 Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket apm: BIOS not found. Starting kswapd Journalled Block Device driver loaded Detected PS/2 Mouse Port. pty: 256 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with no serial options enabled ttyS00 at 0x03f8 (irq =3D 4) is a 16450 ne.c:v1.10 9/23/94 Donald Becker (becker@scyld.com) Last modified Nov 1, 2000 by Paul Gortmaker NE*000 ethercard probe at 0x300: 52 54 00 12 34 56 eth0: NE2000 found at 0x300, using IRQ 9. RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=3D= xx hda: QEMU HARDDISK, ATA DISK drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hda: attached ide-disk driver. hda: 20480 sectors (10 MB) w/256KiB Cache, CHS=3D20/16/63 Partition check: hda: Soundblaster audio driver Copyright (C) by Hannu Savolainen 1993-1996 NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 2048 bind 4096) NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). =46reeing unused kernel memory: 64k freed Linux version 2.4.21 (bellard@voyager.localdomain) (gcc version 3.2.2 20030= 222=20 (Red Hat Linux 3.2.2-5)) #5 Tue Nov 11 18:18:53 CET 2003 QEMU Linux test distribution (based on Redhat 9) Type 'exit' to halt the system sh-2.05b# ping -c 3 172.20.0.1 PING 172.20.0.1 (172.20.0.1) 56(84) bytes of data. =46rom 172.20.0.2 icmp_seq=3D1 Destination Host Unreachable =46rom 172.20.0.2 icmp_seq=3D2 Destination Host Unreachable =46rom 172.20.0.2 icmp_seq=3D3 Destination Host Unreachable =2D-- 172.20.0.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2019ms , pipe 3 sh-2.05b# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Ifa= ce 172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 sh-2.05b# I cannot ping the other direction either (host to QEMU). Also ^C doesn't g= o=20 through to QEMU. I first typed ping without the -c and it just kept going.= =2E. Clearly I'm not doing something right here. Any clues? I'm trying to work my way up to booting KNOPPIX in QEMU. It boots fine, bu= t=20 it cannot find any X server that works and then dies. Until I get simpler= =20 things running, I'm not going to worry about that too much :-) Best, Kyle