View Issue Details

IDProjectCategoryView StatusLast Update
0007460CentOS-7libvirtpublic2014-11-14 11:48
Reportersvacko Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version7.0-1406 
Summary0007460: libvirt is unable to parse bridged & vlan tagged & bonding interface, receiving 'vlan interface misses the tag attribute'
DescriptionCentos 7 KVM hypervisor with libvirt management library.
Libvirt is throwing following error through virt-manager when entering clicking on one of the interfaces in 'Network interfaces' tab of virt-manager:
"Error selecting interface: XML Error: vlan interface misses the tag attribute".

There are 3 bridge interfaces configured on the host (each for a different vlan) on top of a single bonding interface, working properly.

# rpm -qa |egrep 'libvirt|qemu|kvm'
libvirt-daemon-driver-nodedev-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-nwfilter-1.1.1-29.el7_0.1.x86_64
libvirt-glib-0.1.7-3.el7.x86_64
libvirt-daemon-driver-network-1.1.1-29.el7_0.1.x86_64
qemu-img-1.5.3-60.el7_0.5.x86_64
libvirt-client-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-config-network-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-secret-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-lxc-1.1.1-29.el7_0.1.x86_64
qemu-kvm-1.5.3-60.el7_0.5.x86_64
ipxe-roms-qemu-20130517-5.gitc4bce43.el7.noarch
libvirt-daemon-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-interface-1.1.1-29.el7_0.1.x86_64
libvirt-python-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-qemu-1.1.1-29.el7_0.1.x86_64
qemu-kvm-common-1.5.3-60.el7_0.5.x86_64
qemu-kvm-tools-1.5.3-60.el7_0.5.x86_64
libvirt-daemon-config-nwfilter-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-storage-1.1.1-29.el7_0.1.x86_64
libvirt-1.1.1-29.el7_0.1.x86_64
virt-manager-0.10.0-20.el7.noarch
virt-manager-common-0.10.0-20.el7.noarch

# cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)

# uname -a
Linux venus.innovatrics.inn 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: em1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
3: em2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether b8:ca:3a:69:f3:35 brd ff:ff:ff:ff:ff:ff
4: em3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether b8:ca:3a:69:f3:36 brd ff:ff:ff:ff:ff:ff
5: em4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether b8:ca:3a:69:f3:37 brd ff:ff:ff:ff:ff:ff
6: p5p1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
7: p5p2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether a0:36:9f:2f:06:d1 brd ff:ff:ff:ff:ff:ff
8: p5p3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether a0:36:9f:2f:06:d2 brd ff:ff:ff:ff:ff:ff
9: p5p4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether a0:36:9f:2f:06:d3 brd ff:ff:ff:ff:ff:ff
10: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
11: vlan1@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br1-int state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
12: br1-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.18/17 brd 192.168.127.255 scope global br1-int
       valid_lft forever preferred_lft forever
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
13: vlan2@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br2-guest state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
14: br2-guest: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet 192.168.128.18/24 brd 192.168.128.255 scope global br2-guest
       valid_lft forever preferred_lft forever
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
15: vlan3@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br3-dmz state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
16: br3-dmz: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet 10.1.14.18/24 brd 10.1.14.255 scope global br3-dmz
       valid_lft forever preferred_lft forever
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
17: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 52:54:00:97:60:a5 brd ff:ff:ff:ff:ff:ff
    inet 10.11.12.1/24 brd 10.11.12.255 scope global virbr0
       valid_lft forever preferred_lft forever
18: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
    link/ether 52:54:00:97:60:a5 brd ff:ff:ff:ff:ff:ff

