[Xen-users] NAT routing + HVM DomU's
I am attempting to setup a Xen environment hosting several internal
web apps (mostly Ruby on Rails). I will have an OpenSuse 11 Dom0 with
Ubuntu 9.04 (server) DomU's. I am only given one IP address for my
server, and none of the DomU's will need to be reachable directly, as
Apache will be handling the proxy load between apps on the DomU's.
What I need is for the Dom0 and all DomU's to be able to communicate
and for the DomU's to be able to communcate with the internet via
routing through Dom0.
However, the issue I appear to be running into, is that running the
DomU's HVM are attempting to communicate via the tapX device instead
of the vifX devices.
Here is a sample of my configurations:
ifconfig on dom0
eth0 Link encap:Ethernet HWaddr 00:23:7D:51:19:3E
inet addr:172.26.6.17 Bcast:172.26.7.255 Mask:255.255.254.0
vif1.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:10.0.2.128 Bcast:0.0.0.0 Mask:255.255.255.255
vif2.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
inet addr:10.0.1.128 Bcast:0.0.0.0 Mask:255.255.255.255
route -n on dom0
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 vif1.0
10.0.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 vif2.0
172.26.6.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.26.6.127 0.0.0.0 UG 0 0 0 eth0
Relevant configuration information for VM's:
vif=[ 'mac=00:16:3E:C2:AA:XX' ]
I am using dnsmasq to offer DHCP to the DomU's as per the setup
I have also tried a static networking setup passing ip=x.x.x.x on the
vif line in the DomU configuration.
Reading through the archives I've seen a couple things mentioning
documented issued with routing in HVM DomU's, but nothing recently
(3.3+). Has anything changed, or are there any special considerations
when dealing with this type environment?
Any help is much appreciated.
Xen-users mailing list