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/
Home Products Support Community News


[Xen-users] xen 3.4.2 networkings - multiple nics to multiple VMs

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xen 3.4.2 networkings - multiple nics to multiple VMs
From: fpt stl <fptstl@xxxxxxxxx>
Date: Wed, 6 Oct 2010 18:17:38 -0500
Delivery-date: Wed, 06 Oct 2010 16:19:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=vPpAHE86/6l1vfw8t7DgcJUDqf0LHIxuunRq5bcfFA4=; b=T/HrpHAkfy59tBUiYHLkEYl5tqxn3lhCqXpUw+SzBAolfnSXcww+g73UYfVErnOvgv Xy+I9Hmq6T4f12/qJf4DjXvRLX3EbDy4DdEd5VR356Nntv0ClWTjZSJHdA6nCNv7XrAE G0lvIWvNHjufsifFtRpa3w+OpWHnJRq56Fc2U=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=x/03nLfdeyRSNX70zAE4rvY5qBnFn4+19KzeibciDfaazwIY0Aw1jNExz8y31+811u 29g8zN5USMI5FPEq84cbeXjuWUcWXvnezruOxRv4ugmbLG6da1e6wPxYP2yogq0QtAb/ kCituQdJgpvoxhIwM3uXDr3YAqMl2PGxpOrno=
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
Greetings all,

I do have some "basic" Xen networking questions, and please help me clarify some misunderstandings.

I have a system with 2 built-in nics (Broadcom) and an add-on network card (Intel) with another 4 nics.
Dom0 is CentOS 5.5 64bit with Xen 3.4.2 installed with the default settings (minus cpu pinning to Dom0 and memory setup for 2GB).
I have 2 guest VMs - VM1 and VM2 - [HVMs] both being CentOS 64bit.
Currently eth4 (Broadcom) is used for all 3 VMs because of the default bridge in xend-config.sxp:

(network-script network-bridge)

(vif-script vif-bridge)
I would really appreciate if anyone of the smart people here can indicate how one can obtain a configuration with Dom0 using eth4 on one bridge, VM1 using eth0 on another bridge and VM2 using eth1 on another bridge.

Here is an example of a config file I used with "xm create":

[root@Dom0 xen]# more VM1 
name = "VM1"
maxmem = 4096
memory = 4096
vcpus = 2
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "c"
pae = 1
acpi = 1
apic = 1
localtime = 0
device_model = "/usr/lib64/xen/bin/qemu-dm"
sdl = 0
vnc = 1
vncunused = 1
keymap = "en-us"
disk = [ "phy:/dev/mapper/VG1-VM1_volume1,hda,w" , ",hdc:cdrom,r" ]
vif = [ "mac=00:12:34:56:78:90,bridge=xenbr0,script=vif-bridge" ]
parallel = "none"
serial = "pty"

The sole reason for multiple bridges and each one with its dedicated nic is to obtain separation between VMs.
All the Ethernet connections will end in one switch. 

I have looked all over the net and I could not find a clear howto for this issue.

Please give me some examples because I am very new to this issue.

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>