Red Hat Bugzilla – Bug 658300
reserved dhcp leases for qemu-kvm virtual machine
Last modified: 2014-09-09 23:45:18 EDT
Description of problem: Create a new network with default configuration.
Edit the XML file with mac address to obtain a reserved IP. Host does not get reserved IP and gets the IP from the DHCP Range
Version-Release number of selected component (if applicable):
[root@blueclaw networks]# rpm -qa | grep libvirt
[root@blueclaw networks]# rpm -qa | grep dnsmasq
How reproducible:every time
Steps to Reproduce:
1.modify xml file
2.try to renew lease
vm gets ip from dhcp range that than designated in xml file.
vm gets designated IP from xml file
example of a modified xml file for reserved IP:
[root@blueclaw networks]# more privlan.xml
<bridge name='virbr1' stp='on' delay='0' />
<ip address='10.1.1.1' netmask='255.255.255.0'>
<range start='10.1.1.128' end='10.1.1.254' />
<host mac='52:54:00:f7:b4:b1' name='rhel5dev.ocean.com' ip='10.1.1.33' />
Also, I used virsh net-edit <privlan.xml> to acually change the file, and restarted libvirt and dnsmasq
Restarting libvirt doesn't activate this, and restarting dnsmasq must be left to libvirt. The required steps are to run 'virsh net-destroy $NET && virsh net-start $NET' after setting up MAC mappings.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Sorry for not addressing this but, but F14 is EOL now, so I'm closing this report. Please reopen if this is still relevant in a more recent fedora.