[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] No route to localhost in virtual domains

I'm running Xen 2.0.4 over patched 2.6.10 kernel and have problem with routing 
to loopback interface in virtual domains (can't ping Here is how 
it looks:

root@vm1:/tmp# ifconfig
eth0      Link encap:Ethernet  HWaddr AA:00:00:5F:BB:9C
          inet addr:  Bcast:  Mask:
          RX packets:171856 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160196 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:37456710 (35.7 Mb)  TX bytes:51323199 (48.9 Mb)

lo        Link encap:Local Loopback
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

root@vm1:/tmp# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface     *        U     0      0        0 eth0
default         rtr.bg.nc         UG    0      0        0 eth0

When I attempt to add the route manually I get this:

root@vm1:/tmp# /sbin/route add -net netmask lo
SIOCADDRT: No such device

Routing through eth0 works fine. 
Should I somehow export the loopback interface to virtual domains and how?

While still on the topic, I'd like to ask another (probably stupid) networking 
I still can't get the dom0's network running. When virtual machines get 
started and xen-br0 bridge gets up, the MAC address of my NIC gets associated 
with the bridge and no matter what I do, I can't route no packets to and from 
dom0's eth0 inteface. All the other virtual domains have no such problem. Any 
idea how do I solve this?


Ivan Peikov

SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.