Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limited to six images? #2

Open
bluenenschloss opened this issue Sep 15, 2017 · 4 comments
Open

Limited to six images? #2

bluenenschloss opened this issue Sep 15, 2017 · 4 comments

Comments

@bluenenschloss
Copy link

I try to migrate from OS X Server to Linux and tried pybsdp for netbooting. Although everything works fine up to six images, more than six cannot be used. When I add one by one to NetBootImages directory no more than six are displayed on Macs boot screen. I made for sure, that any of them works fine. Each of them shows up and can be booted in a group of max. six images. A tcpdump shows that the image list is max. 6 images long. Is that intentionally or could that be fixed? Kind regards from germany - Bernd.

@cabal95
Copy link
Owner

cabal95 commented Sep 15, 2017

I do not know for sure, but I would suspect you are running into a character limit in DHCP options. A quick look at the BSDP part of the code indicates that the list of NetBootImages is limited to 255 characters. Each image takes up 5 bytes plus the length of the string. So if each image name is around 32 characters long, you would be over that limit on the 7th image.

@bluenenschloss
Copy link
Author

bluenenschloss commented Sep 15, 2017 via email

@cabal95
Copy link
Owner

cabal95 commented Sep 15, 2017

It's a limitation of DHCP. It's possible the Mac server works around this by sending multiple DHCP responses but I don't know if that actually works. The BSDP code I use is from a third party and the way it handles is is just to ignore the image name if it goes over the 255 character limit.

When I was using this I never ran into the issue all my image names were short. They were just the version and an optional "Base" word to identify if it was a base image or one that had been customized for deployment use. i.e. 10.8.6 Base would have been the longest image name I used, which would have let me do up to 15 images before hitting the character limit.

@bluenenschloss
Copy link
Author

bluenenschloss commented Sep 15, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants