[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Xen VMs with NAT


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Thomas <iamkenzo@xxxxxxxxx>
  • Date: Thu, 5 Jun 2008 17:30:14 +0200
  • Delivery-date: Thu, 05 Jun 2008 08:30:45 -0700
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.