Fresh installed ubuntu cannot enable vxlan

Hey everyone,

I’m encountering an issue after freshly installing Ubuntu using MAAS (Metal as a Service). Everything seemed to go smoothly during the installation process, but when I try to use modprobe to load the vxlan module, I keep getting the following error:

modprobe: ERROR: could not insert 'vxlan': Invalid argument
modinfo vxlan
filename:       /lib/modules/5.15.0-97-generic/kernel/drivers/net/vxlan/vxlan.ko
alias:          rtnl-link-vxlan
description:    Driver for VXLAN encapsulated traffic
author:         Stephen Hemminger <stephen@networkplumber.org>
version:        0.1
license:        GPL
srcversion:     42659BEC9F70FD2505BD803
depends:        udp_tunnel,ip6_udp_tunnel
retpoline:      Y
intree:         Y
name:           vxlan
vermagic:       5.15.0-97-generic SMP mod_unload modversions
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        67:F9:43:A3:60:03:72:67:A6:F6:43:8C:A8:F5:F7:45:B1:19:21:2D
sig_hashalgo:   sha512
signature:      0E:70:EE:62:26:7A:DC:E7:CC:21:A7:B3:75:B3:EF:C2:59:A9:5D:41:
		6F:1E:1E:21:96:48:0B:82:60:40:1B:86:33:A6:6F:EB:A7:96:95:A6:
		C2:22:39:20:77:34:EA:9C:26:68:23:76:EA:81:E1:F0:85:07:35:E5:
		C5:91:76:20:11:53:55:91:67:C4:12:CE:2A:CC:5F:3C:D9:5C:0A:F8:
		75:7F:F1:18:01:F4:D0:8C:BE:DB:31:AB:CA:1B:C6:7E:06:3B:85:95:
		66:9E:B3:9E:1D:E6:B8:74:A0:62:64:70:5D:9C:2E:3A:2A:8C:A7:6E:
		1C:29:C1:16:D1:FC:3F:9C:0A:2C:63:49:C5:BA:44:11:BC:72:76:E3:
		DA:93:C2:1F:A9:C1:42:AC:F6:D9:94:9D:9C:29:D2:40:A5:EF:61:6E:
		E6:66:06:A5:58:EB:7F:C0:CE:2F:D1:51:D6:D4:2D:5F:09:EF:46:91:
		77:3A:F5:F1:84:3D:62:7B:BF:36:98:C2:CA:9F:B6:07:2B:3F:9E:96:
		1C:F9:32:B3:7C:52:A0:8D:26:36:D1:66:93:71:3F:95:B0:DB:D8:9F:
		28:B6:94:49:88:E5:8D:97:2D:6C:7E:90:79:78:82:D1:A3:70:E4:4E:
		13:91:A3:97:1F:6B:9F:92:56:39:9D:A9:25:35:72:10:42:14:DA:42:
		BF:20:BB:80:09:69:E9:C9:78:7F:81:87:A0:CF:1B:14:AC:FD:17:63:
		90:9F:51:3A:29:09:5E:48:07:DB:8F:3A:D3:AC:8C:F4:FE:6B:CF:33:
		0D:E7:89:6E:91:43:B7:44:7E:3E:6F:AC:26:62:56:2A:71:14:96:58:
		09:5E:D1:2E:91:88:B5:B4:DB:D9:28:59:12:FB:DA:5B:5B:62:91:F6:
		C4:03:CD:22:FD:1B:AC:FC:17:76:DE:06:6D:4D:D5:CE:5F:CC:17:7A:
		AB:8D:8E:34:46:FA:DD:66:74:0A:8F:E6:8D:8E:AA:42:88:03:D0:02:
		EF:69:AF:48:C3:D4:2A:F6:36:3F:6E:88:BE:E2:64:C9:ED:A4:72:D8:
		D4:96:35:1E:3F:00:4D:69:52:CE:A2:EA:4E:04:B9:FE:71:4B:43:A5:
		84:73:05:7B:AC:B8:CF:75:69:89:50:75:72:48:98:5C:7F:89:14:89:
		82:4A:33:FE:11:D2:63:F4:36:5A:38:34:F1:B6:8D:6A:FB:CB:11:53:
		12:67:A8:1B:ED:AE:E2:0F:B8:8E:E3:0A:12:8A:7E:FE:4C:6C:0C:AD:
		4B:3F:8A:EA:C6:B4:CB:62:7D:83:C5:97:8A:A0:E3:93:93:96:B9:6D:
		78:5D:B2:F2:DD:2D:BD:82:27:DD:C1:72
parm:           udp_port:Destination UDP port (ushort)
parm:           log_ecn_error:Log packets received with corrupted ECN (bool)
modprobe udp_tunnel
modprobe: ERROR: could not insert 'udp_tunnel': Invalid argument
uname -a
Linux gpu1 5.15.0-97-generic #107-Ubuntu SMP Wed Feb 7 13:26:48 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

I’ve tried searching online for solutions, but haven’t had much luck. Has anyone else experienced this problem or knows how to resolve it? I’d greatly appreciate any guidance or suggestions you can provide. Thanks in advance for your help!