# ls -la /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r-- 1 root root 241 Jul 30 09:38 /etc/sysconfig/network-scripts/ifcfg-bond0
-rw-r--r-- 1 root root 337 Jul 29 08:07 /etc/sysconfig/network-scripts/ifcfg-br1-int
-rw-r--r-- 1 root root 339 Jul 29 15:34 /etc/sysconfig/network-scripts/ifcfg-br2-guest
-rw-r--r-- 1 root root 331 Jul 29 15:34 /etc/sysconfig/network-scripts/ifcfg-br3-dmz
-rw-r--r-- 1 root root 310 Jul 28 09:40 /etc/sysconfig/network-scripts/ifcfg-em1
-rw-r--r-- 1 root root 271 Jul 28 10:34 /etc/sysconfig/network-scripts/ifcfg-em2
-rw-r--r--. 1 root root 285 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-em3
-rw-r--r--. 1 root root 285 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-em4
-rw-r--r--. 1 root root 254 Apr 2 17:30 /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r-- 1 root root 319 Jul 28 09:40 /etc/sysconfig/network-scripts/ifcfg-p5p1
-rw-r--r--. 1 root root 286 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-p5p2
-rw-r--r--. 1 root root 286 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-p5p3
-rw-r--r--. 1 root root 286 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-p5p4
-rw-r--r-- 1 root root 231 Jul 28 10:21 /etc/sysconfig/network-scripts/ifcfg-vlan1
-rw-r--r-- 1 root root 234 Aug 4 13:41 /etc/sysconfig/network-scripts/ifcfg-vlan2
-rw-r--r-- 1 root root 226 Jul 28 10:25 /etc/sysconfig/network-scripts/ifcfg-vlan3

# cat ifcfg-em1
TYPE=Ethernet
BOOTPROTO=none
#DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=em1
UUID=6426aecc-5dba-4bf7-b4dd-5e747e21a3ca
ONBOOT=yes
HWADDR=B8:CA:3A:69:F3:34
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
NOZEROCONF=yes
# cat ifcfg-p5p1
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
PEERDNS=no
PEERROUTES=no
IPV4_FAILURE_FATAL=no
NAME=p5p1
UUID=77ce1ab7-2d0b-482b-b1b2-12c12dc886a0
ONBOOT=yes
HWADDR=A0:36:9F:2F:06:D0
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no

# cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS='mode=4 miimon=1000'
USERCTL=no
NM_CONTROLLED=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
NOZEROCONF=yes

# cat ifcfg-vlan1
DEVICE=vlan1
PHYSDEV=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
VLAN=yes
TYPE=Ethernet
BRIDGE=br1-int
#IPADDR=192.168.1.18
#NETMASK=255.255.128.0
#GATEWAY=192.168.1.1
#DNS=192.168.1.1
#DEFROUTE=yes
#NOZEROCONF=yes

# cat ifcfg-br1-int
DEVICE=br1-int
TYPE=Bridge
IPADDR=192.168.1.18
NETMASK=255.255.128.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
DELAY=0
DEFROUTE=yes
NOZEROCONF=yes
#PEERDNS=yes
#PEERROUTES=yes
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
STP=yes

# cat ifcfg-vlan2 ifcfg-br2-guest
DEVICE=vlan2
PHYSDEV=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
VLAN=yes
TYPE=Ethernet
BRIDGE=br2-guest
#IPADDR=192.168.128.18
#NETMASK=255.255.255.0
#GATEWAY=192.168.128.1
#DNS=8.8.8.8
##DEFROUTE=yes
#NOZEROCONF=yes

Centos 7 KVM hypervisor with libvirt management library.
Libvirt is throwing following error through virt-manager when entering clicking on one of the interfaces in 'Network interfaces' tab of virt-manager:
"Error selecting interface: XML Error: vlan interface misses the tag attribute".

There are 3 bridge interfaces configured on the host (each for a different vlan) on top of a single bonding interface, working properly.

# rpm -qa |egrep 'libvirt|qemu|kvm'
libvirt-daemon-driver-nodedev-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-nwfilter-1.1.1-29.el7_0.1.x86_64
libvirt-glib-0.1.7-3.el7.x86_64
libvirt-daemon-driver-network-1.1.1-29.el7_0.1.x86_64
qemu-img-1.5.3-60.el7_0.5.x86_64
libvirt-client-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-config-network-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-secret-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-lxc-1.1.1-29.el7_0.1.x86_64
qemu-kvm-1.5.3-60.el7_0.5.x86_64
ipxe-roms-qemu-20130517-5.gitc4bce43.el7.noarch
libvirt-daemon-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-interface-1.1.1-29.el7_0.1.x86_64
libvirt-python-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-qemu-1.1.1-29.el7_0.1.x86_64
qemu-kvm-common-1.5.3-60.el7_0.5.x86_64
qemu-kvm-tools-1.5.3-60.el7_0.5.x86_64
libvirt-daemon-config-nwfilter-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-storage-1.1.1-29.el7_0.1.x86_64
libvirt-1.1.1-29.el7_0.1.x86_64
virt-manager-0.10.0-20.el7.noarch
virt-manager-common-0.10.0-20.el7.noarch

