Bug 597363
Summary: | Static only DHCP not supported in network configs. | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Neil Wilson <neil> | |
Component: | libvirt | Assignee: | Jiri Denemark <jdenemar> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 5.5 | CC: | berrange, jdenemar, jialiu, llim, veillard, virt-maint, xen-maint | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | libvirt-0.8.2-4.el5 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 611793 (view as bug list) | Environment: | ||
Last Closed: | 2011-01-13 23:13:06 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: |
Description
Neil Wilson
2010-05-28 18:07:27 UTC
Patch sent upstream as https://www.redhat.com/archives/libvir-list/2010-September/msg00134.html Fix built into libvirt-0.8.2-4.el5 Verified this bug with libvirt-0.8.2-8.el5 on RHEL5u6 Server X86_64(KVM, xenfv, and xenpv), RHEL5u6 Client I386(xenfv and xenpv) and RHEL5u6 Server IA64 (xenfv and xenpv), PASSED. Steps: 1. Prepare virtual network xml file: # cat s1.xml <network> <name>s1</name> <forward mode='nat'/> <bridge name='s1' stp='on' delay='0' /> <ip address='192.168.100.1' netmask='255.255.255.0'> <dhcp> <host mac='00:16:36:7b:4a:21' name='new-host1' ip='192.168.100.33' /> </dhcp> </ip> </network> 2. Define and start the network. # virsh net-define s1.xml # virsh net-start s1 3. Check dnsmasq process: # ps -ef|grep dnsmasq|grep s1 nobody 5095 1 0 07:17 ? 00:00:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/s1.pid --conf-file= --listen-address 192.168.100.1 --except-interface lo --dhcp-range 192.168.100.1,static --dhcp-no-override --dhcp-hostsfile=/var/lib/libvirt/dnsmasq/s1.hostsfile 4. Start a domain which is using the dnsmasq dhcp server. 5. In guest, get IP - 192.168.100.33 and hostname successfully. So this bug is fixed. This functionality has been broken in version 0.8.7. https://bugzilla.redhat.com/show_bug.cgi?id=667643 refers. 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/RHEA-2011-0060.html |