feat: igb nic, jumbo frames and tap offloads on the guest link

This commit is contained in:
2026-09-06 05:39:38 +02:00
parent 91fd1c45e1
commit f90745e68e
6 changed files with 45 additions and 27 deletions

View File

@@ -75,12 +75,6 @@ Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
Put your public key in `C:\ProgramData\ssh\administrators_authorized_keys` for an Administrator
account. `vm-native-verify` uses that key.
SSH into the guest fails with `Corrupted MAC on input` until the host has the e1000e offload rule
from the `vfio-native` package. The emulated NIC's TX offloads corrupt integrity-checked traffic on
the host side of the tap; SMB tolerates it, SSH does not. The package installs a udev rule that
turns the offloads off on every libvirt tap as it appears, and `vm-native-setup` says so if it is
missing.
## 3. Make the NVMe driver boot-critical
The disk is about to move from virtio to emulated NVMe, and Windows only loads boot-start drivers
@@ -127,9 +121,14 @@ Two things it asks or warns about:
Before the first boot, if the host has less free memory than the guest's RAM, free and compact
it so the guest lands on transparent hugepages; `vm-native-setup` prints the two commands when it
applies. The NIC stays `e1000e`, so the network survives the driver removal in the next step. Do not use
applies. The NIC stays `igb`, so the network survives the driver removal in the next step. Do not use
virtiofs for host files: it is a virtio device the scanner names, and its shared memory backing
blocks transparent hugepages for the whole guest. Share over SMB on the e1000e link instead.
blocks transparent hugepages for the whole guest. Share over SMB on the `igb` link instead.
The interface asks for MTU 9000, and the package's hook turns GSO and GRO on for the tap. Together
they take the inbound link from 2.9 to 14 Gbit/s; neither does anything alone. The libvirt network
needs `<mtu size='9000'/>` too, and the guest needs *Jumbo Packet* 9014 with its interface MTU at
9000 - setting the adapter property alone leaves the IP MTU at 1500 and gains nothing.
## 5. Remove the virtio drivers and the agents