[GUIDE] Installing a PXE Server on unRAID


81 posts in this topic Last Reply

Recommended Posts

  • 10 months later...
  • Replies 80
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Installing a PXE Server on unRAID     Examples of things you can do:   openELEC - You can network boot a machine into openELEC without a hard drive using your PXE Server. Each machine ha

This is the file I think. Haven't used it in a long time.   Gary tftp2.tar

Posted Images

  • 4 weeks later...

I've been hitting my head against this and can't quite figure it out.

 

My setup > Router is an RT2600AC, doesn't have the option to set PXE/TFTP through web-gui and had to make changes manually via SSH (when router reboots, settings are lost and again, have to make changes). [Will be brining this up with Synology support].

 

I cycle dnsmasq on the router, tail the syslog and I see the following:

Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 available DHCP subnet: 192.168.86.0/255.255.255.0
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 vendor class: PXEClient:Arch:00007:UNDI:003016
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 PXE(br0) 50:65:f3:bd:b0:30 proxy
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 tags: br0
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 broadcast response
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 sent size:  1 option: 53:message-type  02
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 sent size:  4 option: 54:server-identifier  192.168.86.200
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 sent size:  9 option: 60:vendor-class  50:58:45:43:6c:69:65:6e:74
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 sent size: 17 option: 97:client-machine-id  00:7f:80:41:bc:f3:79:e3:11:99:04:62:a5...
Apr  8 09:49:37 WatchTower dnsmasq-dhcp[3985]: 273333721 sent size: 10 option: 43:vendor-encap  06:01:08:0a:04:00:50:58:45:ff
Apr  8 09:49:41 WatchTower dnsmasq-dhcp[3985]: 273333721 available DHCP subnet: 192.168.86.0/255.255.255.0
Apr  8 09:49:41 WatchTower dnsmasq-dhcp[3985]: 273333721 vendor class: PXEClient:Arch:00007:UNDI:003016
Apr  8 09:49:41 WatchTower dnsmasq-tftp[3985]: error 8 User aborted the transfer received from 192.168.86.169
Apr  8 09:49:41 WatchTower dnsmasq-tftp[3985]: failed sending /mnt/cache/appdata/tftp/pxelinux.0 to 192.168.86.169
Apr  8 09:49:41 WatchTower dnsmasq-tftp[3985]: sent /mnt/cache/appdata/tftp/pxelinux.0 to 192.168.86.169

 

Then on the box booting, I receive "An error occured with the boot selection verify media is present and retry".

 

I don't see the PXE menu on the client, just this failed white message on the screen.

 

If anyone could help point me in the right direction, I would really appreciate it!

Link to post
  • 1 year later...

New UnRaid user here,  I finally have PXE boot working with Version: 6.7.2

 

I am using the following files:

dnsmasq:       http://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/n/dnsmasq-2.80-x86_64-3.txz

syslinux:       https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/6.xx/syslinux-6.03.zip

 

I used the following files from syslinux zip file in my tftpboot folder:  chain.c32,  ldlinux.c32,  libutil.c32, mboot.c32,  memdisk,  menu.c32,  pxelinux.0,  vmlinuz

I'm not sure if they are all needed, but it is what worked for me.

 

same startup script:

installpkg /boot/config/custom/dnsmasq-2.80-x86_64-3.txz
cp /boot/config/custom/dnsmasq.conf /etc
chmod +x /etc/rc.d/rc.dnsmasq
/etc/rc.d/rc.dnsmasq start

I tried placing this in the go file, but I would always get an error that the directory (share folder) dosen't exist.

I believe that this is because the array hasn't started yet.

I placed the startup script into the User Scripts section and set it to run at startup of array.

 

I have clonezilla loading with the help of this page:  https://clonezilla.org/livepxe.php

I haven't mastered the use of the menus, but it's work in progress.

 

Link to post
  • 4 weeks later...
On 9/2/2019 at 11:05 PM, DrMac said:

New UnRaid user here,  I finally have PXE boot working with Version: 6.7.2

 

I am using the following files:

dnsmasq:       http://ftp.slackware.com/pub/slackware/slackware64-current/slackware64/n/dnsmasq-2.80-x86_64-3.txz

syslinux:       https://mirrors.edge.kernel.org/pub/linux/utils/boot/syslinux/6.xx/syslinux-6.03.zip

 

I used the following files from syslinux zip file in my tftpboot folder:  chain.c32,  ldlinux.c32,  libutil.c32, mboot.c32,  memdisk,  menu.c32,  pxelinux.0,  vmlinuz

I'm not sure if they are all needed, but it is what worked for me.

 

same startup script:


installpkg /boot/config/custom/dnsmasq-2.80-x86_64-3.txz
cp /boot/config/custom/dnsmasq.conf /etc
chmod +x /etc/rc.d/rc.dnsmasq
/etc/rc.d/rc.dnsmasq start

I tried placing this in the go file, but I would always get an error that the directory (share folder) dosen't exist.

I believe that this is because the array hasn't started yet.

I placed the startup script into the User Scripts section and set it to run at startup of array.

 

I have clonezilla loading with the help of this page:  https://clonezilla.org/livepxe.php

I haven't mastered the use of the menus, but it's work in progress.

 

Thank you for posting this update. I believe my PXE boot server has been broken since about Jan 2019 after an unRaid version update.

 

"I used the following files from syslinux zip file in my tftpboot folder:  chain.c32,  ldlinux.c32,  libutil.c32, mboot.c32,  memdisk,  menu.c32,  pxelinux.0,  vmlinuz"

 

Does this mean here?      

image.png.5c5a2ef7cc80c9f70a8d51906e3dc483.png        

 

 

Or in tftp\pxelinux.cfg\roms? I copied them to both locations until i can reboot the server and test.

 

"chain.c32,  ldlinux.c32,  libutil.c32, mboot.c32,  memdisk,  menu.c32,  pxelinux.0,  vmlinuz"

 

From which directory did you copy these from? I guess it depends on if you are booting with UEFI or not?

 

syslinux-6.03\bios

syslinux-6.03\efi32

syslinux-6.03\efi64

 

I have a mixed environment of machines and extracted the files from the bios directory to test with.

 

 

Edited by chris1259
Link to post
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.