From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dor Laor Subject: Re: [PATCH] make kvm service script transfer dhclient settings correctly Date: Sun, 16 Sep 2007 11:55:55 +0200 Message-ID: <46ECFDAB.5080408@qumranet.com> References: <46EC11AE.9090408@hupie.com> <46ECF4E2.9000203@qumranet.com> <46ECF9DB.5020208@hupie.com> Reply-To: dor.laor-atKUWr5tajBWk0Htik3J/w@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0175679124==" Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Avi Kivity To: Ferry Huberts Return-path: In-Reply-To: <46ECF9DB.5020208-NbsvJix5b8QAvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --===============0175679124== Content-Type: multipart/alternative; boundary="------------050209030802020006090300" This is a multi-part message in MIME format. --------------050209030802020006090300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Ferry Huberts wrote: > > Avi Kivity wrote: > > > > > > I really recommend against using the kvm initscript... it is fragile > > is broken. On Fedora, you can use the standard initscripts (well, > > they are fragile and broken too, but they are more complete than the > > kvm initscript): > > > > [avi@blast ~]$ cat /etc/sysconfig/network-scripts/ifcfg-sw0 > > DEVICE=sw0 > > BOOTPROTO=dhcp > > HWADDR=00:0F:EA:6E:1E:F0 > > ONBOOT=yes > > TYPE=Bridge > > DHCP_HOSTNAME=blast > > > > [avi@blast ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0 > > DEVICE=eth0 > > BRIDGE=sw0 > > HWADDR=00:0F:EA:6E:1E:F0 > > ONBOOT=yes > > TYPE=Ethernet > > > > > > This setup starts dhcp directly on the bridge, without the need to > > move things around. See especially the 'TYPE=Bridge' and 'BRIDGE=sw0' > > statements. > > > > Is there a reason to use the kvm initscript instead of this? > > > no, just thought that since it's included in the kvm distribution I'd > use it. Seemed a logical conclusion that this one would be the > recommended way to do it. I'll just as happy convert to the distribution > scripts now. But maybe it's a good idea then to remove the script and > replace it with a text file on how to setup the config files. If you > don't remove the script maybe the patch can go in? At least it makes the > script more robust than it is. > > You seem to use the same MAC address for both your interfaces Avi. Is > this on purpose? > > Ferry > Actually the propose was to have a script that can handle both creation of a bridge and bonding together. Last time I checked I couldn't add a bridge over bonding. It's also nice to have a distribution agnostic script but I agree that we should drop it since the its better to use distribution tools instead. --------------050209030802020006090300 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Ferry Huberts wrote:
Re: [kvm-devel] [PATCH] make kvm service script transfer dhclient settings correctly

Avi Kivity wrote:
>
>
> I really recommend against using the kvm initscript... it is fragile
> is broken.  On Fedora, you can use the standard initscripts (well,
> they are fragile and broken too, but they are more complete than the
> kvm initscript):
>
> [avi@blast ~]$ cat /etc/sysconfig/network-scripts/ifcfg-sw0
> DEVICE=sw0
> BOOTPROTO=dhcp
> HWADDR=00:0F:EA:6E:1E:F0
> ONBOOT=yes
> TYPE=Bridge
> DHCP_HOSTNAME=blast
>
> [avi@blast ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE=eth0
> BRIDGE=sw0
> HWADDR=00:0F:EA:6E:1E:F0
> ONBOOT=yes
> TYPE=Ethernet
>
>
> This setup starts dhcp directly on the bridge, without the need to
> move things around.  See especially the 'TYPE=Bridge' and 'BRIDGE=sw0'
> statements.
>
> Is there a reason to use the kvm initscript instead of this?
>
no, just thought that since it's included in the kvm distribution I'd
use it. Seemed a logical conclusion that this one would be the
recommended way to do it. I'll just as happy convert to the distribution
scripts now. But maybe it's a good idea then to remove the script and
replace it with a text file on how to setup the config files. If you
don't remove the script maybe the patch can go in? At least it makes the
script more robust than it is.

You seem to use the same MAC address for both your interfaces Avi. Is
this on purpose?

Ferry

Actually the propose was to have a script that can handle both creation of a bridge and bonding together.
Last time I checked I couldn't add a bridge over bonding.
It's also nice to have a distribution agnostic script but I agree that we should drop it since the its better to use
distribution tools instead.
--------------050209030802020006090300-- --===============0175679124== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0175679124== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============0175679124==--