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] Problem creating vm with two nics

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Problem creating vm with two nics
From: Martin Aceto <martin.aceto@xxxxxxxxx>
Date: Fri, 27 Nov 2009 14:04:36 -0300
Delivery-date: Fri, 27 Nov 2009 09:05:23 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=nZAXvCYguOUZP6FnEKOUpjaTIcKHGkdVvslIY0cK4Bo=; b=ccvnllPDvfOidn6uv9A58zfV7Vttk9tlYe1g//GFaWwzAtsWGOAdLLvTpuQSQCy1cJ nwkwn5hdTGvvrY28UOPgcELHtLfZaap7i/qobeG8X7NoxxDDabowyU2oHaAW1uLxGxEN 9KbXatksix9guZQRgEs4qimWXmVgZoan5JHQg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qdz1k5C1FF+lKElPMSqD3gkrFrY/0njPt/CL976rX6mV6w1r2YFW58T9aHWA9bPon0 ornDoc75+nTJIRAGzLqqw+vfJmR/OwqZimISNwbBt3Ty4HChvpgdtt5suXul/baHzyzh SyzsnGUuUaBL/SSQ7KF1uVkthwIXuduWkTWUo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello list,

I 'm new on the mailing list. I've been using Xen for several years, but always with basic configurations and it worked for me, also i have several Debian/Xen servers working on production stages and they work really fine.
But now i have  some big trouble that i cannot solve, i'll give you some info to see if someone can give me a hand:

Server: Sun x86
OS: Debian Lenny
Xen Hypervisor: 3.4.22

I need to configure two Nics eth0 and eth1

eth0 is a public network(Internet)
eth1 is a private network (local)

Right now i have the following configuration:

/etc/network/interfases

### Static Mode ###############
# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0 inet static
        address 10.10.10.145
        netmask 255.255.255.240
        network 10.10.10.144
        broadcast 10.10.10.159
        gateway 10.10.10.158

#allow-hotplug eth1
auto eth1
iface eth1 inet static
        address 192.168.10.10
        netmask 255.255.255.0
        network 192.168.10.0
        broadcast 192.168.10.255
        #gateway 192.168.10.1

/etc/xen/xend-config.sxp

(network-script network-bridge-wrapper)
(vif-script vif-bridge)

/etc/xen/scripts/network-
bridge-wrapper

#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1


ifconfig

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)

peth0     Link encap:Ethernet  HWaddr 00:14:4f:ca:47:b8 
          inet6 addr: fe80::214:4fff:feca:47b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6292 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6414 errors:8 dropped:0 overruns:0 carrier:8
          collisions:19 txqueuelen:100
          RX bytes:580331 (566.7 KiB)  TX bytes:3437154 (3.2 MiB)
          Memory:fbee0000-fbf00000

peth1     Link encap:Ethernet  HWaddr 00:14:4f:ca:47:b9 
          inet6 addr: fe80::214:4fff:feca:47b9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:202 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:12120 (11.8 KiB)  TX bytes:846 (846.0 B)
          Memory:fbe60000-fbe80000

xenbr0    Link encap:Ethernet  HWaddr 00:14:4f:ca:47:b8 
          inet addr:10.10.10.145  Bcast:0.0.0.0  Mask:255.255.255.240
          inet6 addr: fe80::214:4fff:feca:47b8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6084 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6401 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:482561 (471.2 KiB)  TX bytes:3436112 (3.2 MiB)

xenbr1    Link encap:Ethernet  HWaddr 00:14:4f:ca:47:b9 
          inet addr:192.168.10.10  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::214:4fff:feca:47b9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 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:0 (0.0 B)  TX bytes:468 (468.0 B)


And when i want to run a virtual machine, it halts when it's booting

NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver

and it doesn't continue! Has anyone have any idea of what am I doing wrong?

Thank you!

--
Martin Aceto
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>