Hi, I am running libvirt on RHEL 6.2 and getting this below error when I start the daemon: /usr/sbin/libvirtd --verbose 2012-04-20 06:00:13.366+0000: 26900: info : libvirt version: 0.9.11 2012-04-20 06:00:13.366+0000: 26900: error : virExecWithHook:424 : Cannot find 'dnsmasq' in path: No such file or directory 2012-04-20 06:00:13.405+0000: 26900: warning : ebiptablesDriverInit:4066 : Could not find 'ebtables' executable 2012-04-20 06:00:13.419+0000: 26900: error : virCommandWait:2306 : internal error Child process (/bin/sh -c IPT=/sbin/ip6tables cmd='$IPT -n -L FORWARD' eval res=\$\("${cmd} 2>&1"\) if [ $? -ne 0 ]; then ?echo "Failure to execute command '${cmd}' : '${res}'."; ?exit 1;fi ) status unexpected: exit status 1 2012-04-20 06:00:13.419+0000: 26900: error : ebiptablesDriverInit:4101 : Testing of ip6tables command failed: Failure to execute command '$IPT -n -L FORWARD' : 'WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. ip6tables v1.4.7: can't initialize ip6tables table `filter': Address family not supported by protocol Perhaps ip6tables or your kernel needs to be upgraded.'. I compiled libvirt from the source, do I really need dnsmasq?? Thanks
Yes, libvirtd uses dnsmasq to service the virtual networks, for details, you can see the following docs: http://wiki.libvirt.org/page/Libvirtd_and_dnsmasq http://wiki.libvirt.org/page/Virtual_network_%27default%27_has_not_been_started http://wiki.libvirt.org/page/VirtualNetworking#Further_dnsmasq_info http://wiki.libvirt.org/page/FAQ Good Luck! Alex ----- Original Message ----- From: "John Wayne" <m01z04-libvirt at yahoo.com> To: libvirt-users at redhat.com Sent: Friday, April 20, 2012 2:01:43 PM Subject: [libvirt-users] Error on running libvirt (dnsmasq) Hi, I am running libvirt on RHEL 6.2 and getting this below error when I start the daemon: /usr/sbin/libvirtd --verbose 2012-04-20 06:00:13.366+0000: 26900: info : libvirt version: 0.9.11 2012-04-20 06:00:13.366+0000: 26900: error : virExecWithHook:424 : Cannot find 'dnsmasq' in path: No such file or directory 2012-04-20 06:00:13.405+0000: 26900: warning : ebiptablesDriverInit:4066 : Could not find 'ebtables' executable 2012-04-20 06:00:13.419+0000: 26900: error : virCommandWait:2306 : internal error Child process (/bin/sh -c IPT=/sbin/ip6tables cmd='$IPT -n -L FORWARD' eval res=\$\("${cmd} 2>&1"\) if [ $? -ne 0 ]; then ?echo "Failure to execute command '${cmd}' : '${res}'."; ?exit 1;fi ) status unexpected: exit status 1 2012-04-20 06:00:13.419+0000: 26900: error : ebiptablesDriverInit:4101 : Testing of ip6tables command failed: Failure to execute command '$IPT -n -L FORWARD' : 'WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. ip6tables v1.4.7: can't initialize ip6tables table `filter': Address family not supported by protocol Perhaps ip6tables or your kernel needs to be upgraded.'. I compiled libvirt from the source, do I really need dnsmasq?? Thanks _______________________________________________ libvirt-users mailing list libvirt-users at redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
On 20.04.2012 08:01, John Wayne wrote:> Hi, > > I am running libvirt on RHEL 6.2 and getting this below error when I start the daemon: > > /usr/sbin/libvirtd --verbose > 2012-04-20 06:00:13.366+0000: 26900: info : libvirt version: 0.9.11 > 2012-04-20 06:00:13.366+0000: 26900: error : virExecWithHook:424 : Cannot find 'dnsmasq' in path: No such file or directory > 2012-04-20 06:00:13.405+0000: 26900: warning : ebiptablesDriverInit:4066 : Could not find 'ebtables' executable > 2012-04-20 06:00:13.419+0000: 26900: error : virCommandWait:2306 : internal error Child process (/bin/sh -c IPT=/sbin/ip6tables > cmd='$IPT -n -L FORWARD' > eval res=\$\("${cmd} 2>&1"\) > if [ $? -ne 0 ]; then echo "Failure to execute command '${cmd}' : '${res}'."; exit 1;fi > ) status unexpected: exit status 1 > 2012-04-20 06:00:13.419+0000: 26900: error : ebiptablesDriverInit:4101 : Testing of ip6tables command failed: Failure to execute command '$IPT -n -L FORWARD' : 'WARNING: Deprecated config file /etc/modprobe.conf, all config files belong into /etc/modprobe.d/. > ip6tables v1.4.7: can't initialize ip6tables table `filter': Address family not supported by protocol > Perhaps ip6tables or your kernel needs to be upgraded.'. > > I compiled libvirt from the source, do I really need dnsmasq?No, unless you want to use the default network (or any variation of it). That is - dnsmasq is used as DHCP server for guests. You can disable autostart on the default network via virsh: virsh net-autostart --disable default Michal