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] Xen 4 + Debian Squeeze + one VM in route mode and anothe

To: thierry@xxxxxxxxxx
Subject: Re: [Xen-users] Xen 4 + Debian Squeeze + one VM in route mode and another in nat mode
From: Todd Deshane <todd.deshane@xxxxxxx>
Date: Thu, 4 Aug 2011 00:31:44 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 03 Aug 2011 21:33:22 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=bTY30YSO8WdteChOqMjIBxz5weL0kVcI30QVeTbW66E=; b=BsTMjUlrgIxFEaXYIewzM3WEDn/ksrgDw1SWMkhC/7ZUUWeyeDQerPo4lFjO39roIs zGrW0xXO/4+k/24o1DUM2A/xpzi92xF1MMtKv8mJLmtkeclf1TUXhCIlikRJac0Il3LO 7WazI0djm7+6TKoC270IBMVIUwKaQp+g03q4E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E398BAE.3030606@xxxxxxxxxx>
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: <4E398BAE.3030606@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Aug 3, 2011 at 1:55 PM, Thierry B <xen-users@xxxxxxxxxx> wrote:
> Hello,
>
> I've installed on a debian squeeze server, xen 4 with one VM which run
> in route mode configuration with an IP failover.
>
> I wanted to create another VM which turn in nat mode, so I make that :
>
> - I let my xend-config.sxp with :
>
> (network-script 'network-route netdev=eth0')
> (vif-script     vif-route)
>
> because my first VM is the most important....
>
> For the second, I put that in cfg file :
>
> vif         = [ 'ip=192.168.1.2,mac=00:16:3E:xxxx:xx, script=vif-nat,
> vifname=\
> vif-debianTest' ]
>

Are you able to confirm that Xen is making use of these scripts?

For example, adding a set -x to the scripts and booting the guest to
make sure the scripts are being called. And/or manually checking that
the iptables rules are being put into place correctly

Another approach is described in this thread:
http://xen.markmail.org/search/?q=nat+networking#query:nat%20networking+page:1+mid:fksxauxxxqxotgz4+state:results

Which links to:
http://www.andrewsorensen.net/blog/post/nat-networking-in-debian-squeeze

Thanks,
Todd

-- 
Todd Deshane
http://www.linkedin.com/in/deshantm
http://www.xen.org/products/cloudxen.html
http://runningxen.com/

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