J
J
jidckii2015-09-14 13:48:56
linux
jidckii, 2015-09-14 13:48:56

Why didn't the interfaces of virtual machines and bridges rise on the host when the network was rebooted?

Good day to all.
I got a server with virtual machines at a new job.
SUSE + KVM
After adding a new VLAN and, accordingly, rebooting the network service, virtual interfaces did not rise and network bridges fell off.
interfaces are as follows:

sle:~ # ifconfig 
bond0     Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:7958727151 errors:0 dropped:5308850 overruns:599472945 frame:0
          TX packets:820840177 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8432627710077 (8041980.4 Mb)  TX bytes:474549019132 (452565.2 Mb)

br0       Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          inet addr:172.20.0.10  Bcast:172.20.1.255  Mask:255.255.254.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:506618 errors:0 dropped:30557 overruns:0 frame:0
          TX packets:118029 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:39274797 (37.4 Mb)  TX bytes:38728491 (36.9 Mb)

br2       Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          inet addr:172.30.2.254  Bcast:172.30.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:96458 errors:0 dropped:1991 overruns:0 frame:0
          TX packets:55 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5975661 (5.6 Mb)  TX bytes:2742 (2.6 Kb)

br6       Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          inet addr:172.30.16.254  Bcast:172.30.16.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4292 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:214600 (209.5 Kb)  TX bytes:0 (0.0 b)

br7       Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          inet addr:172.30.17.254  Bcast:172.30.17.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24390 errors:0 dropped:4676 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1952233 (1.8 Mb)  TX bytes:0 (0.0 b)

br10      Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          inet addr:10.10.0.1  Bcast:10.10.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22162 errors:0 dropped:3 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1066625 (1.0 Mb)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:955237369 errors:0 dropped:12 overruns:75145229 frame:0
          TX packets:441340550 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:197656681900 (188500.1 Mb)  TX bytes:265640042363 (253334.0 Mb)
          Memory:d0960000-d0980000 

eth1      Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:d0940000-d0960000 

eth2      Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:7003489782 errors:0 dropped:5308838 overruns:524327716 frame:0
          TX packets:379499627 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8234971028177 (7853480.3 Mb)  TX bytes:208908976769 (199231.1 Mb)
          Memory:d0920000-d0940000 

eth3      Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Memory:d0900000-d0920000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1486577 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1486577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3466713313 (3306.1 Mb)  TX bytes:3466713313 (3306.1 Mb)

vlan2     Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:100591 errors:0 dropped:0 overruns:0 frame:0
          TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6765826 (6.4 Mb)  TX bytes:5962 (5.8 Kb)

vlan6     Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4292 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:214600 (209.5 Kb)  TX bytes:3220 (3.1 Kb)

vlan7     Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25596 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2083273 (1.9 Mb)  TX bytes:3220 (3.1 Kb)

vlan10    Link encap:Ethernet  HWaddr 00:1E:67:68:52:6A  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:242308 errors:0 dropped:0 overruns:0 frame:0
          TX packets:219282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:53832748 (51.3 Mb)  TX bytes:59876997 (57.1 Mb)

vnet0     Link encap:Ethernet  HWaddr FE:54:00:89:87:C1  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:765247 (747.3 Kb)  TX bytes:4521395 (4.3 Mb)

vnet3     Link encap:Ethernet  HWaddr FE:54:00:2C:28:F0  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:93368144 errors:0 dropped:0 overruns:0 frame:0
          TX packets:139676881 errors:0 dropped:0 overruns:501 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:64264671361 (61287.5 Mb)  TX bytes:49732138090 (47428.2 Mb)

vnet4     Link encap:Ethernet  HWaddr FE:54:00:1C:C4:2E  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2814188 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24829718 errors:0 dropped:0 overruns:24 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:733116198 (699.1 Mb)  TX bytes:2423700840 (2311.4 Mb)

vnet5     Link encap:Ethernet  HWaddr FE:54:00:64:B4:CC  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:88864 errors:0 dropped:0 overruns:0 frame:0
          TX packets:343552 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:20226866 (19.2 Mb)  TX bytes:39487715 (37.6 Mb)

vnet6     Link encap:Ethernet  HWaddr FE:54:00:A2:A4:6F  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:219212 errors:0 dropped:0 overruns:0 frame:0
          TX packets:226436 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:59873777 (57.1 Mb)  TX bytes:56245694 (53.6 Mb)

vnet8     Link encap:Ethernet  HWaddr FE:54:00:1A:9C:70  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:41754232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67337321 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:31749803397 (30278.9 Mb)  TX bytes:33322417790 (31778.7 Mb)

vnet9     Link encap:Ethernet  HWaddr FE:54:00:76:D7:CA  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:1 carrier:0
          collisions:0 txqueuelen:500 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

sle:~ # brctl show
bridge name	bridge id		STP enabled	interfaces
br0		8000.001e6768526a	no		bond0
              vnet0
              vnet3
              vnet5
              vnet8
br10		8000.001e6768526a	no		vlan10
              vnet6
br2		8000.001e6768526a	no		vlan2
br6		8000.001e6768526a	no		vlan6
br7		8000.001e6768526a	no		vlan7

those. after the network reboot, all vnet0 - 9 interfaces were down , and the bridge table was completely empty.
The question is why could this happen?
and is it necessary to create config files for vnet0-9 hypervisor interfaces in /ect/sysconfig/network
so that this does not happen again? now they are not created.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Zhivotnev, 2015-09-14
@inkvizitor68sl

> i.e. after the network reboot, all vnet0 - 9 interfaces were down
Because the interfaces are raised when virtualok is launched with wrapping scripts. It is necessary to pull the virtual machines.
> and in the table of bridges it was generally empty.
See who's running them. It may turn out that their hypervisor also starts, and not the system at the start of the network.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question