diff --git a/hack/run-e2e-conformance-virtual-cluster.sh b/hack/run-e2e-conformance-virtual-cluster.sh index 90670f2df..351614251 100755 --- a/hack/run-e2e-conformance-virtual-cluster.sh +++ b/hack/run-e2e-conformance-virtual-cluster.sh @@ -166,6 +166,23 @@ method=disabled [proxy]' > /etc/NetworkManager/system-connections/multi.nmconnection chmod 600 /etc/NetworkManager/system-connections/multi.nmconnection + +echo '[Unit] +Description=disable checksum offload to avoid vf bug +After=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/bash -c "ethtool --offload eth1 rx off tx off && ethtool -K eth1 gso off" +StandardOutput=journal+console +StandardError=journal+console + +[Install] +WantedBy=default.target' > /etc/systemd/system/disable-offload.service + +systemctl daemon-reload +systemctl enable --now disable-offload + systemctl restart NetworkManager EOF