On 07/10/2012 09:55 AM, taget(a)linux.vnet.ibm.com wrote:
hi all
The vm created by libvirtd can not acquire a ip from dnsmasq.
There's nothing wrong with the dnsmasq commandline.
Before anything else, try restarting libvirtd. This will reload the
iptables rules that libvirtd installs to (among other things) allow
incoming dhcp requests from guests to the host. Some other program
messing with the iptables rules is the most common cause of this problem.
For a couple other possibilities, you can look at the following entry in
the libvirt troubleshooting guide:
http://wiki.libvirt.org/page/PXE_boot_%28or_dhcp%29_on_guest_failed
(If you find a root cause different from the 3 listed there, please edit
the page to add your findings).
For future reference, here's the toplevel of the troubleshooting guide:
http://wiki.libvirt.org/page/Troubleshooting