TFTP Problems
-
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.
-
What port do you recommend I watch? port 69 is the TFTP port correct?
Iâm willing to try the proxyDHCP again after I do the wireshark, iâd really like to figure out what the underlying issue is an try to eliminate it.
-
When I was investigating mine, I started recording, tried to pxeboot and waited for error, then stopped recording. I went through several filters at different times to make sure the pxe boot was getting the correct next server name and bootfile name from dhcp. Then I filtered on tftp, or just everything matching the IP address the client got from DHCP.
You can key in on the tftp problems, and see if itâs making a request for the pxelinux.0 file and getting all the chunks. In my case, it requested and got chunk 1, but then failed to get the rest of the chunks until I implemented proxyDHCP.
-
Alright, I have captured a set of packets from the time I began my Pxe boot till the time I got the error PXE-E32 TFTP open timeout.
but I donât actually see the hostâs ip address or mac address in the set of information, is this a problem.
What set of filters would you recommend, I do not see anything being transferred on TFTP.