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] Does Xen 3.1 use NAT for virtual network by default?

To: Free <fengrui@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Does Xen 3.1 use NAT for virtual network by default?
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Date: Tue, 29 May 2007 12:56:06 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 29 May 2007 04:54:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <!&!GAAAAAAAAACfwOfEi/CuRo1/DwEE//OdwoAAABgAAAAAAAAAn8DnxIvwrkaNfw8BBP/znWT4IQAAAAAAEAAAAD6Zxj3z1rBDrUqmH53m4RI1AAAARG9lcyBYZW4gMy4xIHVzZSBOQVQgZm9yIHZpcnR1YWwgbmV0d29yayBieSBkZWZhdWx0PwA=@xxxxxxxxxxxxxxx>
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>
References: <!&!GAAAAAAAAACfwOfEi/CuRo1/DwEE//OdwoAAABgAAAAAAAAAn8DnxIvwrkaNfw8BBP/znWT4IQAAAAAAEAAAAD6Zxj3z1rBDrUqmH53m4RI1AAAARG9lcyBYZW4gMy4xIHVzZSBOQVQgZm9yIHZpcnR1YWwgbmV0d29yayBieSBkZWZhdWx0PwA=@xxxxxxxxxxxxxxx>
Reply-to: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Tue, May 29, 2007 at 02:23:20PM +0800, Free wrote:
> I installed Fedora 7 RC2 with Xen 3.1. When I created a virtual machine
> using Virtual Machine Manager (virt-manager-4.0), Xen 3.1 uses NAT for
> virtual network by default, but in Fedora 6 Xen 3.0.3 uses virtual switch by
> default. 

No, that is not correct. Fedora Core 6 used bridging by default. In Fedora 7
XenD is still configured to use network-bridge. Previously virt-manager would
always set a new guest to use bridging. In Fedora 7 there is now an extra
screen when creating a new guest:

http://virt-manager.org/screenshots/install/wizard-network.png

If you choose a 'Virtual network' the guest will get NAT'd to the outside
world (this is nothing todo with Xen's network-nat script - the NAT is
handled by libvirt directly), or if you choose 'Shared physical device'
the guest will be bridged to the LAN.

> I checked the config file for xend: /etc/xen/xend-config.sxp. It was
> configured using network-bridge: (network-script network-bridge), not
> (network-script network-nat). Because I can get IP address from a DHCP
> server so it is not necessary for Xend to provide another NAT.
> 
> Could you tell me how to change the virtual network from NAT to a common
> virtual bridge (virtual switch)? Thank you.

It sounds like you choose a 'Virtual nework' when creating the guest. If
you re-run the new guest wizard, try picking a shared physical device
instead.

Regards,
Dan,
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

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