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
Which I turned into this one:
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.
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.