Bug in attach nic using IPv4+IPv6 Vnet with KVM host - Opennebula 5.6.2

Hi,

I’m (maybe found) a bug in attach NIC using IPv4+IPv6 VNET in KVM hosts. Occurs that when you create VM, or when poweron the VM the Opennebula create the deployment file with a libvirt filter (<filterref filter=‘clean-traffic’>) just with IPv4 IP. Then is just IPv4 working. But if you hot attach the NIC, the libvirt domain is updated without this filter, then IPv4 and IPv6 working fine.

Below is my configuration:
$ onevnet show 19
VIRTUAL NETWORK 19 INFORMATION
ID : 19
NAME : IPv6_e_NAT_IPv4
USER : oneadmin
GROUP : oneadmin
LOCK : None
CLUSTERS : 0
BRIDGE : brnetinternal
VN_MAD : 802.1Q
PHYSICAL DEVICE : bond1
VLAN ID : 9
AUTOMATIC VLAN ID : NO
AUTOMATIC OUTER VLAN ID : NO
USED LEASES : 7

PERMISSIONS
OWNER : um-
GROUP : u–
OTHER : u–

VIRTUAL NETWORK TEMPLATE
BRIDGE=“brnetinternal”
DESCRIPTION=“IPv6 and IPv4”
DNS=“2804:xxx:x::x”
GATEWAY=“10.250.0.1”
GATEWAY6=“2804:xxxx:x::x”
NETWORK_ADDRESS=“10.250.0.0”
NETWORK_MASK=“255.255.255.0”
OUTER_VLAN_ID=""
PHYDEV=“bond1”
SECURITY_GROUPS=“0”
VLAN_ID=“9”
VN_MAD=“802.1Q”

ADDRESS RANGE POOL
AR 0
SIZE : 240
LEASES : 7

RANGE FIRST LAST
MAC 02:00:0a:fa:00:05 02:00:0a:fa:00:f4
IP 10.250.0.5 10.250.0.244
IP6_GLOBAL 2804:xxxx:xx::aff:fefa:5 2804:xxxx:xx::aff:fefa:f4

With power on the VM (working just IPv4):

$ virsh edit one-647
(…)
<interface type=‘bridge’>
<mac address=‘02:00:0a:fa:00:08’/>
<source bridge=‘brnetinternal’/>
<target dev=‘one-647-0’/>
<model type=‘virtio’/>
<filterref filter=‘clean-traffic’>
<parameter name=‘IP’ value=‘10.250.0.8’/>
</filterref>
<alias name=‘net0’/>
<address type=‘pci’ domain=‘0x0000’ bus=‘0x00’ slot=‘0x03’ function=‘0x0’/>
</interface>

When hot added NIC (working IPv4 AND IPv6):

<interface type=‘bridge’>
<mac address=‘02:00:0a:fa:00:08’/>
<source bridge=‘brnetinternal’/>
<target dev=‘one-647-0’/>
<model type=‘virtio’/>
<alias name=‘net0’/>
<address type=‘pci’ domain=‘0x0000’ bus=‘0x00’ slot=‘0x03’ function=‘0x0’/>
</interface>

For workaround, is possible disable adding of this filter? How?

You could check /etc/one/vmm_exec/vmm_exec_kvm.conf and /var/lib/one/remotes/etc/vmm/kvm/kvmrc for enabled defaults

1 Like

@atodorov_storpool,

Thanks, I changed /etc/one/vmm_exec/vmm_exec_kvm.conf and the filter has disabled in VM creation.

1 Like