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

Re: [Xen-users] SSH ping etc not working between dom0 and domU's

To: Ilari Mäkelä <ilari@xxxxxx>
Subject: Re: [Xen-users] SSH ping etc not working between dom0 and domU's
From: Jeroen Torrekens <jeroen.torrekens@xxxxxxxxxxx>
Date: Wed, 28 May 2008 16:34:38 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 May 2008 07:35:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <483D4E8A.8090500@xxxxxx>
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>
References: <483D4E8A.8090500@xxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080502)
Ilari Mäkelä wrote:
Hi!

I have a problem with my new Xen setup. I have installed Debian etch with netinstall and I'm using 2.6.18-6-xen-amd64 kernel in my dom0 and 3.0.3-0-4 version xen hypervisor. I'm using four network cards on my system and using three of them as xen bridges and dom0 is using the fourth one only for it's own. So basicly both of my virtual servers use a network card (physical one) of their own. The problem is that I can't get ssh or ping to work between my dom0 and domU's. I can get ssh connection to and from my other linux server using dom0 or one of my domU's and connection to internet works also. Here are my domU config files:

inno:/home/iler# cat /etc/xen/i28
kernel = "/boot/vmlinuz-2.6.18-6-xen-amd64"
ramdisk = "/boot/initrd.img-2.6.18-6-xen-amd64"
memory = 512
name = "i28"
vif = [ 'ip=192.168.1.6,mac=DE:AD:BE:EF:25:10,bridge=xenbr3' ]
disk = ['phy:/dev/vgxen/i28root,sda1,w', 'phy:/dev/vgxen/i28home,sda2,w', 'phy:/dev/vgxen/i28swap,sda3,w']
root = "/dev/sda1 ro"
extra = '4'

inno:/home/iler# cat /etc/xen/happo
kernel = "/boot/vmlinuz-2.6.18-6-xen-amd64"
ramdisk = "/boot/initrd.img-2.6.18-6-xen-amd64"
memory = 512
name = "happo"
vif = [ 'ip=192.168.1.7,mac=DE:AD:BE:EF:22:77,bridge=xenbr2' ]
disk = ['phy:/dev/vgxen/happoroot,sda1,w', 'phy:/dev/vgxen/happohome,sda2,w', 'phy:/dev/vgxen/happoswap,sda3,w']
root = "/dev/sda1 ro"
extra = '4'

Here is ifconfig from dom0:

eth0      Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
         inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:3422 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:347388 (339.2 KiB)  TX bytes:417210 (407.4 KiB)
         Interrupt:16 Base address:0x6000

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:42 errors:0 dropped:0 overruns:0 frame:0
         TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:3480 (3.3 KiB)  TX bytes:3480 (3.3 KiB)

peth2     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:556 errors:0 dropped:0 overruns:0 frame:0
         TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:44043 (43.0 KiB)  TX bytes:561 (561.0 b)
         Interrupt:22 Base address:0xe000

peth3     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:3007 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2197 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:750939 (733.3 KiB)  TX bytes:200367 (195.6 KiB)
         Interrupt:17

peth1_ren Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         UP BROADCAST NOARP  MTU:1500  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:1000
         RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
         Interrupt:18 Base address:0xc000

vif0.1    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: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)

vif0.2    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:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:549 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 b)  TX bytes:43014 (42.0 KiB)

vif0.3    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:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:1072 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 b)  TX bytes:98190 (95.8 KiB)

vif4.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:2092 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2814 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:153192 (149.6 KiB)  TX bytes:730912 (713.7 KiB)

xenbr1    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: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)

xenbr2    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:550 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:35428 (34.5 KiB)  TX bytes:0 (0.0 b)

xenbr3    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:622 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:38284 (37.3 KiB)  TX bytes:0 (0.0 b)

Here is ifconfig from domU:

boing:~# ifconfig
eth0      Link encap:Ethernet  HWaddr DE:AD:BE:EF:25:10
         inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
         inet6 addr: fe80::dcad:beff:feef:2510/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:2799 errors:0 dropped:0 overruns:0 frame:0
         TX packets:2074 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:729820 (712.7 KiB)  TX bytes:179508 (175.3 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: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)


Here is my kernel ip routing table from dom0:

inno:/home/iler# netstat -arn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

and here from one of my dom0:

boing:~# netstat -arn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

When I try to ssh from dom0 to domU I get this (verbose on):

inno:/home/iler# ssh -v 192.168.1.6
OpenSSH_4.3p2 Debian-9etch2, OpenSSL 0.9.8c 05 Sep 2006
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.6 [192.168.1.6] port 22.
debug1: connect to address 192.168.1.6 port 22: No route to host
ssh: connect to host 192.168.1.6 port 22: No route to host

I have asked couple of my friends for help but they couldn't help me so I thought to try this mailing list. So if anyone has ideas please share.

Ilari Mäkelä


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

!DSPAM:87,483d4ea743999245717453!

Hi,

I think you might want to check this:

Here is ifconfig from dom0:

eth0      Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
        inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
        inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
        UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        RX packets:3422 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:347388 (339.2 KiB)  TX bytes:417210 (407.4 KiB)
        Interrupt:16 Base address:0x6000

Especially the hardware address.

Jeroen

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