Modifying JAMF’s NetSUS to host DeployStudio NetBoot boot sets
Gary Larizza updated his NetSUS appliance write-up earlier today, to include information on how to modify the NetSUS’s /var/www/webadmin/scripts/adminHelper.sh so that it can accommodate DeployStudio’s NetBoot sets.
Gary’s way is elegant and uses vim. Consider this the illustrated version that’s doing the same process the hard way with nano. See below the jump for the details.
Start up your NetSUS VM and hit the Enter key to get past the opening welcome screen
Log in as the shelluser account
Once at the prompt, run the following command to change to the /var/www/webadmin/scripts directory:
cd /var/www/webadmin/scripts
Once in /var/www/webadmin/scripts, use nano to open the adminHelper.sh script for editing.
sudo nano adminHelper.sh
In adminHelper.sh, go to line 98 and edit the following line (outlined in yellow):
From: dmgfile=`echo $files | grep dmg`
To: dmgfile=`echo $files | egrep dmg\|sparseimage`
Hit Control-X to exit nano, and you’ll be prompted to save your changes.
Save changes as adminHelper.sh
From here, you can use DeployStudio to generate a Netboot booter image and upload it to the NetSUS VM through the web-based GUI. Also, while you’re in here, consider installing SSH using Gary’s instructions at the linked post above. It’ll make future editing like this a lot more painless.
As Gary mentions in his post, the changes you made to the adminHelper.sh script should get propagated to /etc/dhcpd.conf when you use the GUI to set up a new Netboot image.
Thanks for this, worked like a charm. Am I correct in assuming you still need OSX hardware to run Deploystudio on?
Right, you need OS X or OS X Server to run the DS server software on.
Bummer, thanks for the quick response!
Is there way to server multiple netboot images using the Netboot/SUS appliance
It’s been awhile, so I imagine you’ve learned that NetSUS_1.02.ova is still limited to hosting a single .nbi at a time—unless someone has found a work-around? Rich even submitted a feature request to JAMF to allow hosting multiple .nbi via NetSUS_1.02.ova.
Hi,
it didn’t work for me at first. Then I tested the command in the terminal, and it works if I add some double-quotes:
dmgfile=`echo $files | egrep dmg\|sparseimage`
changed to:
dmgfile=`echo $files | egrep “dmg\|sparseimage”`
ignore above comment, I made a mistake. I type “grep” instead of “egrep”.
The specific line listed here to edit is completely different in the version version 3.0.2 version of the NetSUS appliance.
The line in my adminHelper.sh script is showing as:
dmgfile=’ls “/srv/NetBoot/NetbootSP0/${2}/”*.dmg 2>/dev/null’
I tested 3.0.2 and DPS 1.6.15
So far I found out that *enable netboot” will only turn green after the deploystudio.plist inside the .NBI is removed.
But that’s obviously not enough – you have to convert the .sparebundle into compressed or read/write .dmg
Workflows look good now.
BUT:
Any ideas why the “Utilities” menu is not working correctly – would love to have “Terminal”, StartupDisk, etc. back