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] Network routing setup problem; domU won't start

To: "'Rich Wales'" <richw@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Network routing setup problem; domU won't start
From: "Artur Linhart - Linux communication" <AL.LINUX@xxxxxxxxxxx>
Date: Wed, 12 Dec 2007 09:09:41 +0100
Delivery-date: Wed, 12 Dec 2007 00:10:29 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <475F781B.40306@xxxxxxxxxxxxxxxxxxxx>
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: <475CC204.2060709@xxxxxxxxxxxxxxxxxxxx><475DFAE1.60208@xxxxxxxxxxxxxxxxxxxx> <475F781B.40306@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acg8gzIpruFggOQeSdukUmI3tzvULQABzoqw
Hello,

        Did You specify also the given IP 172.31.53.254 in your DomU? If the
DomU is not accessible from Dom0, I suppose it is also in the opposite way -
Dom0 is not accessible from Dom0? Are there also any error messages in the
Dom0 log files or any other error messages in DomU?

        With best regards

                Archie

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Rich Wales
Sent: Wednesday, December 12, 2007 6:57 AM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Network routing setup problem; domU won't start

Getting back to my "xm create" network failure:

I think I figured out at least part of what was going wrong.  I
needed to add a "netdev=" parameter in my "vif-script" line.  Once
I did this, the domU came up OK.

However, I've still got a problem.  The new domU does not seem to
be accessible via the net -- not even from the dom0.

Here's what I have so far.  (I moved the "ifconfig" settings for
dom0's dummy interface to my internal bridge out of my custom
network script and into /etc/network/interfaces.)

I notice, BTW, that none of the vif#.#'s in my dom0 have been
assigned the IP address of my domU.  I thought that was supposed
to happen; or am I misunderstanding how the networking works?

/etc/xen/xend-config.sxp
--------------------------------------
(xen-api-server ((unix)))
(xend-http-server yes)
(xend-unix-server yes)
(xend-relocation-server no)
(xend-port 8000)
(xend-address '')
(xend-relocation-hosts-allow '')
(network-script network-whodunit)
(vif-script 'vif-route netdev=dummy0')
(dom0-min-mem 196)
(dom0-cpus 0)
(vncpasswd '')

/etc/xen/scripts/network-whodunit
--------------------------------------
#!/bin/sh
XENDIR="/etc/xen/scripts"
$XENDIR/network-bridge "$@" netdev=eth0   bridge=xenbr0 vifnum=0
$XENDIR/network-bridge "$@" netdev=eth1   bridge=xenbr1 vifnum=1
$XENDIR/network-bridge "$@" netdev=dummy0 bridge=xenbr2 vifnum=2

/etc/xen/template.cfg
--------------------------------------
kernel      = '/boot/vmlinuz-2.6.22-14-xen'
ramdisk     = '/boot/initrd.img-2.6.22-14-xen'
memory      = '384'
root        = '/dev/hda1 ro'
disk        = [ 'phy:vg1/template-disk,hda1,w',
'phy:vg1/template-swap,hda2,w' ]
name        = 'template'
vif         = [ 'mac=f2:01:72:31:53:ff, ip=172.31.53.254, bridge=xenbr2' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

/etc/network/interfaces
--------------------------------------
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
    address 172.29.0.53
    netmask 255.255.255.0
    gateway 172.29.0.2
    post-up ethtool -K eth1 tx off

auto dummy0
iface dummy0 inet static
    address 172.31.53.1
    netmask 255.255.255.0

output of "ifconfig -a"
--------------------------------------
dummy0    Link encap:Ethernet  HWaddr 7E:0E:19:BD:A7:D6
          inet addr:172.31.53.1  Bcast:172.31.53.255  Mask:255.255.255.0
          inet6 addr: fe80::7c0e:19ff:febd:a7d6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:140 (140.0 b)  TX bytes:3307 (3.2 KB)

eth0      Link encap:Ethernet  HWaddr 00:13:D4:23:58:6B
          UP BROADCAST MULTICAST  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:10 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 00:13:D4:23:71:66
          inet addr:172.29.0.53  Bcast:172.29.0.255  Mask:255.255.255.0
          inet6 addr: fe80::213:d4ff:fe23:7166/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15921 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1437 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1245151 (1.1 MB)  TX bytes:124550 (121.6 KB)

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:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:448 (448.0 b)  TX bytes:448 (448.0 b)

pdummy0   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:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:3727 (3.6 KB)

peth1     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:15929 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1445 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1313653 (1.2 MB)  TX bytes:137238 (134.0 KB)
          Interrupt:5

veth0     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  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)

veth3     Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  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.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          BROADCAST MULTICAST  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.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:1437 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15923 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:124550 (121.6 KB)  TX bytes:1245291 (1.1 MB)

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:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3307 (3.2 KB)  TX bytes:210 (210.0 b)

vif0.3    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          BROADCAST MULTICAST  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)

vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet addr:172.31.53.1  Bcast:172.31.255.255  Mask:255.255.255.255
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:9 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 b)  TX bytes:2779 (2.7 KB)

xenbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:90 (90.0 b)

xenbr1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14063 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:916374 (894.8 KB)  TX bytes:300 (300.0 b)

xenbr2    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3027 (2.9 KB)  TX bytes:238 (238.0 b)

output of "netstat -rn"
--------------------------------------
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt
Iface
172.31.53.254   0.0.0.0         255.255.255.255 UH        0 0          0
vif1.0
172.31.53.0     0.0.0.0         255.255.255.0   U         0 0          0
dummy0
172.29.0.0      0.0.0.0         255.255.255.0   U         0 0          0
eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth1
0.0.0.0         172.29.0.2      0.0.0.0         UG        0 0          0
eth1

output of "iptables -n -L"
--------------------------------------
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     0    --  172.31.53.254        0.0.0.0/0           PHYSDEV match
--physdev-in vif1.0
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           PHYSDEV match
--physdev-in vif1.0 udp spt:68 dpt:67

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

output of "xm network-list 1"
--------------------------------------
Idx BE     MAC Addr.     handle state evt-ch tx-/rx-ring-ref BE-path
0   0  f2:01:72:31:53:ff    0     4      8     768  /769
/local/domain/0/backend/vif/1/0

relevant piece of /boot/grub/menu.lst
--------------------------------------
title           Xen 3.1 / Ubuntu 7.10, kernel 2.6.22-14-xen
root            (hd0,0)
kernel          /xen-3.1.gz dom0_mem=256M
module          /vmlinuz-2.6.22-14-xen
root=UUID=2c8d1c7c-4211-4497-9cc3-85cf4521c438 ro console=tty0
module          /initrd.img-2.6.22-14-xen
quiet

-- 
Rich Wales      ===      Palo Alto, CA, USA      ===     richw@xxxxxxxxx
http://www.richw.org   ===   http://en.wikipedia.org/wiki/User:Richwales

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

__________ Informace od NOD32 2714 (20071210) __________

Tato zprava byla proverena antivirovym systemem NOD32.
http://www.nod32.cz



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