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


[Xen-users] network-nat for hvm guests

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] network-nat for hvm guests
From: David Richardson <daverich04@xxxxxxxxx>
Date: Wed, 13 Sep 2006 13:04:23 -0700 (PDT)
Delivery-date: Wed, 13 Sep 2006 13:05:04 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hmrIykrN4fN+QEcp8wJXDe/mojo98NwBOWYhJZ2/HcLyMxFYaKdwDoBw50YnMzOJtAPKMP9QgBhixdA3f41ozCC2dPxu8/x/yFlLalKM+gkK1rMqvLa/161AN0L8IY5Fw5V0BGgGjmCuyIUgv5cvSq0cL15kbwtH9bp2Xlct9Lg= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hey everyone,

Has anyone had any luck running an hvm guest using the NAT networking config scripts?  My setup is as follows:

eth0 is attached to a physical network card.  I'd like to have my domU's on a private subnet, then NAT between the subnet and eth0 to allow domU's to talk to the WAN (ie, exactly what vmware does when you use their NAT setup).

My /etc/xen/xend-config.spx enables the following 2 nat lines instead of the default bridging setup:
(network-script network-nat)
(vif-script 'vif-nat dhcp=yes')

My domU guest's config file (for a Win XP guest) contains, among other config params:
vif = [ 'type=ioemu' ]

I've also installed dhcpd, and configured /etc/dhcpd.conf to:
ddns-update-style interim;
# Xen allocated addresses
subnet netmask {

When I create the domU guest, nothing seems to happen; the domU has no state under 'xm list'.  However, if I change the vif config line to vif=[''], the guest boots correctly, dhcpd runs and assigns an ip to vifX.Y, BUT the Windows guest has no network card.

Any ideas how to fix this?  Does network-nat work for hvm guest??  Thanks!


Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] network-nat for hvm guests, David Richardson <=