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] Xen VMs with NAT

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen VMs with NAT
From: Thomas <iamkenzo@xxxxxxxxx>
Date: Thu, 5 Jun 2008 17:30:14 +0200
Delivery-date: Thu, 05 Jun 2008 08:30:45 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=VuR1p/gXfkMPgQRbf8D0E1wdpnKuSSaRAkzD+NuHHII=; b=VU9BK/xIdmyidYdTZfvDIZxJTVK527rY1zkebSDOMh8T0k26Qq/I0u2oKKEjp4u6CB eBUxh7BaHGBSvU2WystCsoAnDkl5CdgFjdjAL6G/r3kg6JPKlfHPOEBbWYIaMeItSeGa MZ9bk+aFozld4+uBaG2h2beuHiqJVDl3PQzEY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=WLM7MS/0GvMvfXMckh/JmOvi1VQDXazc/kYuCVzrSB7N51VPBbQ97bcTquo5++UtJc PhGEMt4Dd9EAbM3VpxFcY5B6OoO8RHG6Ypt5p1HNp5+M9g94412TsKQNaexj3BOHKFm2 8VQxVXsoVyPv9QRwF9LFQ6Av16dvvrWNHvj00=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi list,

I am struggling trying to setup my Xen box. So far I am able to start
a VM, log into it, and install a webserver. I only have the option for
NAT, as my hosting provider doesn't allow for bridge mode.

Here are my config files:


* On Dom0: *
***************

In /etc/xen/xend-config.sxp:
----------------------------------------
(network-script network-nat)
(vif-script vif-nat)


In /etc/xen/node01.cfg:
---------------------------------
vif = [ 'ip=10.0.0.2' ]
netmask = "255.255.255.0"
gateway = "10.0.0.254"


The iptables rule:
-------------------------
iptables -A PREROUTING -t nat -p tcp -i eth0 --dport 80 -j DNAT --to 10.0.0.2:80



* on DomU: *
***************

In /etc/network/interfaces:
--------------------------------------
auto eth0
iface eth0 inet static
address 10.0.0.2
netmask 255.255.255.0
gateway 10.0.0.1


At some point in time, I was able to make it work, but then I changed
the configuration files because it didn't seem right, and now nothing
works anymore. And I don't remember how I have edited my files.

What could go wrong? I pretty much guess it is the gateway that is
incorrect, the problem is that there are so many files and
combinations to test, that it is getting me crazy.

Best regards,

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Xen VMs with NAT, Thomas <=