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] How to use DomU as network backend?

To: Peter Fokkinga <peter@xxxxxxxxxxx>
Subject: Re: [Xen-users] How to use DomU as network backend?
From: Travail <travail@xxxxxxx>
Date: Fri, 12 May 2006 11:09:51 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 12 May 2006 05:30:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060511231626.m6oljqwmtddwkc44@xxxxxxxxxxxxxxxx>
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: <44630229.8020203@xxxxxxx> <20060511231626.m6oljqwmtddwkc44@xxxxxxxxxxxxxxxx>
Reply-to: travail@xxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051014)
Hi Peter,

thank you for your reply.
It is almost the configuration i am looking for.

Peter Fokkinga wrote:
> Quoting Matthias Wolf <matze.wolf@xxxxxxx>:
> 
>> i really stuck. I am trying to get a DomU working as network backend.
>> All my systems are based on Gentoo with Xen 3.0.2 and Kernel 2.6.16.
>>
> 
> I'm not sure I completely understand your situation, but I have
> a domU that uses two physical PCI network cards and is connected
> to a bridge which is defined in dom0. Maybe the configuration
> below gives you some inspiration ;-)
> 
> Cheers, Peter
> 
> /etc/xen/vm.ein
> ---------------
> vmid = 3
> name = "ein"
> 
> kernel = "/vserver/kernels/vmlinuz-2.6.16-xenU"
> root   = "/dev/hda1"
> memory = 256
> extra  = "quiet 2"
> 
> pci = ['01:00.0', '02:00.0']
> 
> disk = ['phy:/dev/vg1/einU,hda1,w']
> 
> vif      = ['ip=10.0.2.1,bridge=xenbr0']
> ip       = "10.0.2.1"
> netmask  = "255.255.0.0"
> gateway  = "10.0.1.1"
> hostname = "ein.lan"

My configuration looks like this:

/etc/xen/firewall.cfg
---------------
name = "firewall"

kernel = "/boot/vmlinuz-2.6.16-xenU-firewall"
root = "/dev/sda1"
memory = 256
extra = "gentoo=nodevfs"

pci = ['01:00.0', '02:00.0']

disk = ['file:/mnt/xenimages/firewall.xen,sda1,w']

#make network backend
netif = 1
vif = ['']


Now i have another DomU which i want to connect to the firewall.

/etc/xen/dgs.cfg
---------------
name = "dgs"

kernel = "/boot/vmlinuz-2.6.16-xenU"
root = "/dev/sda1"
memory = 256
extra = "gentoo=nodevfs"

disk = ['file:/mnt/xenimages/dgs.xen,sda1,w']

#use firewall as network backend
vif = ['backend=firewall']      


And this is not working, i can't connect the network to the firewall.

Regards
Matze


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

<Prev in Thread] Current Thread [Next in Thread>