dhcp3-server reports many bad udp checksums to syslog using virtio NIC
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dhcp3 (Debian) |
Fix Released
|
Unknown
|
|||
dhcp3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
High
|
Stéphane Graber | ||
isc-dhcp (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Stéphane Graber | ||
Quantal |
Fix Released
|
Undecided
|
Unassigned | ||
lxc (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
== Rationale ==
Machines using virtio (kvm/xen) and running a dhcp server in a VM won't receive the proper udp checksums which leads to dhcpd dropping the packets.
This patch forces the checksum to be calculated in such case.
== Test case ==
1) Install a dhcp server in a VM using kvm/xen
2) Make sure you don't have iptables re-calculating the checksums for you
3) Check that the requests go through as expected
== Regression potential ==
Raring has had that fix for a while, so does redhat, so it looks pretty safe to me.
--- original bug report ---
Tested with dhcp3-server ver. 3.1.3-2ubuntu3.3 in Ubuntu 10.04.3 Server, x64.
The DHCP server reports that UDP packets sent to it have bad checksums:
Feb 11 06:57:18 ... dhcpd: 5 bad udp checksums in 5 packets
Feb 11 06:58:22 ... dhcpd: last message repeated 7 times
Feb 11 06:59:17 ... dhcpd: last message repeated 7 times
The DHCP server host is a KVM virtual machine using a virtio-based virtual NIC.
This problem has been reported for other distros using KVM and virtio:
https:/
http://<email address hidden>
- suggests using iptables to write in a checksum
http://
- Fedora patch to dhcp to avoid this
The simplest workaround is to change the virtual NIC type from virtio to Intel e1000 in KVM. Apparently this driver calculates checksums. But virtio is the default driver type.
Thanks,
Tim Miller Dyck
Changed in isc-dhcp (Ubuntu Quantal): | |
status: | New → In Progress |
assignee: | nobody → Stéphane Graber (stgraber) |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in isc-dhcp (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in dhcp3 (Ubuntu Lucid): | |
status: | Triaged → In Progress |
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
status: | Confirmed → Incomplete |
Changed in dhcp3 (Debian): | |
status: | Unknown → New |
Changed in dhcp3 (Debian): | |
status: | New → Confirmed |
Changed in dhcp3 (Debian): | |
status: | Confirmed → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.