Re: weird issue with qemu-kvm network...

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



>
> 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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux