Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to configure virbr0 on CentOS6.5

Posted on 2014-10-07
5
Medium Priority
?
858 Views
Last Modified: 2014-10-09
Hi

I have a CentOS6.5 server and I expected to see a virbr0 interface but I don't.  I thought that this would be automatically created depending on what RPM/group is installed. Does anyone know what RPM/group I require or do I need to manually configure it?

%packages
@Base
@Core
@base
@console-internet
@core
@debugging
@directory-client
@hardware-monitoring
@java-platform
@large-systems
@network-file-system-client
@performance
@perl-runtime
@server-platform
@virtualization
@virtualization-client
@virtualization-platform


# ifconfig
br-ex     Link encap:Ethernet  HWaddr 00:1F:29:0A:7C:84
          inet addr:10.10.12.20  Bcast:10.10.12.255  Mask:255.255.255.0
          inet6 addr: fe80::1892:90ff:fedc:1eb1/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:1478662 errors:0 dropped:0 overruns:0 frame:0
          TX packets:853549 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2056593190 (1.9 GiB)  TX bytes:63083573 (60.1 MiB)

br-int    Link encap:Ethernet  HWaddr EE:BB:62:20:2A:45
          inet6 addr: fe80::d015:71ff:fe9c:4241/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1140 (1.1 KiB)  TX bytes:468 (468.0 b)

br-tun    Link encap:Ethernet  HWaddr AE:A0:E9:16:71:4D
          inet6 addr: fe80::7b:68ff:fe6d:c277/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)

eth0      Link encap:Ethernet  HWaddr 00:1F:29:0A:7C:84
          inet6 addr: fe80::21f:29ff:fe0a:7c84/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1482248 errors:0 dropped:0 overruns:0 frame:0
          TX packets:856759 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2062940656 (1.9 GiB)  TX bytes:66699859 (63.6 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:551250 errors:0 dropped:0 overruns:0 frame:0
          TX packets:551250 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2017116429 (1.8 GiB)  TX bytes:2017116429 (1.8 GiB)

# brctl show
bridge name     bridge id               STP enabled     interfaces
0
Comment
Question by:mickt
  • 4
5 Comments
 
LVL 12

Accepted Solution

by:
Ganesh Kumar A earned 1500 total points
ID: 40366297
Bridged networking with libvirt
Bridged networking (also known as physical device sharing) is used to dedicate a physical device to a virtual machine. Bridging is often used for more advanced setups and on servers with multiple network interfaces.
To create a bridge (br0) based on the eth0 interface, execute the following command on the host:
# virsh iface-bridge eth0 br0

NetworkManager does not support bridging. NetworkManager must be disabled to use networking with the network scripts (located in the /etc/sysconfig/network-scripts/ directory).
# chkconfig NetworkManager off
# chkconfig network on
# service NetworkManager stop
# service network start
If you do not want to disable NetworkManager entirely, add "NM_CONTROLLED=no" to the ifcfg-* network script being used for the bridge.

May be this url will help:  http://www.techotopia.com/index.php/Creating_a_CentOS_6_KVM_Networked_Bridge_Interface
0
 

Author Comment

by:mickt
ID: 40367842
I can't do this as eth0 is associated with br-ex.

virbr0 is enabled automatically on an Ubuntu set-up that I have.  It is unaffected by my br-ex configuration.

Background here is that I run openstack on the host, which uses br-ex.  I use virbr0 for customised VM creation, which I can then import into OS as images.
0
 

Author Comment

by:mickt
ID: 40367882
I re-kickstarted the server and didn't install openstack.  virbr0 is there.  This is as expected.  It seems that openstack installation may have removed it.
0
 

Author Comment

by:mickt
ID: 40368266
packstack removes virbr0.  I'll need to investigate this as I'd prefer to keep it.
0
 

Author Comment

by:mickt
ID: 40370207
Should also include the following RPMs in the anaconda file.

libguestfs
libguestfs-tools
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain How to fix Broken backup chain in Veeam Backup & Replication.
With more and more companies allowing their employees to work remotely, it begs the question: What are some of the security risks involved with remote employees and what actions should we take to secure them?
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question