# \[SOLVED\] VXLAN driver error in OpenNebula 5.4

**URL:** <https://forum.opennebula.io/t/solved-vxlan-driver-error-in-opennebula-5-4/4931>\
**Category:** Product Support\
**Created:** [September 18, 2017, 7:39am UTC](https://forum.opennebula.io/t/solved-vxlan-driver-error-in-opennebula-5-4/4931 "2017-09-18T07:39:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [September 18, 2017, 7:39am UTC](https://forum.opennebula.io/t/solved-vxlan-driver-error-in-opennebula-5-4/4931/1 "2017-09-18T07:39:58Z")

</div>

Hi all

We have the same issue described here:

> **[Bug #5360: VXLAN driver error in 5.4 - OpenNebula - OpenNebula Development pages](https://dev.opennebula.org/issues/5360.html)**
>
> Redmine

> Tue Sep 12 05:01:42 2017 [Z0][VMM][D]: Message received: LOG I 212 /var/tmp/one/vnm/vxlan/vxlan\_driver.rb:54:in `create\_vlan\_dev’: uninitialized constant VNMMAD::VNMNetwork::IPv4 (NameError)

It seems that vxlan is not working in 5.4, any quick workaround to fix this? the vnet template is the same that before with:

VLAN=“YES”  
VLAN\_ID=“52”  
VN\_MAD=“vxlan”

Cheers and thanks!  
Álvaro

---

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [September 18, 2017, 8:13am UTC](https://forum.opennebula.io/t/solved-vxlan-driver-error-in-opennebula-5-4/4931/2 "2017-09-18T08:13:43Z")

</div>

This is the spurious line in `vxlan_driver.rb` :

`mcs = VNMMAD::VNMNetwork::IPv4.to_s(mc)`

Maybe it should be replaced by the `ipaddr` variable?

---

<div class="post-metadata">

**Author:** ![alvaro\_simongarcia](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alvaro_simongarcia/32/4178_2.png) [@alvaro\_simongarcia](https://forum.opennebula.io/u/alvaro_simongarcia)\
**Post date:** [September 18, 2017, 9:02am UTC](https://forum.opennebula.io/t/solved-vxlan-driver-error-in-opennebula-5-4/4931/3 "2017-09-18T09:02:52Z")

</div>

ok  
it seems that this issue is already fixed in the master branch, so I have changed the file ` /var/lib/one/remotes/vnm/vxlan/vxlan_driver.rb`

line 54:

```
mcs = VNMMAD::VNMNetwork::IPv4.to_s(mc)

```

by the new one:

`mcs = IPAddr.new(mc, Socket::AF_INET).to_s`

and then just deploy the new network driver in the hyps as oneadmin user:

> $ onehost sync --force

That fix this issue.

Cheers  
Álvaro
