TFTP isn't working
-
Some Hyper-V screen shots for one of our servers that is running FOG…
Bear in mind, I configured a static IP for the FOG server via the Fedora 21 OS.
NIC Overview
[IMG]http://s10.postimg.org/fu5oos6fd/NIC_overview.png[/IMG]NIC 2
[IMG]http://s7.postimg.org/8ce5q3dnv/NIC2.png[/IMG]Hyper-V virtual adapter
[IMG]http://s10.postimg.org/pisdcw4jt/Hyper_V_virtual_adapter.png[/IMG]Hyper-V virtual adapter IPv4 properties
[IMG]http://s23.postimg.org/71n5syxsb/Hyper_V_Virtual_Adapter_ip4.png[/IMG]Hyper-V virtual adapter - IPv6 properties
[IMG]http://s10.postimg.org/fv1w6gsnd/Hyper_V_Virtual_Adapter_ipv6_properties.png[/IMG]Virtual Switch - Overview
[IMG]http://s21.postimg.org/3viul08yf/Virtual_Switch_Overview.png[/IMG]Virtual Switch - Extensions
[IMG]http://s28.postimg.org/urj4bvykt/Virtual_Switch_Extensions.png[/IMG]Virtual Switch - MAC address range
[IMG]http://s11.postimg.org/z0zvoujnn/Virtual_Switch_Mac_Address_Range.png[/IMG]FOG NIC - Overview
[IMG]http://s17.postimg.org/dshdq4omn/FOG_NIC_Overview.png[/IMG]FOG NIC - Hardware Acceleration
[IMG]http://s12.postimg.org/t2orzls7h/FOG_NIC_Hardware_Acceleration.png[/IMG]FOG NIC - Fail Over
[IMG]http://s7.postimg.org/vliubq57v/FOG_NIC_Fail_over.png[/IMG]FOG NIC - Advanced Features
[IMG]http://s21.postimg.org/4vrizohnb/FOG_NIC_Advanced_Features.png[/IMG] -
[quote=“Wayne Workman, post: 44960, member: 28155”]Does this file exist? What’s in it?
[CODE]/etc/xinetd.d/tftp[/CODE]
What value does it have for server_args ? That’s the actual location of your tftp folder.[B]That file does not exist.[/B]
Can you try to change permissions on /tftpboot to 444 and try again? (Read only for everyone)
[CODE]chmod -R 444 /tftpboot[/CODE]After that, try restarting the service:
[CODE]sudo service xinetd restart[/CODE][B]Done, didn’t fix it. :([/B]
Also, how valuable is this FOG install? Did you just build it? Does it have images on it? Are other things running on it? Is it a clean install? How many times have you ran the installer for FOG?
[B]Install isn’t valuable at all. Nothing on it. Nothing else running on it. Have only run the installer once.[/B]
Also, when I get to work tomorrow, I’ll share my exact Hyper-V Virtual Switch settings here, along with my NIC bindings/bridging setup. I remember it being something of a headache to get working correctly…
[B]That would be immensely helpful. I’m guessing that’s the problem.[/B]
Resources used:
[url]http://ubuntuforums.org/showthread.php?t=1806090[/url]
[url]http://www.thegeekstuff.com/2010/07/tftpboot-server/[/url]
[url]http://askubuntu.com/questions/201505/how-do-i-install-and-run-a-tftp-server[/url]#LetsMakeScripts[/quote]
-
How are you running DHCP? What is it on?
Also, can you try making this file?
[CODE]/etc/xinetd.d/tftp[/CODE]
[CODE]service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
}[/CODE]restart the service
[CODE]sudo service xinetd restart[/CODE]Test tftp
Create a file named test.txt with some content in /tftpboot path of the tftp server
[CODE]sudo echo “Is my TFTP service working?” > /tftpboot/test.txt[/CODE]On some other system follow the following steps.
[CODE]tftp x.x.x.x
tftp> get test.txt
//Sent 159 bytes in 0.0 seconds
tftp> quit
cat test.txt[/CODE] -
[quote=“Uncle Frank, post: 44969, member: 28116”]@buzzzz: AFAIK these are two very different issues. Your TFTP seems to work fine. My guess is that your next-server/filename settings might be broken or an intermediate layer 3 switch is tampering with the filename (don’t laugh, seen this a couple of times!). I think you should get into wireshark/tcpdump to really see what’s going on.
[CODE]sudo tcpdump -i eth0 -w tftp_dump.pcap udp[/CODE]
Startup the client then, wait till it fails, stop tcpdump (ctrl+c), transfer the PCAP file to your PC and examine it using wireshark (helpful display filters are ‘bootp’ and ‘tftp’)…@Kyle Nash: State ‘open|filtered’ is not a great answer but actually it’s all you can ask from a normal scan. UDP protocol doesn’t have a 3-way-handshake and is therefore is not that easy to scan than TCP is. UDP scanning is more a reverse kind of thing. IF you get a closed answer you know it is closed but if you don’t get an answer it could be for several different reasons (port is open but does not answer because you send a UDP packet with empty payload, packet was lost, packet was silently dropped, ICMP rate-limiting on the server kicked in -> no ICMP answer). Making a long story short… You need to send UDP data to find out if TFTP is working via remote access. Either use a normal tftp client (I know you tried it before) or give nmap a shot:
[CODE]sudo nmap -sU -p 69 --script tftp-enum.nse <tftp-server-ip>[/CODE]Could you please run tcdpump on your FOG server too (see above)? Boot up the client and examine the dump file using wireshark. My guess is that you see DHCP traffic (display filter bootp) but no tftp traffic. In case that’s true take a closer look at the DHCP packets (next-server, filename options). Are those all correct?
What does your network setup look like? Could you connect the client to the FOG server using a hub or dump mini switch just for testing. Possibly one of your intermediate switches or routers is blocking TFTP…[/quote]
Ran TCP dump / wireshark.
First: DHCP isn’t being handled by the FOG server, but by our DHCP server. That all seems to be working correctly. I can’t actually access the fog server with a standalone TFTP client let alone via PXE boot or whatever.
tcpdump/wireshark show absolutely no data from the client machine, or the machine doing the scanning. I actually even ran a scan from another virtual server on the same host/virtual switch. Looking like this may be a hyperv issue. Any ideas?
-
[quote=“Wayne Workman, post: 44988, member: 28155”]Some Hyper-V screen shots for one of our servers that is running FOG…
Bear in mind, I configured a static IP for the FOG server via the Fedora 21 OS.
NIC Overview
[IMG]http://s10.postimg.org/fu5oos6fd/NIC_overview.png[/IMG]NIC 2
[IMG]http://s7.postimg.org/8ce5q3dnv/NIC2.png[/IMG]Hyper-V virtual adapter
[IMG]http://s10.postimg.org/pisdcw4jt/Hyper_V_virtual_adapter.png[/IMG]Hyper-V virtual adapter IPv4 properties
[IMG]http://s23.postimg.org/71n5syxsb/Hyper_V_Virtual_Adapter_ip4.png[/IMG]Hyper-V virtual adapter - IPv6 properties
[IMG]http://s10.postimg.org/fv1w6gsnd/Hyper_V_Virtual_Adapter_ipv6_properties.png[/IMG]Virtual Switch - Overview
[IMG]http://s21.postimg.org/3viul08yf/Virtual_Switch_Overview.png[/IMG]Virtual Switch - Extensions
[IMG]http://s28.postimg.org/urj4bvykt/Virtual_Switch_Extensions.png[/IMG]Virtual Switch - MAC address range
[IMG]http://s11.postimg.org/z0zvoujnn/Virtual_Switch_Mac_Address_Range.png[/IMG]FOG NIC - Overview
[IMG]http://s17.postimg.org/dshdq4omn/FOG_NIC_Overview.png[/IMG]FOG NIC - Hardware Acceleration
[IMG]http://s12.postimg.org/t2orzls7h/FOG_NIC_Hardware_Acceleration.png[/IMG]FOG NIC - Fail Over
[IMG]http://s7.postimg.org/vliubq57v/FOG_NIC_Fail_over.png[/IMG]FOG NIC - Advanced Features
[IMG]http://s21.postimg.org/4vrizohnb/FOG_NIC_Advanced_Features.png[/IMG][/quote]My environment is a little bit different than yours as I’m on 2013 using Nic Teaming… but adjusted for that, we have identical settings. Still not working.
-
You did try recursively changing permissions on /tftpboot ?
-
[quote=“Wayne Workman, post: 45049, member: 28155”]You did try recursively changing permissions on /tftpboot ?[/quote]
Yes sir, to both 777 and 444. -
dr–r–r-- 2 foguser root 5 mar 2 12:39 tftpboot
-
Would you be up for using Fedora 21 ?
-
check this:
[url]http://fogproject.org/forum/threads/fog-server-not-wokring-over-pxe.12653/[/url]TL DR this magic command (maybe) fixes all: [FONT=monospace][COLOR=#000000]sudo ln -s undionly.kpxe undionly.0[/COLOR][/FONT]
-
Shouldn’t keep him from pulling a file via TFTP client from some other computer though…
But yeah, that step is required.
-
[quote=“Tauno Vürmer, post: 45055, member: 29182”]check this:
[url]http://fogproject.org/forum/threads/fog-server-not-wokring-over-pxe.12653/[/url]TL DR this magic command (maybe) fixes all: [FONT=monospace][COLOR=#000000]sudo ln -s undionly.kpxe undionly.0[/COLOR][/FONT][/quote]
Looks like a different problem.
-
[quote=“Wayne Workman, post: 45052, member: 28155”]Would you be up for using Fedora 21 ?[/quote]
Eh… might as well. I’ll just build a new VM with that on there and see how it goes. In the mean time, I’ll keep working on this install too.
-
Still not able to tftp to my Ubuntu install.
I started installing Fedora Core 21, but the dumb install is hanging. Anyone want to help me keep troubleshooting the Ubuntu install?
-
In Fedora 21 Server, I’ve found it must check the validity of the installation media before proceeding. You must allow it to do this, and not skip it. It takes about 5 - 10 minutes.
In Fedora 21 Workstation, it does not do this check. And I know workstation installs just fine in Hyper-V.
-
[quote=“Wayne Workman, post: 45245, member: 28155”]In Fedora 21 Server, I’ve found it must check the validity of the installation media before proceeding. You must allow it to do this, and not skip it. It takes about 5 - 10 minutes.
In Fedora 21 Workstation, it does not do this check. And I know workstation installs just fine in Hyper-V.[/quote]
Nah, that’s not it. Its hanging up on provisioning the HDD/Partitions.
-
Use the installer to delete all partitions, and have the installer auto-create the required ones for you.