WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Xen3, dom0=Linux, domU=NetBSD-3.1, ping OK, but no UDP/TCP

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen3, dom0=Linux, domU=NetBSD-3.1, ping OK, but no UDP/TCP
From: "James Youngman" <jay@xxxxxxxxx>
Date: Sun, 11 Mar 2007 13:52:56 +0000
Delivery-date: Sun, 11 Mar 2007 06:52:11 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HdtWpZn2Q8mgFjiwEbwyU16CqP0IRbVO23zX13K4B9hL+0/GHbptwxxV32Qe8mSMsNBNgNKXkzvbIF51CNczIG8t4Z4cTvw4UbWobYeMFVsZL2jClvtbZQdc3AKy/dfDsAtB0mF+b94D9D300zXTf1rSLzKnAOXYNeKNNLy+yh0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=tyZ+IujQbvL30Q9aJvgh8sjc1lRBej5K7dW2ZDKcRhZwbcNGh3HSpYwtfGUt1cL8KGEjGnr++9GOP18Gj1HWr+WdinVWalVNiwzjZqerXprT9IkUwNW6zIbB7HslXSsCft454KaTZG3V9ywB7jwSTnGAn7xbzcfZz+z4vKwMmR8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I am able to ping both ways between the dom0 and domU hosts, but TCP
does not seem to work.   Packets are getting through:

dom0="orbital"
domU="scamp"

1. I can ssh from domU to dom0; the connection shows in netstat on
dom0 as ESTABLISHED, but the sshd process on the dom0 side hangs
forever trying to read data.

2. I can ping both ways between the two machines, however.  I can also
ping another host on the same Ethernet segment (the router, in fact).

3. Traceroute from domU to dom0 works.  Also from dom0 to domU.  1 hop
only, both ways.  But note that while tcpdump sends UDP packets, it
only needs to receive ICMP packets.

4. I can perform DNS lookups, using as a server another machine on the
same physical segment as the dom0 box.

5. Networking on the dom0 box appears to work normally (with the
exception of being able to communicate with the domU guest).

Here is some configuration information.


A. First, the domU config file:
# cat /etc/xen/vmNetBSD_1.config
# Start of configuration file.
name ="vmNetBSD_1"
kernel = "/var/vserver/Xen/kernels/netbsd-XEN3_DOMU"
root = "/dev/wd0d"
memory = 128
disk = ['file:/var/vserver/Xen/images/vm-NetBSD_1-root.img,0x03,w',
       'file:/var/vserver/Xen/images/vm-NetBSD_1-swap.img,0x04,w'
]
# network
vif = [ 'bridge=xenbr0' ]
# End of configuration file.

B. The guest list
# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      873     2 r-----    371.9
vmNetBSD_1                                 9      128     1 -b----      2.1


C. The bridge:
#
# brctl show
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              vif0.0
                                                       peth0
                                                       vif9.0

D. Network setup on the dom0 box:
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:A0:C9:0F:5C:80
         inet addr:192.168.15.42  Bcast:192.168.15.255  Mask:255.255.255.0
         inet6 addr: fe80::2a0:c9ff:fe0f:5c80/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:1969 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2016 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:1284927 (1.2 MiB)  TX bytes:346377 (338.2 KiB)

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:119 errors:0 dropped:0 overruns:0 frame:0
         TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:18388 (17.9 KiB)  TX bytes:18388 (17.9 KiB)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:2094 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2133 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:1300287 (1.2 MiB)  TX bytes:350978 (342.7 KiB)

vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:2016 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1969 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:346377 (338.2 KiB)  TX bytes:1284927 (1.2 MiB)

vif9.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:56 errors:0 dropped:0 overruns:0 frame:0
         TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:2745 (2.6 KiB)  TX bytes:5904 (5.7 KiB)

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:28 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:1424 (1.3 KiB)  TX bytes:0 (0.0 b)


# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.15.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         192.168.15.1    0.0.0.0         UG    0      0        0 eth0
# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     0    --  anywhere             anywhere            PHYSDEV
match --physdev-in vif9.0

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

# lsmod | grep ip
ip_conntrack           49856  0
nfnetlink               7448  1 ip_conntrack
iptable_filter          3872  1
ip_tables              13892  1 iptable_filter
x_tables               14084  2 xt_physdev,ip_tables
ipv6                  229088  24

E. Network setup on the domU box:-

# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            192.168.15.1       UGS         0        0      -  xennet0
127/8              127.0.0.1          UGRS        0        0  33192  lo0
127.0.0.1          127.0.0.1          UH          1       26  33192  lo0
192.168.15/24      link#2             UC          2        0      -  xennet0
192.168.15.1       00:13:10:29:10:c8  UHLc        1       15      -  xennet0
192.168.15.42      00:a0:c9:0f:5c:80  UHLc        0       22      -  xennet0

XNS:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

ISO:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

X.25:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

AppleTalk:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface

Internet6:
Destination                        Gateway
Flags     Refs     Use    Mtu  Interface
::/104                             ::1                            UGRS
      0        0      -  lo0 =>
::/96                              ::1                            UGRS
      0        0      -  lo0
::1                                ::1                            UH
     12        2  33192  lo0
::127.0.0.0/104                    ::1                            UGRS
      0        0      -  lo0
::224.0.0.0/100                    ::1                            UGRS
      0        0      -  lo0
::255.0.0.0/104                    ::1                            UGRS
      0        0      -  lo0
::ffff:0.0.0.0/96                  ::1                            UGRS
      0        0      -  lo0
2002::/24                          ::1                            UGRS
      0        0      -  lo0
2002:7f00::/24                     ::1                            UGRS
      0        0      -  lo0
2002:e000::/20                     ::1                            UGRS
      0        0      -  lo0
2002:ff00::/24                     ::1                            UGRS
      0        0      -  lo0
fe80::/10                          ::1                            UGRS
      0        0      -  lo0
fe80::%lo0/64                      fe80::1%lo0                    U
      0        0      -  lo0
fe80::1%lo0                        link#1                         UHL
      0        0      -  lo0
fe80::%xennet0/64                  link#2                         UC
      0        0      -  xennet0
fe80::216:3eff:fe71:c1bb%xennet0   00:16:3e:71:c1:bb              UHL
      0        0      -  lo0
fec0::/10                          ::1                            UGRS
      0        0      -  lo0
ff01::/32                          ::1                            UC
      0        0      -  lo0
ff02::%lo0/32                      ::1                            UC
      0        0      -  lo0
ff02::%xennet0/32                  link#2                         UC
      0        0      -  xennet0

# ifconfig -a
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33192
       inet 127.0.0.1 netmask 0xff000000
       inet6 ::1 prefixlen 128
       inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
xennet0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
       address: 00:16:3e:71:c1:bb
       inet 192.168.15.10 netmask 0xffffff00 broadcast 192.168.15.255
       inet6 fe80::216:3eff:fe71:c1bb%xennet0 prefixlen 64 scopeid 0x2

f. The long guest list

# xm list --long
(domain
   (domid 0)
   (uuid 00000000-0000-0000-0000-000000000000)
   (vcpus 2)
   (cpu_weight 1.0)
   (memory 873)
   (shadow_memory 0)
   (maxmem 873)
   (features )
   (name Domain-0)
   (on_poweroff destroy)
   (on_reboot restart)
   (on_crash restart)
   (state r-----)
   (shutdown_reason poweroff)
   (cpu_time 399.350477433)
   (online_vcpus 2)
)
(domain
   (domid 9)
   (uuid 9e74c1d1-a291-11d9-5ae6-5c75b2aedc8b)
   (vcpus 1)
   (cpu_weight 1.0)
   (memory 128)
   (shadow_memory 0)
   (maxmem 128)
   (features )
   (name vmNetBSD_1)
   (on_poweroff destroy)
   (on_reboot restart)
   (on_crash restart)
   (image
       (linux
           (kernel /var/vserver/Xen/kernels/netbsd-XEN3_DOMU)
           (root /dev/wd0d)
       )
   )
   (device
       (vif
           (backend 0)
           (script vif-bridge)
           (bridge xenbr0)
           (mac 00:16:3e:71:c1:bb)
       )
   )
   (device
       (vbd
           (backend 0)
           (dev 0x03:disk)
           (uname file:/var/vserver/Xen/images/vm-NetBSD_1-root.img)
           (mode w)
       )
   )
   (device
       (vbd
           (backend 0)
           (dev 0x04:disk)
           (uname file:/var/vserver/Xen/images/vm-NetBSD_1-swap.img)
           (mode w)
       )
   )
   (state -b----)
   (shutdown_reason poweroff)
   (cpu_time 2.481514878)
   (online_vcpus 1)
   (up_time 1122.03251195)
   (start_time 1173620019.34)
   (store_mfn 86152)
   (console_mfn 86151)
)


.. any ideas?  Any evidence I should have included?

James.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>