TrueNAS in Proxmox and network dropping [SOLVED]

I installed TrueNAS SCALE 25.10.4 - Goldeye in a VM on Proxmox.

qm config 250
agent: 1
boot: order=scsi0;net0
cores: 4
cpu: host
description:
memory: 16384
meta: creation-qemu=11.0.0,ctime=1782836428
name: truenas
net0: virtio=BC:24:11:61:85:C2,bridge=vmbr0,queues=4
numa: 0
onboot: 1
ostype: l26
scsi0: fast-pool:vm-250-disk-0,discard=on,iothread=1,size=16G,ssd=1
scsi1: /dev/disk/by-id/ata-WDC_WD142KFGX-68AFPN0_6AGD9TGS,backup=0,size=13039G,serial=6AGD9TGS
scsi2: /dev/disk/by-id/ata-WDC_WD142KFGX-68AFPN0_5MG1E68K,backup=0,size=13039G,serial=5MG1E68K
scsi3: /dev/disk/by-id/ata-WDC_WD142KFGX-68AFPN0_6AGD7W5S,backup=0,size=13039G,serial=6AGD7W5S
scsihw: virtio-scsi-single
smbios1: uuid=a0d73c82-b336-4fe0-9c95-b579411caf5d
sockets: 1
vmgenid: 9892bb7d-c6b4-43da-acd6-5cc56398acb1

I checked the ZFS performance, it’s what to expect - no issues there.

I have created an SMB share and installed Jellyfin as an app in TrueNAS.

Now when I copy from TrueNAS SMB to another machine in the same network I get max 85MB/s transfer rate on my 1G network. So already there is something fishy going on with the network.

I previously had a LXC running only SMB service and I got full speed there.

I use Unifi sitemagic and there things get complicated.

When I copy from TrueNAS SMB over that (what actually is a WireGuard VPN) network I get transfer pauses on the remote machine (using TeraCopy) :

Jellyfin playback is broken too, behaves the same as the SMB transfer. I get 5 second of playback then a long pause, then 2 seconds of playback then a long pause and so on.

Turns out that this all points to MTU issues.

I tried to change the MTU on the network adapter for the VM and in the TrueNAS to 1380. That didn’t help.

I set it back to 1500:

truenas_admin@truenas[~]$ ethtool ens18
Settings for ens18:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: Unknown!
Duplex: Unknown! (255)
Auto-negotiation: off
Port: Other
PHYAD: 0
Transceiver: internal
netlink error: Operation not permitted
Link detected: yes

Speed is uknown?

I would like some help with this.

Found the solution. I hope this helps someone with the same problem.

In Proxmox, for the given VM change the MTU on the network device to 1.