From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (hermes.mlbassoc.com [64.234.241.98]) by mx1.pokylinux.org (Postfix) with ESMTP id C21E54C81050 for ; Thu, 12 May 2011 11:10:11 -0500 (CDT) Received: by mail.chez-thomas.org (Postfix, from userid 999) id 1E2C7166032F; Thu, 12 May 2011 10:10:11 -0600 (MDT) X-Spam-Checker-Version: SpamAssassin 3.3.2-r929478 (2010-03-31) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2-r929478 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by mail.chez-thomas.org (Postfix) with ESMTP id 9F53516601DF; Thu, 12 May 2011 10:10:10 -0600 (MDT) Message-ID: <4DCC0662.6060404@mlbassoc.com> Date: Thu, 12 May 2011 10:10:10 -0600 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 MIME-Version: 1.0 To: Poky Project Subject: QEMU networking X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2011 16:10:12 -0000 X-Groupsio-MsgNum: 6042 Content-Type: multipart/mixed; boundary="------------050100070602010204090003" --------------050100070602010204090003 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm having a devil of a time getting networking to work when I run qemu (a Poky derived image, of course!) I'm running this on a box which itself is NAT'd to the real internet, like this: +-------------+ +------------------+ | QEMUarm |<------>| My_Desktop |<----> Internet | 192.168.7.2 | | 192.168.7.1 | +-------------+ | 192.168.1.125 | +------------------+ Firstly, something is messing with the routing tables over time and I can't get past the first hop. If I reconfigure the network on the QEMU system like this: # ifconfig eth0 down # ifconfig eth0 up # route add default gw 192.168.7.1 I can then access past "My_Desktop", e.g. # ping 192.168.1.101 -or- # ping 74.125.225.19 (www.google.com) This works fine and the routing table (route.good) is correct. A little while later (minutes), the routing changes and now I can't get past 'My_Desktop' (i.e. I can ping 192.168.1.125, but not 192.168.1.101) The routing table has changed (route.bad) What causes this? I don't have avahi running anywhere and I've explicitly disabled that daemon on the QEMU system. Finally, there seems to be no name resolution - /etc/resolv.conf comes up as: nameserver 127.0.0.1 If I want to resolve any real names, I have to update it manually. Note: I'm running core-image-sato with web-webkit added using zypper. Are others actually using the network with QEMU images? like this? -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ --------------050100070602010204090003 Content-Type: text/plain; name="route.bad" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="route.bad" Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0 0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 eth0 --------------050100070602010204090003 Content-Type: text/plain; name="route.good" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="route.good" Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.7.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 eth0 --------------050100070602010204090003 Content-Type: application/postscript; name="qemu.ps" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu.ps" F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 1 0 20 0 1652 552 poll_s Ss ? 0:06 init [5] 1 0 2 0 20 0 0 0 kthrea S ? 0:00 [kthreadd] 1 0 3 2 20 0 0 0 run_ks S ? 0:00 [ksoftirqd/0] 1 0 5 2 20 0 0 0 worker S ? 0:00 [kworker/u:0] 1 0 6 2 0 -20 0 0 rescue S< ? 0:00 [khelper] 1 0 7 2 20 0 0 0 bdi_sy S ? 0:00 [sync_supers] 1 0 8 2 20 0 0 0 bdi_fo S ? 0:00 [bdi-default] 1 0 9 2 0 -20 0 0 rescue S< ? 0:00 [kblockd] 1 0 10 2 20 0 0 0 hub_th S ? 0:00 [khubd] 1 0 11 2 20 0 0 0 serio_ S ? 0:00 [kseriod] 1 0 12 2 0 -20 0 0 rescue S< ? 0:00 [md] 1 0 13 2 0 -20 0 0 rescue S< ? 0:00 [kmmcd] 1 0 14 2 0 -20 0 0 rescue S< ? 0:00 [rpciod] 1 0 15 2 20 0 0 0 worker S ? 0:03 [kworker/0:1] 1 0 16 2 20 0 0 0 kswapd S ? 0:00 [kswapd0] 1 0 17 2 20 0 0 0 fsnoti S ? 0:00 [fsnotify_mark] 1 0 18 2 0 -20 0 0 rescue S< ? 0:00 [aio] 1 0 19 2 0 -20 0 0 rescue S< ? 0:00 [nfsiod] 1 0 20 2 0 -20 0 0 rescue S< ? 0:00 [crypto] 1 0 25 2 20 0 0 0 scsi_e S ? 0:00 [scsi_eh_0] 1 0 26 2 20 0 0 0 worker S ? 0:00 [kworker/u:1] 1 0 27 2 0 -20 0 0 rescue S< ? 0:00 [kpsmoused] 1 0 28 2 0 -20 0 0 rescue S< ? 0:00 [kstriped] 1 0 29 2 0 -20 0 0 rescue S< ? 0:00 [ksnapd] 1 0 30 2 0 -20 0 0 rescue S< ? 0:00 [usbhid_resumer] 1 0 31 2 20 0 0 0 kjourn S ? 0:00 [kjournald] 1 0 56 2 20 0 0 0 bdi_wr S ? 0:00 [flush-8:0] 5 0 57 1 16 -4 1972 568 poll_s S