This guide provides a method to persistently disable TCP/UDP checksum offloading on eth0
in a virtual machine, ensuring the changes remain effective even after a reboot. (Usually to fix issues for Minecraft Bedrock Server)
First, ensure that ethtool
is installed. If it's not installed, you can install it using the following command:
sudo apt-get install -y ethtool
Run the following command to disable TCP/UDP checksum offloading on eth0
:
sudo ethtool -K eth0 tx off
To make this change persistent across reboots, create a script that will run at startup:
SCRIPT_PATH="/etc/network/if-up.d/disable-checksum-offload"
cat << EOF | sudo tee "$SCRIPT_PATH"
#!/bin/sh
ethtool -K eth0 tx off
EOF
Change the script's permissions to make it executable:
sudo chmod +x "$SCRIPT_PATH"
After rebooting your virtual machine, the script will automatically run, disabling the checksum offloading on eth0
.
With these steps, you have successfully set up your virtual machine to persistently disable TCP/UDP checksum offloading on eth0
, ensuring that this configuration persists across reboots.