Clean install Ubuntu 14.04 and fog 1.1.2
-
Thanks JH, I fully understand that 2 DHCP servers is a bad idea but no-one has actually given advice what to do. On my Cisco router I can’t set undionly.kpxe. What would you recommend I use as a DHCP server? Should I use the fog server and turn off DHCP on my Cisco routers. Or install another DHCP server and turn off DHCP on my Cisco router?
-
it’s rare for me to beat Jaymes to the punch with this recommendation, but I recommend DNSMASQ
[url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE[/url] -
[quote=“Junkhacker, post: 33130, member: 21583”]it’s rare for me to beat Jaymes to the punch with this recommendation, but I recommend DNSMASQ
[url]http://fogproject.org/wiki/index.php/Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server#DNSMASQ_settings_for_iPXE[/url][/quote]hahaha too true, sorry tearing out some old labs and technology, wasn’t at my machine, I see I’m slacking
Use the DNSMASQ solution to circumvent the need to edit your DHCP server. It looks for machines using tftpboot and issues the boot server and file name to the machine so it can resolve correctly to your fog server. I use this in multiple environments!
-
OK I have gone off and formatted the Hard drive and installed Ubuntu 12.04LTS and Fog ver 1.1.0.Done the DNSMASQ route. And still can’t make images. PXE-E53 No Boot filename received. And PXE-M0F Exiting Intel Boot agent.
-
Can you use wireshark? The sounds of it is that it’s getting dhcp, just not from the right place.
-
Here is the config file. Am I right by saying that in this file:
The boot filename, Server name, Server Ip Address
dhcp-boot=undionly.kpxe,fog,192.168.1.101
undionly.kpxe is the filename it looking for ? Can’t install Wireshark…BTW
[url=“/_imported_xf_attachments/1/1173_dnsmasq_d_ltsp config.txt?:”]dnsmasq_d_ltsp config.txt[/url]
-
[quote=“purpleturtle99, post: 33418, member: 23775”]Here is the config file. Am I right by saying that in this file:
The boot filename, Server name, Server Ip Address
dhcp-boot=undionly.kpxe,fog,192.168.1.101
undionly.kpxe is the filename it looking for ? Can’t install Wireshark…BTW[/quote]
Did you set up a symlink for the file undionly.kpxe to appear as undionly.0?
you can also try removing the fog from the middle of dhcp-boot=undionly.kpxe,fog,192.168.1.101, I know I had to in order to get dnsmasq to resolve properly.
Also why can you not use wireshark? you don’t HAVE to install it on the fogserver, actually it would be recommended to put it in on a laptop and test in various places as switches change because some settings in managed switches causes problems with receiving the boot file.
-
Okay when I stop the DNSMASQ services and let my Cisco router dish out IP’s via DHCP then laptop receives an IP address and the errors are PXE-E53 and PXE-M0F
When I start the DNSMASQ services and remove the fog from the config file I get errors PXE_E51 no DHCP or proxyDHCP offers were received
And wiresharks shows the same result DHCP discover only messages. So I think the laptop never gets an DHCP offer from the fog server running DNSMASQ…What am I missing here???
BTW also from the ltsp.conf file what range of IP address is my fog server dishing out anyway???and how do I check this in the ltsp.conf file -
[quote=“purpleturtle99, post: 33427, member: 23775”]Okay when I stop the DNSMASQ services and let my Cisco router dish out IP’s via DHCP then laptop receives an IP address and the errors are PXE-E53 and PXE-M0F
[/quote]To be expected there is probably a misconfiguration with the DHCP next server and bootfile name, but some people don’t even attempt settings at the DHCP server if they intend to use DNSMASQ as it will not be necessary.
[quote=“purpleturtle99, post: 33427, member: 23775”]When I start the DNSMASQ services and remove the fog from the config file I get errors PXE_E51 no DHCP or proxyDHCP offers were received
And wiresharks shows the same result DHCP discover only messages. So I think the laptop never gets an DHCP offer from the fog server running DNSMASQ…What am I missing here???
BTW also from the ltsp.conf file what range of IP address is my fog server dishing out anyway???and how do I check this in the ltsp.conf file[/quote]It might be worth downloading the Cisco CNA program from the cisco website so that you can check the settings of your switches.
Now load up the CNA program and select the switch in question (they will probably ALL have to be configured this way to pass the boot file) Log into your managed switch with the administrative username and password.
Click Configure on the left hand side. Choose Port Settings from the list.
Select all ports to be used for PXE boot. Click Modify. Enable Port Fast. Save. Close open windows.
This might help to solve some of the problems you are facing. Now To answer the question about DNSMASQ:
#[B] This range(s) is for the public interface, where dnsmasq functions[/B]
[B]as a proxy DHCP server providing boot information but no IP leases.[/B]
#[B] Any ip in the subnet will do, so you may just put your server NIC ip here.[/B]
[B]Since dnsmasq is not providing true DHCP services, you do not want it[/B]
[B]handing out IP addresses. Just put your servers IP address for the interface[/B]
#[B] that is connected to the network on which the FOG clients exist.[/B]
#[B] If this setting is incorrect, the dnsmasq may not start, rendering[/B][B]your proxyDHCP ineffective.[/B]
dhcp-range=10.0.0.10,proxy
I bolded the important parts, funny they are included in your text file and the wiki… That 10.0.0.10 is what you want to change to your fog server ip address, or something similar.
-
Gentlemen we have lift OFFFFFFFFFF.
I have finally booted to my fog server successfully. In the end it was the line: dhcp-range=10.0.0.10,proxy which I had to change to the ip address of my server.Soooooo to help others
here is a quick breakdown of my set up and by no means perfect but hey it works
Ububtu 1204 LTS
Fog 1.1.0
Cisco WAG120N switch with DHCP enabled to provide IP address in the same subnet as your server(just in case)
DNSMASQ installed and configured as per link (DNSMASQ doesn’t provided DHCP it inform the client’s computer where to find the fog server)
[url]http://fogproject.org/wiki/index.ph...with_no_DHCP_server#DNSMASQ_settings_for_iPXE[/url]I had to change the following in the /etc/dnsmasq/ltsp.conf
dhcp-boot=undionly.kpxe,fog,IP.Add.of.yurserver
and
dhcp-range=IP.ADD.OF.yurserver,proxyThanks to LifeHacker, Jaymes and Tom Elliott