[opensuse] my tftp setup - not exactly a howto
David C. Rankin wrote:
Also, I've attempted PXE setup with Apache and TFTP before but not had much luck. You have your howto laying around on how you have your server configed?
Sure, I'll be happy to share. There's no black magic or trade secrets, my setup goes back to 2006 :-) No apache involved btw. Only tftpd and dhcp. You can run the tftp daemon from xinetd or just permanently. I run it permanently, but it doesn't matter. I use /srv/tftpboot as my main directory. Whatever you want to use just needs specifying with '-s' when starting in.tftpd. Next important directory is <tftpdir>/pxelinux.cfg/ Under that you will find files such as: 01-00-01-2e-6b-a0-c0 The above is for my Zotac mini PC. AFAIK, the '01' indicates 'ethernet', the rest is the MAC address. Contents: ------------------------------ #serial 0 9600 default frompxe prompt 1 timeout 100 say Choose frompxe, leap151 or memtest: label frompxe kernel zotac1/vmlinuz-4.12.14-lp151.28.36-default append initrd=zotac1/initrd2 noresume label leap151 kernel install/leap151.64bit.kernel append initrd=install/leap151.64bit.initrd usessh=1 sshpassword=1234 noresume install=http://download.opensuse.org/distribution/leap/15.1/repo/oss label memtest kernel memtest ------------------ In the above assume the working dir to be <tftpdir>. Hence I have a <tftpdir>/install directory which holds the kernels and initrds for installable distros. For Leap 15.1 - install/kernel = http://download.opensuse.org/distribution/leap/15.1/repo/oss/boot/x86_64/loa... install/initrd = http://download.opensuse.org/distribution/leap/15.1/repo/oss/boot/x86_64/loa... In dhcpd.conf: group { filename "pxelinux.1"; next-server tftpserver.david.rankin; host sister1 { hardware ethernet 00:14:5e:4c:0d:56; fixed-address 192.168.6.201; } host sister2 { hardware ethernet 00:14:5e:4c:0b:2a; fixed-address 192.168.6.202; } host sister4 { hardware ethernet 00:14:5e:4c:0b:66; fixed-address 192.168.6.204; } host sister5 { hardware ethernet 00:14:5e:4c:0d:6c; fixed-address 192.168.6.205; } host sister6 { hardware ethernet 00:14:5e:4c:0b:5e; fixed-address 192.168.6.206; } host sister7 { hardware ethernet 00:14:5e:4c:0c:3c; fixed-address 192.168.6.207; } }; "pxelinux.1" is in fact <tftpdir>/pxelinux.1 - pxelinux.1 comes from the syslinux project. HTH Per -- Per Jessen, Zürich (11.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/15/2019 05:48 AM, Per Jessen wrote:
Sure, I'll be happy to share. There's no black magic or trade secrets, my setup goes back to 2006 :-) No apache involved btw. Only tftpd and dhcp.
Thank you Per. I have documentation on six different ways to approach this and all using /srv/tftp/ and variations on how to trigger the image retrieval. I'll run though the post and see if I have better luck. Gigabit networking makes PXE an efficient option. It's probably been 3-4 years since I attempted a setup and I was looking for the links I used last -- but they must be on one of the drives sitting on my shelf... (never fails) -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
David C. Rankin
-
Per Jessen