[CentOS] weird issue with qemu-kvm network...

skull skull17 at gmx.ch
Sat Feb 2 12:33:20 UTC 2013


Am 02.02.2013 02:12, schrieb James Hogarth:
>> What i did in terms of network changes was the following script. It's an
>> old one i used when i didn't work with virsh, because i followed an old
>> tutorial for kvm-qemu on CentOS 5.
>> It basically creates a new bridge called bg0, creates a tap0 interface,
>> and connects eth0 and tap0 to the bridge.
> Err no... That's a terrible way to go about this.
>
> It's very not rhel and pretty flakey at best.
>
> You can do everything you need to in /etc/sysconfig/network-scripts/ifcfg-*
>
> Specifically you need ifcfg-br0 (or something similar) with type=Bridge
> (the capital B is important) this is where you should configure the network
> fit you physical host too.
>
> Then in your ifcfg-eth0 you link that to the bridge.
>
> For VMs you can then see this in virt-manager when building hosts and
> libvirt will automatically create appropriate vnetX virtual interfaces to
> bind to the bridge.
>
> This is off the top of my head whilst suffering insomnia so double check
> with the upstream documentation ;-)
>
> If you need bonding or vlans it becomes more complicated ;-)
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

> It's very not rhel and pretty flakey at best.

Isn't the rhel way to install NetworkManager anyway? Because then you can forget all your ifcfg scripts anyway because they will be overwritten by NM.
At least that was the cause when i had NetworkManager installed... (That was why i removed it if i remember correctly)
Does anyone have a good link on that subject?

IBM says that tap interfaces are best practice:
http://publib.boulder.ibm.com/infocenter/lnxinfo/v3r0m0/index.jsp?topic=%2Fliaat%2Fliaatkvmvirsh.htm

My RHCSA course material doesn't even touch the subject (At least not until now). The Red Had documentation is only focused on using virt-manager and thereby explains not much in that regards.




More information about the CentOS mailing list