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

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.

Correct.

>
> 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
>

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 192.168.122.0/24

-- 
Fajar

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

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