Hello all,
I would like to contribute to this discussion what it is I found necessary to get TFTP network boot to work for those struggling. I hope this helps out.
Best
As a foundation, I am using a server w/ Proxmox 8.0.4. I've set up a LXC container running Docker and the netboot.xyz image to serve as my TFTP Server. Then I can configure a VM to network boot. It works just as well for bare metal hardware client.
For reference to the netboot.xyz: Linuxserver.io
RouterOS Config:
As @jonnes86 pointed out, you need to set some DHCP Options. Notice, though, you have to be specific in the value formats or RouterOS will complain it's not a valid entry with Notice the double quote around a single quoted string. You then configure an Option Set to include both of the Options defined. Then, you need to update one, any or all of your Networks to include a Next Server, which points to your PXE server IP and select the DHCP Option Set you configured. Alternatively, you can skip the Option Set and select the DHCP Options themselves. I don't understand why it's necessary to select a Next Server when it's already been defined in an Option Set and by virtue of the fact that you've set the DHCP Open Set (or DHCP Options) it should already know you're configuring the Network to point to a TFTP Server, but oh well.
CLI method:Set the needed changes to the network(s) entry to include next-server and dhcp-option-set (or dhcp-option alternatively)GUI Method:
I would like to contribute to this discussion what it is I found necessary to get TFTP network boot to work for those struggling. I hope this helps out.
Best
As a foundation, I am using a server w/ Proxmox 8.0.4. I've set up a LXC container running Docker and the netboot.xyz image to serve as my TFTP Server. Then I can configure a VM to network boot. It works just as well for bare metal hardware client.
For reference to the netboot.xyz: Linuxserver.io
RouterOS Config:
As @jonnes86 pointed out, you need to set some DHCP Options. Notice, though, you have to be specific in the value formats or RouterOS will complain it's not a valid entry with
Code:
"... Unknown data type"
CLI method:
Code:
/ip dhcp-server optionadd code=66 name=pxe-boot-server value="'10.13.37.113'"add code=67 name=boot-file value="'netboot.xyz.kpxe'"/ip dhcp-server option setsadd name=NetworkBoot options=pxe-boot-server,boot-file
Code:
/ip dhcp-server networkadd address=10.13.37.0/24 dhcp-option-set=NetworkBoot dns-server=10.0.2.11,10.0.2.12,1.1.1.1 gateway=10.13.37.1 \ next-server=10.13.37.113
Statistics: Posted by tonyd — Sat Dec 30, 2023 9:13 pm