Author Topic: SolusVM Management Bridge for Linux KVM Virtualization  (Read 788 times)

Offline 365hostingsupport

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
      • View Profile
      • cPanel Server Management
SolusVM Management Bridge for Linux KVM Virtualization
« on: May 18, 2015, 07:56:07 AM »

Hello,


Its very important to have and configure network on bridge for Linux KVM virtualization so that Node can host multiple VMís.
Bridging requires the bridge-utils package to be installed on the server, you need to make sure that its installed on the server and if not 1st install it using below commands :

To check if its installed :

command -> rpm -q bridge-utils

If you get an output itís installed, if not, it needs installing using yum as below

yum install bridge-utils

If the above package is not in you yum rempo make sure you have solusvm repo installed under /etc/yum.repos.d/soluslabs.repo
Before setting up your bridge, the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 will look something like the following:

/etc/sysconfig/network-scripts/ifcfg-eth0:

DEVICE=eth0
BOOTPROTO=static
BROADCAST=xx.xx.xx.255
HWADDR=00:27:0R:19:0A:C2
IPADDR=xx.xx.xx.23
IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=xx.xx.xx.0
ONBOOT=yes

Itís always good practice to backup your current ifcfg-eth0 before modification, To do this, just run the following command:

SSH Terminal:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/backup-ifcfg-eth0

Next you need to create the bridge file:

SSH Terminal:

nano -w /etc/sysconfig/network-scripts/ifcfg-br0

and copy parts of ifcfg-eth0 to it:

/etc/sysconfig/network-scripts/ifcfg-br0:

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
BROADCAST=xx.xx.xx.255
IPADDR=xx.xx.xx.23
NETMASK=255.255.255.0
NETWORK=xx.xx.xx.0
ONBOOT=yes

Save that file and edit ifcfg-eth0

SSH Terminal:

nano -w /etc/sysconfig/network-scripts/ifcfg-eth0

Remove the networking parts and specify the bridge:

/etc/sysconfig/network-scripts/ifcfg-eth0:

DEVICE=eth0
HWADDR=00:27:0R:19:0A:C2
IPV6INIT=yes
IPV6_AUTOCONF=yes
ONBOOT=yes
BRIDGE=br0

Congratulations, your bridge is now setup, all thatís left is to make sure the changes are correct and restart the networking.

SSH Terminal:

/etc/init.d/network restart

Once itís restarted you should see the new bridge using the ifconfig command:

SSH Terminal:

[root@dev1 ~]# ifconfig
br0       Link encap:Ethernet  HWaddr 00:27:0R:19:0A:C2
inet addr:102.100.152.2  Bcast:xx.xx.xx.255  Mask:255.255.255.0
inet6 addr: s320::227:eav:fre09:ea2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2984 (2.9 KiB)  TX bytes:13154 (12.8 KiB)

eth0      Link encap:Ethernet  HWaddr 00:27:0R:19:0A:C2
inet6 addr: s320::227:eav:fre09:ea2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:31613 errors:0 dropped:0 overruns:0 frame:0
TX packets:9564 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:2981335 (2.8 MiB)  TX bytes:2880868 (2.7 MiB)
Memory:d0700000-d0720000


Thanks,



http://365hostingsupport.com/

If you are facing any problem while resolving the Issue, You can contact our Live chat for Help . We are here to help you 24◊7

Tags:
 

Cheap Reseller Hosting