@george1421 said in How to setup ProxyDHCP with FOG:

@wildcat2083 You need to ensure that there isn’t a dhcp server already running on your fog server.

ensure that dnsmasq is not
systemctl stop dnsmasq

now check to see if something is bound to the dhcp port
netstat -an | grep :67

If you see a response like 0.0.0.0:67 then there is still a dhcp server on the fog server.

You can also run this command to see if the isc-dhcp server is in memory. ps aux | grep dhcp If it returns isc-dhcp and a process ID then its still running.

My bet if you look at the log file in /var/log/syslog (or /var/log/messages) it will say that dnsmasq can’t bind to the port :67

Here is the output of ps aux | grep dhcp
kristal 110299 0.0 0.0 17732 2408 pts/0 S+ 15:27 0:00 grep --color=auto dhcp

and its telling me

Starting dnsmasq - A lightweight DHCP and caching DNS server…
Jul 23 15:22:49 kristal-virtual-fog dnsmasq[109913]: dnsmasq: failed to create listening socket for port 53: Address already in use
Jul 23 15:22:49 kristal-virtual-fog dnsmasq[109913]: failed to create listening socket for port 53: Address already in use
Jul 23 15:22:49 kristal-virtual-fog dnsmasq[109913]: FAILED to start up
Jul 23 15:22:49 kristal-virtual-fog systemd[1]: dnsmasq.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Jul 23 15:22:49 kristal-virtual-fog systemd[1]: dnsmasq.service: Failed with result ‘exit-code’.
Jul 23 15:22:49 kristal-virtual-fog systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.

kristal@kristal-virtual-fog:/etc/init.d$ netstat -an | grep :67
udp 0 0 192.168.5.214:68 192.168.5.1:67 ESTABLISHED
kristal@kristal-virtual-fog:/etc/init.d$

That ^^^^^^^ is then i install dnsmasq via apt install

EDIT::: I got dnsmasq installed but when i try to boot with a vmware pxe, the dhcp works but then when it gets to tftp it cant find the file and im never greeted with the boot menu

9d5799a9-118f-4b12-aca4-1bb4306debf3-image.png

EDIT2:
After tinkering I learned I needed to follow this section
DNSMASQ settings for iPXE
This information pertains to FOG 0.33 and the new iPXE boot method.

In order to continue to use dnsmasq to dole out ip addresses and to help find the boot file, some changes need to be made to force the boot file to load the iPXE boot file.

FIRST Update the schema by navigating to your fog management page and install the update.

Make the following changes to your ltsp.conf file

and I had to do this line
cd /tftpboot
sudo ln -s undionly.kpxe undionly.0

Once I performed these and restarted the dnsmasq service, dhcp worked as proxy and it did indeed serve up the proper file allowing fog to proceed