[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Alternative to network-nat on Debian Squeeze with XEN4?


  • To: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Fajar A. Nugraha" <list@xxxxxxxxx>
  • Date: Mon, 20 Jun 2011 11:24:31 +0700
  • Delivery-date: Sun, 19 Jun 2011 21:25:26 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Mon, Jun 20, 2011 at 11:11 AM, Andrew Sorensen <andrewx192@xxxxxxxxx> wrote:
>>
>> Todd: Is this the same one used by libvirt with virbr0? Using
>> something common would be nice, as it means NAT-networking can be
>> treated the same way as bridge networking from Xen's perspective.
>>
>> Andrew: try installing virt-manager (or perhaps libvirt-bin is
>> enough). It should create a bridge called virbr0, which you can use on
>> domU config file (add "bridge" section to vif line).
>>
>> --
>> Fajar

> I already have bridged networking working, but would like to add NAT to my
> setup.. I'd rather stay away from libvirt as it has caused problems in the
> past. I don't see the need to have libvirt to accomplish my requirements.

libvirt simply makes it easier to setup virbr0. If you don't use
virt-manager/virt-install, then basically it's all libvirt does:
create virtbr0.

If you're familiar enough with manual bridge and NAT setup, you could
just create it manually, which would involve:
- create a bridge with is not connected to any physical host
- create NAT MASQUARADE rule for any traffic coming from that bridge
- (optional) run dnsmasq to provide DHCP and DNS

With that kind of setup (either manual or created by libvirt) you can
simply use bridge networking in Xen as usual, and it doesn't matter
whether your uplink is already bridged or not. And the same bridge+NAT
setup can be used for other virtualization setup as well (For example,
I'm using libvirt to create a bridge on my Virtualbox setup, which
Virtulbox uses later as bridged networking)

-- 
Fajar

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.