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] Networking with more NIC's

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Networking with more NIC's
From: "Peter Fastré" <peter.fastre@xxxxxxxxx>
Date: Fri, 16 Mar 2007 19:33:31 +0100
Delivery-date: Fri, 16 Mar 2007 11:32:41 -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; b=XBhxTyyX/J8/yAHBOSS2/bwegn434IQlbcLvCiyNLAHPzmqjKIfRK1efaBLiIvyf783I81oGzP1ArEfRZ1aC/pGuMgmOM4jFYfmU+GDjjAR8NyKOB5j+3k2QgOgIYxGQCEaxrAtBdrbnZZrRJ5+7+Me5swjlEOHiHKac4n+Bgj0=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=uQQbdoyP0Gg2t2wtj//fCCmWorEcPr1tFxFEGx9g/RTlRD4Km6faIlhZNrjSZuez2c+kjxwqrW198ieRvp9QgXcj+hmSP0u9Gh45lyv8FSGWpu51SQ9kXvLxy+Hx2zT/JWE1tTgOfKvJDutYXWJiAlVG9rUQ0jvCtcTeCVIUrC4=
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
Hello again

I have a working test server with Xen 3.0.4 on Slackware 11. Everything seems to be ok.

Now there's the production server, which has 3 network cards. This is not ok with my Xen setup. I copied the complete Xen installation to the new server. It boots, it detects all network cards (eth0, eth1, eth2).
But when I do xend start it goes wrong. I can do the xend start, but it takes a bit longer than on the other system.
But I cannot start any domU's.

I get the following error:
root@vm01:~# xm create -c vm_base.cfg
Using config file "/etc/xen/vm_base.cfg".
Error: Device 0 (vif) could not be connected. Hotplug scripts not working.

Configuration file /etc/xen/vm_base.cfg
kernel = "/boot/vmlinuz-2.6-xenU "
memory = 256
name = "vm_base"
vif = [ '' ]
dhcp = "off"
ip = "10.200.1.101"
netmask = "255.255.255.0 "
gateway = "10.200.1.1"

disk = ['file:/xen/vm_base.img,sda1,w','file:/xen/vm_base.swap,sda2,w']
root = "/dev/sda1 ro"


Changing the vif = [''] line to vif0 or something, or remove it, as suggested in this mailing list, doesn't work.

It has something to do with the multiple network cards, that's for sure.
When I start the system (without Xen), everything's ok, I can connect to it, and the system can connect to anything.
When I start xend, it removes my default route to internet (why would it do that), and creates the following network interfaces:
eth0      Link encap:Ethernet  HWaddr 00:30:48:33:3B:74
          inet addr:10.200.1.100  Bcast:10.200.1.255  Mask: 255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:140 errors:0 dropped:0 overruns:0 frame:0
          TX packets:30 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11774 (11.4 KiB)  TX bytes:5008 (4.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          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)

peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:1453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:250 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:119040 (116.2 KiB)  TX bytes:42201 (41.2 KiB)
          Base address:0x2000 Memory:da000000-da020000

vif0.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:252 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1438 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:41418 (40.4 KiB)  TX bytes:111587 (108.9 KiB)

xenbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          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)

xenbr1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
          RX packets:1184 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:67438 (65.8 KiB)  TX bytes:0 (0.0 b)

... with the known results (xm cannot start).

When I do a xend stop, that's ok.
But when I do a xend start afterwards, it just deletes all my network cards, making it impossible to connect to it!

Maybe there's somethin gwrong with the network scripts, I hope someone can point me into the right direction?

Regards

Peter

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