KVM network config in CentOS 6.6

General support questions
Post Reply
LyleRyan
Posts: 12
Joined: 2010/01/20 00:38:32

KVM network config in CentOS 6.6

Post by LyleRyan » 2015/05/05 22:21:29

I built a CentOS 6.6 server choosing the "Virtual Host" option at installation time. This seemed to build the bridge for me, and a Centos 6.6 VM using default networking can get traffic in and out just fine. But I still don't understand....

ifconfig shows:
- eth0 , with the real IP for the host's nic
- virbr0 , the bridge itself, I guess, with an IP of 192.168.122.1
- virbr0-nic , the host-side of the bridge, I'm thinking; virbr0 and virbr0-nic have the same MAC address
- vnet0 , the VM-side of the bridge, I'm guessing; different MAC address than the previous 2

Do I have the right idea on what these devices are?

And where are the config files for them? I thought I would see at least a /etc/sysconfig/network-scripts/ifcfg-br0 file. All that's there is the ifcfg-eth0 file. Maybe some XML somewhere, managed by the brctl utility?

Bonus question: Why is KVM config so confusing? All the tutorials, howto's, and even doc set seem to give different ways to go about configuring KVM. I'd think the RHEL 6 doc set would be all I need, but I'm not so sure.

Thanks for any advice....Lyle

User avatar
TrevorH
Site Admin
Posts: 33218
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: KVM network config in CentOS 6.6

Post by TrevorH » 2015/05/05 23:25:36

You're set up for a NAT network.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply