pypxe / PyPXE

Pure Python PXE (DHCP-(Proxy)/TFTP/HTTP/NBD) Server
MIT License
547 stars 125 forks source link

Buffer too small for tools.t00 of ESXi6.7.0 #160

Closed marrotte closed 6 years ago

marrotte commented 6 years ago

screen shot 2018-05-11 at 3 45 53 pm

No errors from PyPXE. This is during TFTP process. TOOLS.T00 is the biggest file at 178M.

psychomario commented 6 years ago

178Mb is larger than TFTP can support with a standard block size of 512 bytes. Is this a supported installation method?

marrotte commented 6 years ago

Yeah. It's supported here:

https://www.vmware.com/content/dam/digitalmarketing/vmware/en/pdf/techpaper/vsphere-esxi-vcenter-server-60-pxe-boot-esxi.pdf

But, I see your point and how the TFTP code is tightly coupled with the 2-byte int block ID. I switched from TFTP to HTTP and got it working.

Thanks for the feedback and sweet PXE server.

psychomario commented 6 years ago

I'm a little unsure how this is actually supposed to work, IIRC we've implemented blockid wraparound if supported by the client but that may not be working in this case.

Since it is not recommended to use TFTP for files of this size anyway and you've managed to get it working with HTTP I will close this issue.