Remove and stop FOG to act as a DHCP server
-
@msi Well we have two directions to move in here.
- Debug what is wrong with your cisco setup.
- Because you asked can we support both, change plans a bit to support both.
Option 2 would give you the most flexibility.
-
@msi So lets work with option 2. We can go back to option 1 if we run into a road block with option 2.
For option 2:
- Remove the next server and boot file entries from your cisco router. Also remove dhcp options 66 and 67 from your dhcp server. We ar e going to use dnsmasq to provide these dynamic boot file names.
- Follow my posts here to download and compile dnsmasq version 2.76 (actually 2.77 has been released and if you want to attempt that the instructions should be the same).
- Install dnsmasq on your fog server using the ltsp.conf file listed in that post. Don’t forget to update the fog server IP every place in that file (there are quite a few).
- Start the dnsmasq service and pxe boot a target computer on the same vlan as your fog server. If your pxe client computers are going to be pxe booting on a different subnet than your fog server you will need to add your fog server listed last in your dhcp-helper / dhcp-relay service on your vlan router.
-
@george1421 whats option 2 is for? did you mean ipxe.efi? We are trying to find the problem with Cisco configuration. So far no luck. By the way, we have install new fog with latest 1.4.4, and deiced to decommission the existing one by backing up.
-
@george1421 I am sorry that I am asking a lot. Can you tell me more about how to configure dnsmasq? I heard about before and failed to configure it in right way when I tried to use cobbler.
-
@msi This is what George is referring to: https://forums.fogproject.org/topic/8725/compiling-dnsmasq-2-76-if-you-need-uefi-support
He provided instructions on how to compile and configure dnsmasq… As a starter you could skip the compile step and install dnsmasq from your official package repository
sudo yum install dnsmasq
. When you get this up and running you can still go ahead, save the config, purge/uninstall dnsmasq and compile the latest version as suggested because it has fixed UEFI/BIOS support. -
@msi said in Remove and stop FOG to act as a DHCP server:
@george1421 I am sorry that I am asking a lot. Can you tell me more about how to configure dnsmasq? I heard about before and failed to configure it in right way when I tried to use cobbler.
Wow, I apologize. I copied the link and never pasted in my post. Sebastian has the link in his post. That link contains the instructions on compiling dnsmasq 2.76 (minimum version required for dynamic bios/uefi support). It also contains a sample config file that does work.
-
@msi Any news on this?
-
@sebastian-roth I haven’t had chance to work on it. I will update you once I install dnsmasq. Thank you for checking on me.
-
@sebastian-roth Hi Getting below error:
[root@localhost dnsmasq-2.76]# nano Makefile
[root@localhost dnsmasq-2.76]# sudo make install
/bin/sh: cc: command not found
/bin/sh: cc: command not found
Package dbus-1 was not found in the pkg-config search path.
Perhaps you should add the directory containingdbus-1.pc' to the PKG_CONFIG_PATH environment variable No package 'dbus-1' found Package libidn was not found in the pkg-config search path. Perhaps you should add the directory containing
libidn.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libidn’ found
Package libnetfilter_conntrack was not found in the pkg-config search path.
Perhaps you should add the directory containinglibnetfilter_conntrack.pc' to the PKG_CONFIG_PATH environment variable No package 'libnetfilter_conntrack' found Package nettle was not found in the pkg-config search path. Perhaps you should add the directory containing
nettle.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘nettle’ found
Package hogweed was not found in the pkg-config search path.
Perhaps you should add the directory containinghogweed.pc' to the PKG_CONFIG_PATH environment variable No package 'hogweed' found Package dbus-1 was not found in the pkg-config search path. Perhaps you should add the directory containing
dbus-1.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘dbus-1’ found
Package libidn was not found in the pkg-config search path.
Perhaps you should add the directory containinglibidn.pc' to the PKG_CONFIG_PATH environment variable No package 'libidn' found Package libnetfilter_conntrack was not found in the pkg-config search path. Perhaps you should add the directory containing
libnetfilter_conntrack.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘libnetfilter_conntrack’ found
Package nettle was not found in the pkg-config search path.
Perhaps you should add the directory containingnettle.pc' to the PKG_CONFIG_PATH environment variable No package 'nettle' found Package hogweed was not found in the pkg-config search path. Perhaps you should add the directory containing
hogweed.pc’
to the PKG_CONFIG_PATH environment variable
No package ‘hogweed’ found
/bin/sh: cc: command not found
/bin/sh: cc: command not found
make[1]: Entering directory/root/Downloads/dnsmasq-2.76/src' cc -Wall -W -O2 -DVERSION='"2.76"' -c cache.c make[1]: cc: Command not found make[1]: *** [cache.o] Error 127 make[1]: Leaving directory
/root/Downloads/dnsmasq-2.76/src’
make: *** [all] Error 2
[root@localhost dnsmasq-2.76]# ls
Android.mk bld CHANGELOG CHANGELOG.archive contrib COPYING COPYING-v3 dbus dnsmasq.conf.example doc.html FAQ logo Makefile man po setup.html src trust-anchors.conf VERSION
[root@localhost dnsmasq-2.76]# -
@Sebastian-Roth @george1421
By the way I am using dnsmasq version 2.66 since my centos won’t let me upgrade to 2.76. I noticed that it is missing libdbus-1-dev libnetfilter-conntrack-dev idn libidn11-dev nettle-dev libval-dev dnssec-tools. So i ran yum install -y wget libdbus-1-dev libnetfilter-conntrack-dev idn libidn11-dev nettle-dev libval-dev dnssec-tools. I got below error:No package libdbus-1-dev available.
No package libnetfilter-conntrack-dev available.
No package idn available.
No package libidn11-dev available.
No package nettle-dev available.
No package libval-dev available.
No package dnssec-tools available.
Nothing to do -
@msi what version of linux are you using? You may need to install the developer tools to compile the code .
-
@george1421 CentOS 7.3
-
@msi OK the instructions are for ubuntu, but for centos make sure the development tools are installed.
yum -y groupinstall "Development Tools"
-
@george1421 development tools successfully installed. but still giving same error.
-
@msi I’m doing a test install on a centos machine right now. Let me see what needs to be altered for centos 7
-
@george1421 I’m currently stuck on libidn. The compiler is not seeing it, but its installed. This may take me a bit more to understand why.
-
@george1421 I just found a compiled version of dnsmasq 2.76: ftp://ftp.pbone.net/mirror/rnd.rajven.net/centos/7.0.1406/os/x86_64/dnsmasq-2.76-1cnt7.x86_64.rpm
I can’t speak to the efficacy of the rpm, but it would jump you ahead of the compiling of the source. I’m going to still work on the compiler part, but only for my satisfaction
-
@msi said in Remove and stop FOG to act as a DHCP server:
[root@localhost dnsmasq-2.76]# sudo make install
/bin/sh: cc: command not found
/bin/sh: cc: command not found
Package dbus-1 was not found in the pkg-config search path.I am not sure about the dnsmasq stuff but usually there is the magic three steps when compiling software on linux:
./configure
,make
andmake install
. Not for dnsmasq?@msi Did you install dnsmasq as rpm now. Shall we mark this solved?