TFTP Problems
-
Which error number do you receive when the TFTP portion times out? Also, what did you specify in 66 and 67 of your DHCP server?
-
66 was my ip address of the FOG server, in this case 10.8.22.3
67 I put in “pxelinux.0” as per the install instructions in the wikithe error code is PXE-E32, honestly didn’t see this cause the screen was part of the way off the monitor lol
Should probably Also include this is Ubuntu 12.10 Fog 0.32
-
I take it that you are using Ubuntu to run FOG? Normally the E32 error, i’ve found is the TFTP service not running when people are using Ubuntu, so the restart command for it fixes it. But you said you’ve tried that already… so might have to dig in deeper.
-
I can use other windows boxes to run the windows get pxelinux.0 command and they work, why is it not working in boot? this is leading me to believe that something is not being routed correctly but it should still work off the network right?
ran some commands
[code]
root@NOTIMPORTANT:~# ps aux|grep tftp
root 7974 0.0 0.0 2684 116 ? Ss 13:19 0:00 /usr/sbin/in.tftpd --listen --user root --address 0.0.0.0:69 -s /tftpboot
root 10857 0.0 0.0 4372 832 pts/6 S+ 13:42 0:00 grep --color=auto tftp
root@NOTIMPORTANT:~# cd …
root@NOTIMPORTANT:/# cd /tftpboot
root@NOTIMPORTANT:/tftpboot# ls -la
total 224
drwxr-xr-x 5 fog root 4096 Mar 21 13:03 .
drwxr-xr-x 26 root root 4096 Mar 21 13:09 …
-rw-r–r-- 1 fog root 890 Mar 21 13:03 boot.txt
-rw-r–r-- 1 fog root 828 Mar 21 11:34 boot.txt~
drwxr-xr-x 5 fog root 4096 Mar 18 14:42 fog
-rw-r–r-- 1 fog root 25340 Mar 21 11:34 memdisk
-rw-r–r-- 1 fog root 16794 Mar 21 11:34 pxelinux.0
drwxr-xr-x 2 fog root 4096 Mar 21 10:02 pxelinux.cfg
drwxr-xr-x 2 fog root 4096 Mar 18 14:42 tftpboot
-rw-r–r-- 1 fog root 147728 Mar 21 11:34 vesamenu.c32
[/code]
this looks right, the services are started and running, Fog is the owner of the files, and I can talk form windows machine to FOG Server, but I can’t PXE boot -
Just a thought, in /var/www/fog/commons/config.php did you specify the correct PXE DNS address to point to your actual network DNS server?
-
yes and here is a copy of config.php
[code]
define( “IS_INCLUDED”, true );
define( “TFTP_HOST”, “10.8.22.3” );
define( “TFTP_FTP_USERNAME”, “fog” );
define( “TFTP_FTP_PASSWORD”, “password” ); THIS MATCHES IN MY MANAGEMENT SECTION
define( “TFTP_PXE_CONFIG_DIR”, “/tftpboot/pxelinux.cfg/” );
define( “TFTP_PXE_KERNEL_DIR”, “/tftpboot/fog/kernel/” );
define( “PXE_KERNEL”, “fog/kernel/bzImage” );
define( “PXE_KERNEL_RAMDISK”, 127000 );
define( “USE_SLOPPY_NAME_LOOKUPS”, “1”);
define( “MEMTEST_KERNEL”, “fog/memtest/memtest” );
define( “PXE_IMAGE”, “fog/images/init.gz” );
define( “PXE_IMAGE_DNSADDRESS”, “10.1.2.6” ); THIS IS IN FACT MY DNS SERVER
define( “STORAGE_HOST”, “10.8.22.3” ); THIS IS THE SERVER IP ADDRESS
define( “STORAGE_FTP_USERNAME”, “fog” );
define( “STORAGE_FTP_PASSWORD”, “ac2b918f754c5ae2901d0458035bb14b” );
define( “STORAGE_DATADIR”, “/images/” );
define( “STORAGE_DATADIR_UPLOAD”, “/images/dev/” );
define( “STORAGE_BANDWIDTHPATH”, “/fog/status/bandwidth.php” );
define( “CLONEMETHOD”, “ntfsclone” ); // valid values partimage, ntfsclone
define( “UPLOADRESIZEPCT”, 5 );
define( “WEB_HOST”, “10.8.22.3” );
define( “WEB_ROOT”, “/fog/” );
define( “WOL_HOST”, “10.8.22.3” );
define( “WOL_PATH”, “/fog/wol/wol.php” );
define( “WOL_INTERFACE”, “eth0” );
define( “SNAPINDIR”, “/opt/fog/snapins/” );
define( “QUEUESIZE”, “10” );
define( “CHECKIN_TIMEOUT”, 600 );
define( “MYSQL_HOST”, “localhost” );
define( “MYSQL_DATABASE”, “fog” );
define( “MYSQL_USERNAME”, “root” );
define( “MYSQL_PASSWORD”, “” );
define( “DB_TYPE”, “mysql” );
define( “DB_HOST”, MYSQL_HOST );
define( “DB_NAME”, MYSQL_DATABASE );
define( “DB_USERNAME”, MYSQL_USERNAME );
define( “DB_PASSWORD”, MYSQL_PASSWORD );
define( “DB_PORT”, null );
define( “USER_MINPASSLENGTH”, 4 );
define( “USER_VALIDPASSCHARS”, “1234567890ABCDEFGHIJKLMNOPQRSTUVWZXYabcdefghijklmnopqrstuvwxyz_hB()^!” );
define( “NFS_ETH_MONITOR”, “eth0” );
define(“UDPCAST_INTERFACE”,“eth0”);
define(“UDPCAST_STARTINGPORT”, 63100 );// Must be an even number! recommended between 49152 to 65535
define(“FOG_MULTICAST_MAX_SESSIONS”, 64 );
define( “FOG_JPGRAPH_VERSION”, “2.3” );
define( “FOG_REPORT_DIR”, “./reports/” );
define( “FOG_THEME”, “blackeye/blackeye.css” );
define( “FOG_UPLOADIGNOREPAGEHIBER”, “1” );
define( “FOG_VERSION”, “0.32” );
define( “FOG_SCHEMA”, 23);
DEFINE(‘BASEPATH’, rtrim($_SERVER[‘DOCUMENT_ROOT’], ‘/’) . rtrim(WEB_ROOT, ‘/’));
?>[/code] -
Alright I really need help, this is not working, I have re-installed linux and FOG multiple times to try to get this to where it will jive with my network.
The ONLY way i am able to get FOG to talk to my clients is the remove them from the network and use FOG as a DHCP server and keep the units localized.
I have tried various different install, using dnsmasq, supplying no DHCP infomration, and also giving it all the DHCP and DNS information.
I even tried [url]http://www.fogproject.org/wiki/index.php?title=Using_FOG_with_an_unmodifiable_DHCP_server/_Using_FOG_with_no_DHCP_server[/url] to no avail
a little about my network.
I work for a school corporation, we have multiple buildings and each has a set of ip address assigned to it. we use a Novell Network so I use DNS/DHCP Management Console to edit my DHCP Options. My Range type is “Dynamic BOOTP and DHCP” .
I use a Procurve HP 2910al-24G Switch
The building I work at has the ip address scope of 10.8.10.0-10.8.15.255. I can manually assign ips outside of the range but the DHCP server will assign anything within that range to my computers.
We work on subnet mask 255.255.0.0, my server ip address (for FOG) is 10.8.22.3, my DNS server is 10.1.2.6, and the router address is 10.8.255.254.
When I set up FOG I do this:
[code]- UBUNTU 12.10 – SETUP and INSTALLATION
I install ubuntu 12.10 desktop environment, I update Ubuntu with the update manager and the terminal commands. I set a Static IP address for my server - INSTALL FOG SERVER
I download fog, I put is on my desktop, I extract it.
Open terminal, I type
cd Desktop/ (enter)
cd fog_0.32/ (enter)
cd bin/ (enter)
sudo ./installfog.sh (enter)
I Type 2 and press Enter for Ubuntu installation.
I Type N and press Enter for Normal installation
I Supply IP Address of the server, I type it in manually even though it is already selected (10.8.22.3).
I supply the Router IP Address (10.8.255.254)
Type Y and press Enter setup DHCP Server.
I Enter the IP Address associated with my DHCP Server. This may be where I am messing up FOG wants to use 127.0.1.1, I tell it to use (10.8.1.1)
Type Y and press Enter to set up DNS.
Enter the DNS Server address (10.1.2.6) and press Enter.
Type N and press Enter to leave the default Network Card the same.
Type N to disable DHCP Service.
Edit my 66 and 67 on DNS/DHCP Management Console, Stop DHCP Server Service and Restart.
Type N to not install Additional Languages.
Type Y and press Enter.Press Enter and begin the MySQL Server setup.
I set up Fog with default passwords for MYSQL and users.
Type Y to send your install information to the Project, and it will take some time to complete.
[/code]Is this part correct so far?
Now I update my Shcema and change the password for TFTP user to the password I assigned by “sudo passwd fog” in the terminal.
I stop the tftp service and restart it just to be safe.From a windows box I type in the command prompt “tftp 10.8.22.3 get pxelinux.0”
It returns Transfer successful: 16967 bytes in 1 seconds, 16967 bytes/s.So my TFTP is running, and working.
I go to a machine, I PXE boot the machine. The machine is designated an ip address from my DHCP server
screen reads:
[code]
Intel UNDI, blah blah
Realtek PCI Express Fast Ethernet Controller Series v1.14 (090121)
CLIENT MAC ADDR: 00 24 21 2C 9F D9 GUID 00000000-0000-0000-0000-0024212C9FD9
CLIENT IP: 10.8.10.70 MASK 255.255.0.0 DHCP IP 10.8.1.1
GATEWAY IP: 10.8.255.254TFTP …
PXE-E32: TFTP open timeout
TFTP…
[/code]What am I doing wrong and how can I fix it please and many thanks
Is it a Subent issue? Is it DHCP issue? Is it a FOG configuration issue? Is it a TFTP issue? I don’t knwo where to begin because form what it looks like is my TFTP server is working and accessible, but when the PXE tries to find it it acts like it doesn’t exist.
- UBUNTU 12.10 – SETUP and INSTALLATION
-
Have you tried to PXE boot any other models of computers, or models with different LAN controllers? I ran into a similar issue where 5 of the 7 models of computers we use at my school would all PXE boot fine when using a Windows DHCP server and FOG for tftp. 2 of the 7 would return a TFTP timeout. I don’t remember the exact error message, but when I used WireShark to inspect the traffic, it showed that the tftp requests for pxelinux.0 part 1 was successful, but failed on the next part. This only happened when using a separate DHCP server. If I used FOG to serve up DHCP, it didn’t happen. This was with a Compal based laptop with a realtek chipset, and an Acer Iconia tab with a usb ethernet adapter built into the keyboard dock. My Fujitsu laptops, intel desktop motherboards, toshiba laptops, and compact desktops all pxebooted without issue.
I ended up setting up ProxyDHCP to solve the issue. I suggest you get a few other models of computers or laptops in to see if you can get anything to pxe boot before you go down the ProxyDHCP route. If you can get other things to PXE boot, then reconfigure FOG to ProxyDHCP following the wiki article. If you can’t get any model of LAN chipset to pxeboot, then we’ll continue troubleshooting FOG and DHCP.
-
Thank you, I will begin trying some other types and models, all of our computers are Tangent computers using Intel built in components but use Realtek network cards.
Update: I just tried 4 of the 8 machines I have managed to image threw fog so far, they do not contact the TFTP server either
I have also tried to use a gPXE disc to boot with no luck
I have also already tried your ProxyDHCP set up on the wiki (using dnsmasq) and this did not have any fruit for the labor either
-
Let’s get back to a stable and known state with the FOG server. You’ve changed passwords, tried proxyDHCP, and made other changes to the server, so let’s get back to solid ground.
I suggest you take a step back and try 10.04 Server LTS. The 12.x versions introduce the TFTP problem that, easy enough to fix, makes it harder to get started, and that’s not something for someone new to FOG/Linux. Also, I’m not sure, but I prefer to use a Server distribution rather that a desktop.
The first thing you should do after installing the base OS is to update apt, and then upgrade the system. This is not a release-upgrade, just a regular upgrade to make sure you have the latest version of all the base OS packages installed and that you are pulling packages from an updated apt when you run the FOG install script.
So:
[LIST]
[]Install base OS. !!! DO [B]NOT[/B] MAKE A USER NAMED FOG !!! use bob, ted, fred, billy, sue, whatever, but not fog
[]Set IP static with correct subnet mask and gateway
[]sudo apt-get update
[]sudo apt-get upgrade
[][Optional]: grab a desktop, such as Gnome with: sudo apt-get gnome-desktop-environment
[]go get coffee
[]Download and extract the FOG installer
[]Run FOG installer, tell it not to use DHCP, no DNS address, no router address
[]use a blank mySQL password for now. (if you want to secure it we’ll walk through that later)
[]Make sure your non-FOG DHCP server is pointing to the correct IP and filename (pxelinux.0 <— that’s a ZERO)
[/LIST]At this point, you don’t need to worry about any config files, we should be ready to pxeboot our first machine
So, Try to pxe boot a host. What do you get?
-
Thanks chad I will do just that, I am downloading the 10.04 LTS as I type this, it is almost 3:00 here and I go home in half hour, but I have all next week to myself, I will bump this thread when I have installed Ubuntu 10.04 LTS and followed your instructions!
-
Wow, sorry for my absence here, I ran into some trouble with the monitors we use here and the video card and linux. While I had absolutely no problems with 12.04 and graphics cards. I ended up taking the server home to install Ubuntu and use a real monitor :).
Anyway long story short it took a lot of fiddling but I have done what you have asked, I now have Ubuntu 10.04 LTS, set static IP, I updated, upgraded (from terminal), got Gnome, installed FOG again.
Boot to PXE get PXE-E32: TFTP open timeout.
BUT if i use gPXE and specify the information I CAN get to my pxe menu, so what am I not doing right?
if I use gPXE I have to catch it before it autoboots with Ctrl+b and run the config I speficy the DHCP 10.8.1.1, DNS 10.1.2.6, image as pxelinux.0, netmask 255.255.0.0, Gateway 10.8.255.254, next-server 10.8.22.3 I crtl+x and type autoboot and boom FOG PXE
so, what have I boogered up?
-
Can you provide a screenshot of your dhcp settings? Are the clients in the same subnet/scope as the FOG server?
-
yes they are in the same subnet mask, 255.255.0.0 They are in the same Scope but not the same range per say, our DHCP range 10.8.10.1-10.8.15.255 but the server is at 10.8.22.3 this should not be a problem though.
Is this what you want? or do you want something from the linux box?
[url=“/_imported_xf_attachments/0/287_dhcp.jpg?:”]dhcp.jpg[/url]
-
With a subnet mask fo 255.255.0.0, all of your 10.8.x.x addresses are logically in the same subnet. I’m assuming you don’t have your network subdivided into VLAN’s and subnets, you just serve DHCP for 10.8.10.1 to 10.8.15.255, and non-DHCP clients are statically assigned an address from outside that range. Is this correct?
-
My network is divided into VLANS, each building is 10.x.1.1 where x is 1-10 and 1-10 is the building designated to that ip scope, they all use the same subnet mask and dns/dhcp information, the only change is the ip addresses the buildings serve.
-
Your network configuration seems unusual to me. I don’t know if it has any thing to do with the problems you’re experiencing, but I don’t have a good feeling about it. It could be my lack of experience with advanced networking, or there could be something not quite right about your subnetting. We’ll ignore that for now though.
Are you able to connect a PXE boot client to the same switch as the FOG server? I don’t mean just the FOG server and the client, it should be on your network. I just want the client and the server to both be on the same switch for the moment.
-
yeah every test I have ran up to this point has been within my office on the same switch as the FOG server, and the switch I am using is an Asus GX-D1081.
I agree our network seems a bit odd, but I was neither the person that designed or set it up so it is out of my control, I merely make sure all the components in this building work, and make the teachers happy
-
Shameless bump still need help please
-
At this point, I would normally through a tech workstation on that switch, mirror/monitor a port, wireshark and see what is happening between the FOG server and the client.
If you are not able to do that, then go ahead and proceed with setting up proxyDHCP according to the wiki article.