Bug 630627 - Add --dhcp-no-override option when starting dnsmasq
Summary: Add --dhcp-no-override option when starting dnsmasq
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.6
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Jiri Denemark
QA Contact: Virtualization Bugs
Depends On: 623951
TreeView+ depends on / blocked
Reported: 2010-09-06 12:45 UTC by Jiri Denemark
Modified: 2011-01-13 23:16 UTC (History)
7 users (show)

Fixed In Version: libvirt-0.8.2-4.el5
Doc Type: Bug Fix
Doc Text:
Clone Of: 623951
Last Closed: 2011-01-13 23:16:08 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0060 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-01-12 17:22:30 UTC

Description Jiri Denemark 2010-09-06 12:45:42 UTC
+++ This bug was initially created as a clone of Bug #623951 +++

Description of problem:

Clone of a corresponding bug fixed in RHEL-6...

When booting from PXE via a TFTP server in a virtual network.

  <forward mode='nat'/>
  <ip address="" netmask="">
    <tftp root="/var/lib/tftpboot" />
      <range start="" end="" />
      <bootp file="pxelinux.0" />

# ls -l /var/lib/tftpboot/
total 28848
-rw-r--r--. 1 root root 29515304 May 21 23:47 initrd.img
-rw-r--r--. 1 root root    16794 May 22 04:20 pxelinux.0
drwxr-xr-x. 2 root root     4096 May 22 06:50 pxelinux.cfg
-rw-r--r--. 1 root root        0 May 22 06:57 vmlinuz

# cat /var/lib/tftpboot/pxelinux.cfg/default 
default linux
label linux
kernel vmlinuz
append initrd=initrd.img

The guest could get an IP address, and it said,

No filename or root path specified
No more network devices

The original bug was postponed to 6.1 since there is a known workaround of adding --dhcp-no-override option to dnsmasq. Hence we need to teach libvirt to use that option.

Comment 1 Jiri Denemark 2010-09-13 21:54:59 UTC
Fix built into libvirt-0.8.2-4.el5

Comment 3 min zhan 2010-10-12 10:24:03 UTC
Verified with below RHEL5U6 6 archs, and the results are passed.

Detailed steps are as following:
   # cat tftp.xml
        <bridge name="virbr1" stp='off' delay='1'/>
        <ip address="" netmask="">
          <tftp root="/var/lib/tftpboot" />
              <range start="" end="" />
              <bootp file="pxelinux.0" />

   # virsh net-define tftp.xml
      Network netboot defined from tftp.xml

   # virsh net-start netboot
      Network netboot started

   # ps -ef|grep dns|grep netboot
      nobody 6431 1 0 09:43 ? 00:00:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/netboot.pid --conf-file= --listen-address --except-interface lo --dhcp-range, --dhcp-lease-max=253 --dhcp-no-override --enable-tftp --tftp-root /var/lib/tftpboot --dhcp-boot pxelinux.0

Expected result: "--dhcp-no-override" is seen here.

Comment 4 dyuan 2010-10-19 02:33:26 UTC
According to the comment 3, change the bug status to verified.

Comment 6 errata-xmlrpc 2011-01-13 23:16:08 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.


Note You need to log in before you can comment on or make changes to this bug.