# cat /etc/centos-release
CentOS Linux release 7.0.1406 (Core)

# uname -a
Linux venus.innovatrics.inn 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: em1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
3: em2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
    link/ether b8:ca:3a:69:f3:35 brd ff:ff:ff:ff:ff:ff
4: em3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether b8:ca:3a:69:f3:36 brd ff:ff:ff:ff:ff:ff
5: em4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether b8:ca:3a:69:f3:37 brd ff:ff:ff:ff:ff:ff
6: p5p1: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
7: p5p2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether a0:36:9f:2f:06:d1 brd ff:ff:ff:ff:ff:ff
8: p5p3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 1000
    link/ether a0:36:9f:2f:06:d2 brd ff:ff:ff:ff:ff:ff
9: p5p4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether a0:36:9f:2f:06:d3 brd ff:ff:ff:ff:ff:ff
10: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
11: vlan1@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br1-int state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
12: br1-int: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.18/17 brd 192.168.127.255 scope global br1-int
       valid_lft forever preferred_lft forever
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
13: vlan2@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br2-guest state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
14: br2-guest: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet 192.168.128.18/24 brd 192.168.128.255 scope global br2-guest
       valid_lft forever preferred_lft forever
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
15: vlan3@bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br3-dmz state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
16: br3-dmz: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether b8:ca:3a:69:f3:34 brd ff:ff:ff:ff:ff:ff
    inet 10.1.14.18/24 brd 10.1.14.255 scope global br3-dmz
       valid_lft forever preferred_lft forever
    inet6 fe80::baca:3aff:fe69:f334/64 scope link
       valid_lft forever preferred_lft forever
17: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
    link/ether 52:54:00:97:60:a5 brd ff:ff:ff:ff:ff:ff
    inet 10.11.12.1/24 brd 10.11.12.255 scope global virbr0
       valid_lft forever preferred_lft forever
18: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
    link/ether 52:54:00:97:60:a5 brd ff:ff:ff:ff:ff:ff

# ls -la /etc/sysconfig/network-scripts/ifcfg-*
-rw-r--r-- 1 root root 241 Jul 30 09:38 /etc/sysconfig/network-scripts/ifcfg-bond0
-rw-r--r-- 1 root root 337 Jul 29 08:07 /etc/sysconfig/network-scripts/ifcfg-br1-int
-rw-r--r-- 1 root root 339 Jul 29 15:34 /etc/sysconfig/network-scripts/ifcfg-br2-guest
-rw-r--r-- 1 root root 331 Jul 29 15:34 /etc/sysconfig/network-scripts/ifcfg-br3-dmz
-rw-r--r-- 1 root root 310 Jul 28 09:40 /etc/sysconfig/network-scripts/ifcfg-em1
-rw-r--r-- 1 root root 271 Jul 28 10:34 /etc/sysconfig/network-scripts/ifcfg-em2
-rw-r--r--. 1 root root 285 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-em3
-rw-r--r--. 1 root root 285 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-em4
-rw-r--r--. 1 root root 254 Apr 2 17:30 /etc/sysconfig/network-scripts/ifcfg-lo
-rw-r--r-- 1 root root 319 Jul 28 09:40 /etc/sysconfig/network-scripts/ifcfg-p5p1
-rw-r--r--. 1 root root 286 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-p5p2
-rw-r--r--. 1 root root 286 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-p5p3
-rw-r--r--. 1 root root 286 Jul 23 16:59 /etc/sysconfig/network-scripts/ifcfg-p5p4
-rw-r--r-- 1 root root 231 Jul 28 10:21 /etc/sysconfig/network-scripts/ifcfg-vlan1
-rw-r--r-- 1 root root 234 Aug 4 13:41 /etc/sysconfig/network-scripts/ifcfg-vlan2
-rw-r--r-- 1 root root 226 Jul 28 10:25 /etc/sysconfig/network-scripts/ifcfg-vlan3

