Applicable to:
- SolusVM 2
Question
How to set a custom MTU for NICs in SolusVM 2?
Answer
-
Run the following command on the CR node to change the MTU for a specific
port (replace
PORTandVALUEaccordingly): -
To configure automatic MTU changes for every created VM, open
/etc/libvirt/hooks/qemufor editing and locate the following line: - Add the following lines directly after it:
ovs-vsctl set int PORT mtu_request=VALUE
LIMITS_PATH="/usr/local/solus/ovs/${UUID}/limits"
MTPORT=`awk '{print $4;exit}' /usr/local/solus/ovs/${UUID}/limits`
printf "ovs-vsctl set int $MTPORT mtu_request=1450" >> "$LIMITS_PATH"
Comments
Please sign in to leave a comment.