On 07/10/2012 09:55 PM, taget(a)linux.vnet.ibm.com wrote:
hi all
The vm created by libvirtd can not acquire a ip from dnsmasq.
nobody 14203 1 0 21:31 ? 00:00:00 /usr/sbin/dnsmasq
--strict-order --bind-interfaces
--pid-file=/var/run/libvirt/network/default.pid --conf-file=
--except-interface lo --listen-address 192.168.122.1 --dhcp-range
192.168.122.2,192.168.122.254
--dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases
--dhcp-lease-max=253 --dhcp-no-override
note that --conf-file= is empty ,is there any thing I missing?
Options for dnsmasq can be set either on the command line when
starting dnsmasq,
or in its configuration file, /etc/dnsmasq.conf(if it exists)
--config-file=<empty> means explicitly not to accept any
configure file.
what kind of OS tht vm is. The possible way for vm to do is to
release old lease and
get a new lease from dnsmasq again
linux guest: dhclient -r, then dhclient <ethX>
windows guest: ipconfig /release, then ipconfig /renew
Guannan Ren