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


Re: [Xen-users] xen networking Fedora 8

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] xen networking Fedora 8
From: Bojana Petrovic <bojanap@xxxxxxxxx>
Date: Mon, 19 Oct 2009 11:07:28 +0200
Delivery-date: Mon, 19 Oct 2009 02:08:19 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=j+Yjwek7/lWAIHhXvjHYfB8FayrAFa44cQShIbwamS8=; b=cCuFLSZnqU0bb6yu2l6IGVILGav5w/YVfK6+Gn8jBOmvH26ANKcPRQwjyGETOFPWnl qUDVZ2KyUtWeSn3FQ9kLyc0Cywd9aLWiXfxWSMaP/7uDkAVPyrthg4l/GFzqU73/hCje F1iMvAmjuNyGXYwlg2OsiwkFTOulNHOVbaHXI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JPdKtn/VPxxXZSB769QTwrDAFPbvFtA5kjXDyLLI24wuHJi/F/yPjWkiW3TWEWgsUx iYVxfea1VoZHznPVTBe32SKcBSjjPi4IN1vnK5odW7LrZokrXjgGcMB+3uyZVoOhIMAx iGiPDuPMpnSGgreU5x5XxzWvOswwwBENM1AYo=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0910190135p41bda08fh5722fb661725b1c6@xxxxxxxxxxxxxx>
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>
References: <bd0aeb0a0910190123t3d41d02bq7783fc5838310e96@xxxxxxxxxxxxxx> <7207d96f0910190135p41bda08fh5722fb661725b1c6@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

Thanks for answering; I have just a few more questions to make sure that I understood.

If I connect all virtual machines to the bridge that is made with OS's networking script, do my virtual machines get IP addresses over the DHCP? I tried something like that and I didn�t manage. I want virtual machines to be reachable from outside networks. Can I somehow configure tap0 or vif11.0 interface inside domU�s to make them available in the outside world?

Sorry if the question sound simple for you :-)

On Mon, Oct 19, 2009 at 10:35 AM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
On Mon, Oct 19, 2009 at 3:23 PM, Bojana Petrovic <bojanap@xxxxxxxxx> wrote:
> I'm running Xen on Fedora 8 and I'm trying to make virtual machines
> communicate between each others. On CentOS I was able to make
> network-bridge-custom file and to point out on him from xend-config.sxp
> file. That file looked like something like this:
> #!/bin/sh
> #/etc/xen/scripts/network-
> bridge $1 netdev=eth0 bridge=xenbr0 vifnum=0
> /etc/xen/scripts/network-bridge-noifup $1 netdev=eth1 bridge=xenbrBC
> vifnum=1
> /etc/xen/scripts/network-bridge-noifup $1 netdev=eth2 bridge=xenbrBD
> vifnum=2

If it's getting too complicated to handle, just use OS's networking
script to create bridge and simply comment-out network-script entry on

> After that in ifconfig I was able to see new bridge interfaces xenbrBC and
> xenbrBD. In virtual machines config files I assigned MAC addresses to those
> bridges, and communication betweem virtual domains worked perfect!
> How to make something like this in Fedora?

Sorry, I've never used F8.
What does "brctl show" shows using the default setup? I'm guessing it
has something to do with the fact that default bridge name changed
from xenbr0 to eth0. Again, I'd recommend creating bridges using OS's
networking script (/etc/sycsonfig/network-scripts/ifcfg-*)

> I can see, that when I start virtual machine I have more two new interfaces
> tap0 and vif11.0! They are assigned to virbr0 :
> brctl show
> bridge name � � bridge id � � � � � � � STP enabled � � interfaces
> br0 � � � � � � 8000.000000000000 � � � no
> virbr0 � � � � �8000.c2a429e6b58f � � � no � � � � � � �tap0
> � � �vif11.0
> I'm not sure what exactly to do with these two interfaces? I'm trying to use
> network-bridge-custom here on Fedora 8 but it seems that it doesn't work.
> Does anybody know how to make full connection between virtual machines?

virbr0 is created by libvirt. tap0 and vif11.0 is HVM domU's
interfaces. Don't know about br0.


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