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/
Home Products Support Community News


Re: [Xen-users] NAT routing + HVM DomU's

To: Steve Copous <jaofos@xxxxxxxxx>
Subject: Re: [Xen-users] NAT routing + HVM DomU's
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Wed, 20 May 2009 08:16:31 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 19 May 2009 18:17:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <5be1d3230905191125k1b94cb7ercc2f87b05485a1a4@xxxxxxxxxxxxxx>
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: <5be1d3230905191125k1b94cb7ercc2f87b05485a1a4@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, May 20, 2009 at 1:25 AM, Steve Copous <jaofos@xxxxxxxxx> wrote:
> 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:  Bcast:  Mask:
> vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>           inet addr:  Bcast:  Mask:
> vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>           inet addr:  Bcast:  Mask:

So I assume you use network-route and vif-route scripts or its variant?
You have two options :
- install PV drivers for HVM domU so traffic can go through vif. AFAIK
none is available for the default Ubuntu kernel, so the easiest way si
actually to convert your Ubuntu HVM to PV.
- use bridging setup, and setup NAT with iptables. This is what
libvirtd does, giving NATed address


Xen-users mailing list

<Prev in Thread] Current Thread [Next in Thread>