On Sun, Sep 16, 2007 at 11:52:56AM +0200, Avi Kivity wrote:
> Ferry Huberts wrote:
> > Avi Kivity wrote:
> >> Ferry Huberts 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):

I entirely agree with your recommendation against using the kvm initscript.
We don't include in the Fedora KVM rpms, and the equivalent script shipped
with Xen has inflicted untold misery & bug report chaos. Using the distro
specific initscripts for setting up bridges is a much more predictable and
reliable approach.

> >>
> >> [EMAIL PROTECTED] ~]$ 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
> >>
> >> [EMAIL PROTECTED] ~]$ 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.

This is similar to the way we document bridge setup in Fedora, although
for the sake of consistent nomenculture with Xen, we have peth0 being the 
physical device & eth0 being the bridge device. Either way its just naming,
the end result is functionally the same.

Libvirt also provides a 'virtual network' which is an isolated bridge
device, connected to the physical devices using NAT as our 'out of the box'
connectivity.

There's a short blog post with recommendations for KVM networking on Fedora

http://watzmann.net/blog/index.php/2007/04/27/networking_with_kvm_and_libvirt

> I'll remove the script unless anyone sees an objection?

Gets my vote.

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  -=| 

-------------------------------------------------------------------------
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/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to