Bug 672529

Summary: VMs with virtIO NIC can't access the PXE server
Product: Red Hat Enterprise Linux 6 Reporter: Rami Vaknin <rvaknin>
Component: gpxeAssignee: Michael S. Tsirkin <mst>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.1CC: bcao, cra, fnadge, juzhang, lcapitulino, lihuang, matt_domsch, mgoldboi, mkenneth, mst, plyons, virt-maint, yeylon
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gpxe-0.9.7-6.4.el6 Doc Type: Bug Fix
Doc Text:
Cause What actions or circumstances cause this bug to present. Consequence What happens when the bug presents. Fix What was done to fix the bug. Result What now happens when the actions or circumstances above occur. Note: this is not the same as the bug doesn’t present anymore.
Story Points: ---
Clone Of:
: 834630 (view as bug list) Environment:
Last Closed: 2011-05-19 14:04:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 680148    
Attachments:
Description Flags
pcaps
none
snapshot of installing guest none

Description Rami Vaknin 2011-01-25 12:57:43 UTC
Created attachment 475166 [details]
pcaps

VM with virtIO NIC can't access the PXE server, it reaches a time out:
tftp://10.35.16.92/pxelinux.0............. Connection timed out (0x4c126035)

By sniffing the VM's traffic, it seems that the VM get an IP from the DHCP server but still can't reach its own default gateway, the default gateway doesn't answer to the ARP requests.

The ARP requests that the VM sends are too big (1514 byte, while a regular DHCP Discover is around 60 bytes) and not valid, so the default gateway does not answer to those ARP requests.

Version-Release number of selected component (if applicable):
kernel: 2.6.32-71.el6.x86_64
qemu-kvm-0.12.1.2-2.129.el6.x86_64


Steps to Reproduce:
1. Define a new VM with PXE boot and virtIO NIC


Additional info:

Note that there is no problem when booting the same machine with Fedora's live CD - the networking works well.
Also, when using the e1000 or rtl8139 network interfaces with boot to PXE, the connection to the PXE works well.

17:00:52.562254 ARP, Request who-has 10.35.99.254 tell 10.35.99.4, length 1500

The MAC address of the VM is 00:1a:4a:16:99:04.

/var/log/libvirt/qemu/RHEL6_3.log:

LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none /usr/libexec/qemu-kvm -S -M rhel6.0.0 -cpu Penryn -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name RHEL6_3 -uuid 26283ecd-0146-4710-963e-5ba078726893 -nodefconfig -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/RHEL6_3.monitor,server,nowait -mon chardev=monitor,mode=control -rtc base=2011-01-20T14:19:41 -boot n -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x4 -drive file=/rhev/data-center/1af052ad-9b2c-4fa7-b445-9d64c71511ac/9469f758-2e7c-44d3-875a-b85a34bf841c/images/aa3b10a2-3de3-47a7-baf2-c3c3ff788d18/1b0a07db-38c8-48ad-865d-b351277782fa,if=none,id=drive-virtio-disk0,format=qcow2,serial=a7-baf2-c3c3ff788d18,cache=none,werror=stop,rerror=stop -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0 -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=23,id=hostnet0 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=00:1a:4a:16:99:04,bus=pci.0,addr=0x3 -chardev socket,id=channel0,path=/var/lib/libvirt/qemu/channels/RHEL6_3.com.redhat.rhevm.vdsm,server,nowait -device virtserialport,bus=virtio-serial0.0,nr=0,chardev=channel0,name=com.redhat.rhevm.vdsm -usb -device usb-tablet,id=input0 -vnc 0:2,password -k en-us -vga cirrus

Comment 3 Amos Kong 2011-01-27 06:42:30 UTC
Created attachment 475532 [details]
snapshot of installing guest

When I install guest from cdrom, it fails to setup network.
Does it related this bug ?

[root@intel-5310-32-1 kvm]# rpm -qa |grep qemu
qemu-img-0.12.1.2-2.131.el6.x86_64
qemu-kvm-0.12.1.2-2.131.el6.x86_64
gpxe-roms-qemu-0.9.7-6.3.el6.noarch
qemu-kvm-tools-0.12.1.2-2.131.el6.x86_64
qemu-kvm-debuginfo-0.12.1.2-2.131.el6.x86_64
[root@intel-5310-32-1 kvm]# uname -r
2.6.32-103.el6.x86_64

Comment 4 Michael S. Tsirkin 2011-01-27 06:46:38 UTC
To comment 3:
No, install from cdrom runs regular guest drivers, 
not pxe.

Comment 10 Mike Cao 2011-02-21 09:37:16 UTC
Hi,rvaknin

I can not reproduce it in my environment.Could you help to verify it ?

Thanks,
Mike

Comment 20 john cooper 2011-03-09 16:31:01 UTC
*** Bug 679188 has been marked as a duplicate of this bug. ***

Comment 21 Charles R. Anderson 2011-03-09 17:51:42 UTC
Patch to fix the issue is in the duplicate bug #679188 where it has already been fixed in Fedora.

Comment 22 Florian Nadge 2011-03-14 10:43:44 UTC
Please be so kind and add a few key words to the technical note of this
bugzilla entry using the following structure:

Cause:

Consequence:

Fix:

Result:


For details, see:
https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes

Thanks

Comment 23 Florian Nadge 2011-03-14 10:43:44 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause
    What actions or circumstances cause this bug to present.
Consequence
    What happens when the bug presents.
Fix
    What was done to fix the bug.
Result
    What now happens when the actions or circumstances above occur.
    Note: this is not the same as the bug doesn’t present anymore.

Comment 24 errata-xmlrpc 2011-05-19 14:04:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0694.html