[poky] QEMU networking

Gary Thomas gary at mlbassoc.com
Thu May 12 09:10:10 PDT 2011


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
------------------------------------------------------------
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: route.bad
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20110512/4165ccd9/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: route.good
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20110512/4165ccd9/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qemu.ps
Type: application/postscript
Size: 6237 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20110512/4165ccd9/attachment.ps>


More information about the poky mailing list