# cat ifcfg-em1
TYPE=Ethernet
BOOTPROTO=none
#DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=em1
UUID=6426aecc-5dba-4bf7-b4dd-5e747e21a3ca
ONBOOT=yes
HWADDR=B8:CA:3A:69:F3:34
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
NOZEROCONF=yes

# cat ifcfg-p5p1
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
PEERDNS=no
PEERROUTES=no
IPV4_FAILURE_FATAL=no
NAME=p5p1
UUID=77ce1ab7-2d0b-482b-b1b2-12c12dc886a0
ONBOOT=yes
HWADDR=A0:36:9F:2F:06:D0
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no

# cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS='mode=4 miimon=1000'
USERCTL=no
NM_CONTROLLED=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
NOZEROCONF=yes

# cat ifcfg-vlan1
DEVICE=vlan1
PHYSDEV=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
VLAN=yes
TYPE=Ethernet
BRIDGE=br1-int
#IPADDR=192.168.1.18
#NETMASK=255.255.128.0
#GATEWAY=192.168.1.1
#DNS=192.168.1.1
#DEFROUTE=yes
#NOZEROCONF=yes

# cat ifcfg-br1-int
DEVICE=br1-int
TYPE=Bridge
IPADDR=192.168.1.18
NETMASK=255.255.128.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
DELAY=0
DEFROUTE=yes
NOZEROCONF=yes
#PEERDNS=yes
#PEERROUTES=yes
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
STP=yes

# cat ifcfg-vlan2
DEVICE=vlan2
PHYSDEV=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
VLAN=yes
TYPE=Ethernet
BRIDGE=br2-guest
#IPADDR=192.168.128.18
#NETMASK=255.255.255.0
#GATEWAY=192.168.128.1
#DNS=8.8.8.8
##DEFROUTE=yes
#NOZEROCONF=yes

# cat ifcfg-br2-guest
DEVICE=br2-guest
TYPE=Bridge
IPADDR=192.168.128.18
NETMASK=255.255.255.0
GATEWAY=192.168.128.1
#DNS1=8.8.8.8
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
DELAY=0
DEFROUTE=no
NOZEROCONF=yes
#PEERDNS=yes
#PEERROUTES=yes
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
STP=yes
...

Steps To Reproduce1. Configure bond0 bonding interface from 2 interfaces
# cat ifcfg-em1
TYPE=Ethernet
BOOTPROTO=none
#DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=em1
UUID=6426aecc-5dba-4bf7-b4dd-5e747e21a3ca
ONBOOT=yes
HWADDR=B8:CA:3A:69:F3:34
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
NOZEROCONF=yes

# cat ifcfg-p5p1
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=no
PEERDNS=no
PEERROUTES=no
IPV4_FAILURE_FATAL=no
NAME=p5p1
UUID=77ce1ab7-2d0b-482b-b1b2-12c12dc886a0
ONBOOT=yes
HWADDR=A0:36:9F:2F:06:D0
SLAVE=yes
MASTER=bond0
NM_CONTROLLED=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
# cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS='mode=4 miimon=1000'
USERCTL=no
NM_CONTROLLED=no
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
IPV6_FAILURE_FATAL=no
NOZEROCONF=yes

2. (optional) Configure LAG for 2 ports belonging to those interfaces on the switch

3. Configure 802.1Q vlan interfaces from bond0:
# cat ifcfg-vlan1
DEVICE=vlan1
PHYSDEV=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
VLAN=yes
TYPE=Ethernet
BRIDGE=br1-int

# cat ifcfg-vlan2
DEVICE=vlan2
PHYSDEV=bond0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
VLAN=yes
TYPE=Ethernet
BRIDGE=br2-guest

4. Configure bridge interfaces corresponding to previously created vlan interfaces:
# cat ifcfg-br1-int
DEVICE=br1-int
TYPE=Bridge
IPADDR=192.168.1.18
NETMASK=255.255.128.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
DELAY=0
DEFROUTE=yes
NOZEROCONF=yes
#PEERDNS=yes
#PEERROUTES=yes
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
STP=yes

