Troubleshooting DHCP with dnsmasq
Check the log files
The log file for the Dnsmasq remote service is found at /opt/abiquo/tomcat/logs/dnsmasq-servlet.log.
The virtualfactory.log and catalina.out files may also contain information about the Dnsmasq remote service.
Check lease files for a VLAN tag
To check the DHCP configuration created by the restore, display the files /opt/abiquo/dhcp/\{vlanTag} in the hosts and addn_hosts folder.
root@dnsmasqserver admin]# cat /opt/abiquo/dhcp/2/addn_hosts/00_50_56_*
192.168.0.1 host-192-168-0-1.default_private_network.local host-192-168-0-1
192.168.0.4 host-192-168-0-4.default_private_network.local host-192-168-0-4
192.168.0.2 host-192-168-0-2.default_private_network.local host-192-168-0-2
192.168.0.3 host-192-168-0-3.default_private_network.local host-192-168-0-3
[root@dnsmasqserver admin]# cat /opt/abiquo/dhcp/2/host/00_50_56_*
00:50:56:14:ac:f7,host-192-168-0-1.default_private_network.local,192.168.0.1
00:50:56:17:12:8e,host-192-168-0-4.default_private_network.local,192.168.0.4
00:50:56:29:6d:87,host-192-168-0-2.default_private_network.local,192.168.0.2
00:50:56:34:5d:0c,host-192-168-0-3.default_private_network.local,192.168.0.3
Check lease files with dnsmasq-cli
To use the dnsmasq CLI script to list the configuration for a VLAN tag (e.g. 5), use the dnsmasq-cli command with the IP address of the Dnsmasq remote service. For example, for version 5.1.0
java -jar dnsmasq-cli-5.1.0.jar -s "http://10.60.11.2:8009/dnsmasq" -t 5 list
Check that dnsmasq is running
The Dnsmasq remote service should run an instance of dnsmasq for each VLAN. To check for the instances of dnsmasq running on the server use the following command.
ps aux | grep -i dnsmasq
Example of results
No hypervisors found error
When you run the dnsmasq-restore tool, an error may appear that begins with "No hypervisors found" and ends with "Cannot create vlan default_private_network with tag X".
This error appears when there is already an instance of dnsmasq running for this VLAN.
dnsmasq-restore tool command and error
To resolve this error, use the dnsmasq-restore tool again
Copyright © 2006-2024, Abiquo Holdings SL. All rights reserved