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] understanding networking - xen 3.1 and CentOS 5.1

To: goetz.reinicke@xxxxxxxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] understanding networking - xen 3.1 and CentOS 5.1
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Fri, 4 Apr 2008 13:08:42 -0700 (PDT)
Delivery-date: Fri, 04 Apr 2008 13:09:21 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=CUsoOP9TdsVq3tdTIZ24eVi1pwwKOWsD+BIUszJ0+2KCbl8zNzT2iZ5ODp9/zLHbvSGcQuL/jCWAtq8Jb0u1RCSSGftdQ0GwRlOPgOSc2BZEhfKEIBkE/Rg1pkD9U63U8u1TY5dMIRB61R12OauWpdLunscdC00LhvuCzZgXVA0=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <322437.83836.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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
> > --- Götz Reinicke <goetz.reinicke@xxxxxxxxxxxxxxx>
> > wrote:
> > 
> > > Hi,
> > > 
> > > recently I started to play with xen. Therefore I
> > got
> > > a new system and 
> > > installed Centos 5.1 with the virtualisation
> > > packages (xen 3.1 etc.)
> > > 
> > > Setting up a Centos 5.1 Guest using the virtual
> > > manager tool works like 
> > > a charm, the guest boots has network access, can
> > > install updates from 
> > > the internet - so far so good.
> > > 
> > > Now I was looking at the network configuration
> and
> > > was confused. How 
> > > dose the IP configuration of the client is set
> up?
> > > After my basic 
> > > installation the guest uses dhcp.
> > > 
> > > Until now I haven't found any answer to my
> > question
> > > how I may configure 
> > > the host and the guest(s) to use fixed ip
> > addresses
> > > from the lan the 
> > > server is located on. I fount a lot of web
> pages,
> > > pdfs etc, but all 
> > > looks somhow different :-) (O.K. the host can be
> )
> > > 
> > > E.g. I'd like the host to have the ip
> > 172.17.255.10,
> > > the guests should 
> > > have the ip 172.17.255.11, .12 and .13 ...

******************************************************
Option 1.1 (DHCP Bridge is not required by CentOS 5.1)
******************************************************
Disable daemon libvirtd:-
# chkconfig libvirtd off
Assign CentOS 5.1 Dom0 static IP address matching your
LAN subnet.Verify /etc/xen/xend-conf.sxp to turn on
old
fashioned xen bridging based on ethernet interface
assigned desired static IP address.
Creating DomUs,give them static IP addresses from the
same subnet as Dom0. 
*******************
Option 2 (improved)
*******************
If libvirtd is up and running (default state)
any DomU will be on subnet 192.168.122.1 (netmask
255.255.255.0) and will be perfectly reachable from
the Dom0's LAN,whatever it is. 
Libvirtd is doing bridging and NAT forwarding to
mentioned subnet automatically. 
 This approach was implemented by RH in F7,F8,RHEL 5.1
and differs from old fashion xen bridging. However,
RHEL 5.1 (CentOS 5.1) does allow you to disable
libvirtd and turn back to what you want.
  F8 does require DHCP bridge to put DomU on 
subnet different from 192.168.122.1 (netmask
255.255.255.0).Libvirtd behaves different on
F8 and RHEL 5.1.


I skipped word "forwarding" in previous message.

> 
> > > 
> > > I'm not affraid to use vi to configure the guest
> > or
> > > edit configfiles; 
> > > using the virtual manager tool was just the
> first
> > > start.
> > > 
> > > So any help or point to the helpfull how to is
> > > welcome.
> > > 
> > > 
> > > Thanks and best regards
> > > 
> > > Götz
> > > -- 
> > > Götz Reinicke
> > > IT Koordinator
> > > 
> > > Tel. +49 7141 969 420
> > > Fax  +49 7141 969 55 420
> > > E-Mail goetz.reinicke@xxxxxxxxxxxxxxx
> > > 
> > > Filmakademie Baden-Württemberg GmbH
> > > Mathildenstr. 20
> > > 71638 Ludwigsburg
> > > www.filmakademie.de
> > > 
> > > Eintragung Amtsgericht Stuttgart HRB 205016
> > > Vorsitzender des Aufsichtsrats:
> > > Dr. Christoph Palmer, MdL, Minister a.D.
> > > 
> > > Geschäftsführer:
> > > Prof. Thomas Schadt
> > > 
> > > 
> > > _______________________________________________
> > > Xen-users mailing list
> > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-users
> > > 
> > 
> > 
> > 
> >      
> >
>
____________________________________________________________________________________
> > You rock. That's why Blockbuster's offering you
> one
> > month of Blockbuster Total Access, No Cost.  
> > http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> > 
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> > 
> 
> 
> 
>      
>
____________________________________________________________________________________
> You rock. That's why Blockbuster's offering you one
> month of Blockbuster Total Access, No Cost.  
> http://tc.deals.yahoo.com/tc/blockbuster/text5.com
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 



      
____________________________________________________________________________________
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com

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