Feature request: set LXC MTU from web GUI network menu option

jsabater

Member
Oct 25, 2021
110
11
23
48
Palma, Mallorca, Spain
Hello everyone!

I have been investigating how to change the MTU from the default value of 1500 to 1400 in my newly installed LXC container (TurnKey PostgreSQL) on my Proxmox 7 cluster and, after some investigation, the only way I have found to make it work is to edit the file /etc/pve/lxc/100.conf, where there is this line:

Code:
net0: name=eno1,bridge=vmbr4002,firewall=1,hwaddr=0A:14:98:05:8C:C5,ip=192.168.0.2/24,type=veth

Which I turned into this one:

Code:
net0: name=eno1,bridge=vmbr4002,firewall=1,hwaddr=0A:14:98:05:8C:C5,ip=192.168.0.2/24,type=veth,mtu=1400

Note the MTU added at the end. This worked after rebooting the guest, so it was persistent, which was the desired behaviour.

The reason why I had to do this is because the vSwitch feature of Hetzner makes it mandatory. Any other way I found on the Internet was outdated or didn't work.

Also note that the vmbr4002 bridge set on the host, which you can see in the attached screenshot, already did have the MTU set to 1400 and an ifconfig command would show that value to be correct. Still, the network interface would be configured to 1500 thus causing the network to not work (very slow connection).

I would like to kindly request this option (MTU) to be added to the Web GUI, both when creating the LXC guest and when editing its network configuration through the menu option. As far as I've been able to test, when creating a VM, or when editing through the Hardware option menu, the same (or similar) feature request would apply.

Also, I am not sure whether this is the right place to request a feature. If not, should I create an account at https://bugzilla.proxmox.com/ and add the feature request there?

Thanks in advance.
 

Attachments

  • Proxmox 7 LXC Network GUI.png
    Proxmox 7 LXC Network GUI.png
    58.5 KB · Views: 34
  • Like
Reactions: mhagen

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!