Articles in this section

How to set a custom MTU for NICs in SolusVM 2?

Applicable to:

  • SolusVM 2

Question

How to set a custom MTU for NICs in SolusVM 2?

Answer

  1. Run the following command on the CR node to change the MTU for a specific port (replace PORT and VALUE accordingly):
  2. ovs-vsctl set int PORT mtu_request=VALUE
  3. To configure automatic MTU changes for every created VM, open /etc/libvirt/hooks/qemu for editing and locate the following line:
  4. LIMITS_PATH="/usr/local/solus/ovs/${UUID}/limits"
  5. Add the following lines directly after it:
MTPORT=`awk '{print $4;exit}' /usr/local/solus/ovs/${UUID}/limits`
printf "ovs-vsctl set int $MTPORT mtu_request=1450" >> "$LIMITS_PATH"

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.