|
|
|
|
|
|
|
|
|
|
xen-users
[Xen-users] Xen VMs with NAT
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 <=
|
|
|
|
|