qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fabrice Bellard <fabrice.bellard@free.fr>
To: kyle@silverbeach.net, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] problem bringing up QEMU test
Date: Mon, 26 Jan 2004 23:09:36 +0100	[thread overview]
Message-ID: <40159020.20805@free.fr> (raw)
In-Reply-To: <200401260839.20562.kyle@silverbeach.net>

Verify that you don't have firewall (ipchains or iptables) rules that 
prohibit routing to tun0.

Fabrice.

Kyle Hayes wrote:
> I'm doing something wrong somewhere.  I am using Gentoo on x86 as the host.  
> 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 Iface
> 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 
> get it to work before I break things with permissions).  The test image boots 
> 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 20030222 
> (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=ttyS0 root=/dev/hda sb=0x220,5,1,5 ide2=noprobe 
> ide3=noprobe ide4=noprobe ide5=noprobe
> ide_setup: ide2=noprobe
> ide_setup: ide3=noprobe
> ide_setup: ide4=noprobe
> ide_setup: ide5=noprobe
> Initializing CPU#0
> Detected 2592.439 MHz processor.
> Calibrating delay loop... 5164.23 BogoMIPS
> Memory: 28880k/32768k available (1210k kernel code, 3500k reserved, 266k data, 
> 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 = 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=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=20/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).
> Freeing unused kernel memory: 64k freed
> 
> Linux version 2.4.21 (bellard@voyager.localdomain) (gcc version 3.2.2 20030222 
> (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.
> From 172.20.0.2 icmp_seq=1 Destination Host Unreachable
> From 172.20.0.2 icmp_seq=2 Destination Host Unreachable
> From 172.20.0.2 icmp_seq=3 Destination Host Unreachable
> 
> --- 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 Iface
> 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 go 
> through to QEMU.  I first typed ping without the -c and it just kept going...
> 
> 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, but 
> it cannot find any X server that works and then dies.  Until I get simpler 
> things running, I'm not going to worry about that too much :-)
> 
> Best,
> Kyle
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://mail.nongnu.org/mailman/listinfo/qemu-devel
> 
> 

  reply	other threads:[~2004-01-26 22:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-26 16:39 [Qemu-devel] problem bringing up QEMU test Kyle Hayes
2004-01-26 22:09 ` Fabrice Bellard [this message]
2004-01-29  6:12 ` Kyle Hayes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40159020.20805@free.fr \
    --to=fabrice.bellard@free.fr \
    --cc=kyle@silverbeach.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).