FOG Server Communications Issues
-
[quote=“Tom Elliott, post: 21246, member: 7271”]
The reason you’re unable to resolve hostnames is because you don’t have a DNS Server, so this is expected. If you’re unsure whether or not the XP machine has an IP, check it and also verify that the Windows Firewall is turned off on that machine.[/quote]So is it possible to image a handful of machines without a DNS server or should I install one on the FOG machine? Given that all of the (4) computers are in one room it seems like overkill to do so. This setup is only for testing purposes; the production machine will use the campus infrastructure. My config file is as follows:
#DHCP Server Configuration File.
#see /usr/share/doc/dhcp*/dhcpd.conf.sample
#This file was created by FOG
use-host-decl-names on;
ddns-updates-style interim;
ignore client-updates;
next -server 192.168.10.2subnet 192.168.10.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.10.10 192.168.10.254
default-lease-time 21600;
max-lease-time 43200;option domain-name-servers x.x.x.x;
option routers x.x.x.x;
filename "pxelinux.0";
}
According to IP config the XP machine has no IP address. I believe the firewall is off, but there wasn’t the time to go through the network setup again. Doing so may fix the problem.
-
If you turn off HOSTNAME_LOOKUPS on the FOG Configuration page, the hostname’s won’t try to be resolved. It will still work without the DNS Server as the tasks are created by the MAC address, not the IP or the Hostname.
For your dhcp file try this:
[code]# DHCP Server Configuration file.
see /usr/share/doc/dhcp*/dhcpd.conf.sample
This file was created by FOG
use-host-decl-names on;
ddns-update-style interim;
ignore client-updates;
next-server 192.168.10.2;subnet 192.168.10.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.10.10 192.168.10.254;
default-lease-time 21600;
max-lease-time 43200;option domain-name-servers x.x.x.x;
option routers x.x.x.x;
option routers 192.168.10.2; #<- I ASSUME YOUR FOG SERVER IP ADDRESS (OR JUST LEAVE THIS LINE OUT) filename "pxelinux.0";
}[/code]
-
Thank you for all of your help Tom. It seems I over thought the problem with the hostnames a bit. As for the config file, none of the computers have an IP address of 192.168.10.2. The router is 192.168.10.1 and all the rest are well above 10.10 .
What about the two fields on the login page that return an error? Do you think those are related to the DHCP server or can I ignore them?
-
The error’s you’re seeing are because your network’s not connected to the network.
Just the same as if you try to go to the kernel updates page. You don’t have internet access so you won’t see any of the updates available.
-
Ok so it seems 3 out of the 4 issues in my original post weren’t really all that serious. All that remains is to do is fix the networking issue and check to make sure I can connect to the FOG server via ftp. Then the imaging test can begin.
-
Well I’ve got all of the computers talking to one another and initialized tftp, but problems persist. I cannot PXE boot either of the other two computers. When attempting to do so, the process errors out with the code PXE-E51 No DHCP or ProxyDHCP offers were received. Curiously when I type “service dhcp restart” in terminal on the FOG server it says that service is unrecognized. But I KNOW I installed it as the configuration file above shows. Any thoughts? Perhaps the DHCP server is not installed or configured properly?
-
I think you need:
[code]sudo service isc-dhcp-server restart[/code] -
Indeed I did, Tom. Turns out the service was not actually started and there was a syntax error in the config file. Both computers have PXE booted successfully. The FOG splash screen did not come up, however, possibly because the client is not installed on them. Tomorrow I will endeavor to do that, register the computers in FOG and hopefully attempt to upload my first image. Once again thank you for your help.
-
Glad I could be of some help.
The PXE Boot screen should be displayed. It shouldn’t matter if the client is or isn’t installed on the clients. The image is a part of the system. Though my guess is your default file can’t find the image file. Maybe antivirus removed it or something?
-
Not sure. Perhaps the PXE boot did’t work correctly? The computer was able to receive an IP address and after that I think the boot agent exited (PXE-M01 Intel Boot Agent Exiting) and Windows XP started. I assumed that was normal behavior. Where is the images file located?
-
That sounds like normal behavior if you don’t chose a menu option AND you don’t have a task setup for the system that’s booting.
-
Hmmm. When I was testing out tftp between the xp machine and the fog server I tried to “tftp <fog server IP> get pxelinux.0” but that was not found. Also Filezilla would not connect. Is it possible the computer is not booting correctly into FOG? Our computers are Dell Optiplex 780s, if it makes a difference. Tomorrow I will try to set up a task remotely and see if it works.
-
tftp command wasn’t found or it reported it couldn’t find the fog server?
Maybe make sure tftpd-hpa service is running?
[code]sudo service tftpd-hpa restart[/code] -
First the service wasn’t running so it would not connect. Then I made the changes recommended here: [url]http://www.debian-administration.org/articles/478[/url] and started the service which was when it could not find the file. It seemed to connect to the server, but not find what it was looking for.
-
Well tftp seems to be working correctly. It had been erroring out this morning with PXE-E32. Turns out the servers firewall was interfering with it. Also I installed the FOG client on the Windows 7 screen. Still no splash screen or menu. It connects to the DHCP server, tests tftp, and then boots. The ultimate test of FOG is to image a machine and so I will sysprep the computer and then attempt to upload an image.
-
Not only am I not seeing the PXE boot menu, but tasks cannot be scheduled via the web GUI. When I try the task management screen comes up, but is blank. Also tftp is not working. Windows 7 will not recognize the command “tftp x.x.x.x get pxelinux.0” where x.x.x.x is the server’s IP address, even when the command prompt is run as an administrator. Windows XP understands the command, but can’t find the file. I’m not sure if the error is with tftp or with fog itself, but it might explain why the PXE boot menu does not come up. I also tried using F12 to boot from the network card, but after it connected to the DHCP server, did something with tftp (those letters came up and nothing else), the boot agent exited and a message came up saying the boot agent was not available. Does any of this make sense to you Tom? Also, could the router be at fault? As in perhaps tftp requests are not being passed through even though its DHCP server is disabled.
-
Is the next-server line in your dhcp address pointing at your FOG Server?
-
[SIZE=6]Success![/SIZE]
[SIZE=3]Turns out the server was not able to find the correct file despite it being in the system under the directory tftpboot. Not sure why although Wirehark clued me into what was going on. So I made that the default tftp directory and voila! I was able to transfer the file to the XP machine and boot into the PXE menu on the Windows 7 machine. Tomorrow I will properly register that computer and try my first image upload. Before marking this thread solved I have a few final questions.[/SIZE][SIZE=3]1. I had changed the owndership of the tftproot directory to be the default user and not root. Was this of any consequence and should I change it back?[/SIZE]
[SIZE=3]2. FOG does not seem to like firewalls. Is there a way to make it coexist with them? We cannot possibly go without firewalls at the Library although the FOG server might be able to.[/SIZE]
[SIZE=3]3. I’m not going to have to make a menu choice at the PXE boot menu every time the computer boots am I? Having to do so would seriously confuse our patrons and staff.[/SIZE]
-
-
Ownership of /tftpboot should be:
[code]sudo chmod -R 755 /tftpboot
sudo chown -R fog:root /tftpboot[/code] -
It doesn’t like firewalls, but there’s a writeup somewhere firewall setup and FOG. Maybe try [url]http://fogproject.org/forum/threads/firewall-config.27/#post-16286[/url]
-
No you shouldn’t have to. There should be a value for timeout after a number of seconds.
-
-
Thank you very much Tom. You have been a great help. The firewall thread will be very useful. So far only Firstarter on the server has caused issues. I don’t see the windows firewall (or McAfee) interfering with imaging since the OS is not even loaded during that process. But remote management (turning off, pushing programs, etc) may be another story. It is the Windows Firewall and McAfee we really can’t live without since most of our computers are open to the public. But the Fog server will sit quietly in a dark room and can conceivably be left without protection. On the subject of the Boot Menu, where is the timeout value set?