# cat ifcfg-br2-guest
DEVICE=br2-guest
TYPE=Bridge
IPADDR=192.168.128.18
NETMASK=255.255.255.0
GATEWAY=192.168.128.1
#DNS1=8.8.8.8
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
NM_CONTROLLED=no
DELAY=0
DEFROUTE=no
NOZEROCONF=yes
#PEERDNS=yes
#PEERROUTES=yes
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_PEERDNS=no
IPV6_PEERROUTES=no
STP=yes

5. Install KVM and libvirt libraries
# rpm -qa |egrep 'libvirt|qemu|kvm'
libvirt-daemon-driver-nodedev-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-nwfilter-1.1.1-29.el7_0.1.x86_64
libvirt-glib-0.1.7-3.el7.x86_64
libvirt-daemon-driver-network-1.1.1-29.el7_0.1.x86_64
qemu-img-1.5.3-60.el7_0.5.x86_64
libvirt-client-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-config-network-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-secret-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-lxc-1.1.1-29.el7_0.1.x86_64
qemu-kvm-1.5.3-60.el7_0.5.x86_64
ipxe-roms-qemu-20130517-5.gitc4bce43.el7.noarch
libvirt-daemon-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-interface-1.1.1-29.el7_0.1.x86_64
libvirt-python-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-qemu-1.1.1-29.el7_0.1.x86_64
qemu-kvm-common-1.5.3-60.el7_0.5.x86_64
qemu-kvm-tools-1.5.3-60.el7_0.5.x86_64
libvirt-daemon-config-nwfilter-1.1.1-29.el7_0.1.x86_64
libvirt-daemon-driver-storage-1.1.1-29.el7_0.1.x86_64
libvirt-1.1.1-29.el7_0.1.x86_64
virt-manager-0.10.0-20.el7.noarch
virt-manager-common-0.10.0-20.el7.noarch

6. Start virt-manager, select the hypervisor, click 'File' -> 'Edit' -> 'Connection details'. In the 'Connection details' select 'Network interfaces' tab and select one of the bridge interfaces (br1-int or br2-guest). Following error will appear in the content of the window: "Error selecting interface: XML Error: vlan interface misses the tag attribute"
Additional InformationFunction 'virInterfaceDefParseVlan' throwing the error is declared in src/conf/interface_conf.c
static int
virInterfaceDefParseVlan(virInterfaceDefPtr def,
                         xmlXPathContextPtr ctxt) {
    def->data.vlan.tag = virXPathString("string(./@tag)", ctxt);
    if (def->data.vlan.tag == NULL) {
        virReportError(VIR_ERR_XML_ERROR,
                       "%s", _("vlan interface misses the tag attribute"));
        return -1;
    }

    def->data.vlan.devname =
         virXPathString("string(./interface/@name)", ctxt);
    if (def->data.vlan.devname == NULL) {
        virReportError(VIR_ERR_XML_ERROR,
                       "%s", _("vlan interface misses name attribute"));
        return -1;
    }
    return 0;
}
TagsNo tags attached.
abrt_hash
URL

Activities

svacko

svacko

2014-08-04 12:23

reporter  

libvirt-error.png (32,140 bytes)   
libvirt-error.png (32,140 bytes)   
lgs-it

lgs-it

2014-11-13 14:31

reporter   ~0021670

I had the same issue (server with two bonded network interfaces), but I could solve it by myself by removing the bond and completely as well as resetting and reconfiguring the network interfaces. In the last step I've set up the bond.

After I spent/wasted quite some time reading lots of forum posts and determining the problem, I decided to do as described above and it worked (for me).
lgs-it

lgs-it

2014-11-14 11:48

reporter   ~0021690

Cheered to soon, the problem is back after rebooting the system. Maybe some network configs were not applied while restarting the network services.

Issue History

Date Modified Username Field Change
2014-08-04 12:22 svacko New Issue
2014-08-04 12:23 svacko File Added: libvirt-error.png
2014-11-13 14:31 lgs-it Note Added: 0021670
2014-11-14 11:48 lgs-it Note Added: 0021690