Thursday, 3 November 2011

Netboot Server Snow Leopard




1. Configure "bootpd"

    - create folders "/Library/NetBoot/NetBootSP0" and "/Library/NetBoot/NetBootClients0"

    - Change owner and mod like
      chown root:admin /Library/NetBoot/NetBoot*
      chmod 775 /Library/NetBoot/NetBoot*

    - Creat Symbolic links
      cd /Library/NetBoot
      ln -s NetBootSP0  /Library/NetBoot/.sharepoint
      ln -s NetBootClients0 /Library/NetBoot/.clients

   - Export NetBooting Folder to world (NFS)
     echo "/Library/NetBoot/NetBootSP0 -ro" >> /etc/exports
   

2. Configure "tftp"
    - Create SymLink for tftp
       ln -s /Library/NetBoot /private/tftpboot/NetBoot

3. Start Trivial File Transfer Protocol ( tftpd ) service
    Execute below shell script commands

if [ -e /System/Library/LaunchDaemons/tftp.plist ]
then
cp /System/Library/LaunchDaemons/tftp.plist /System/Library/LaunchDaemons/tftp.plist.back
fi
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Disabled</key>
    <false/>
    <key>Label</key>
    <string>com.apple.tftpd</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/libexec/tftpd</string>
        <string>-i</string>
        <string>/private/tftpboot</string>
    </array>
    <key>inetdCompatibility</key>
    <dict>
        <key>Wait</key>
        <true/>
    </dict>
    <key>InitGroups</key>
    <true/>
    <key>Sockets</key>
    <dict>
        <key>Listeners</key>
        <dict>
            <key>SockServiceName</key>
            <string>tftp</string>
            <key>SockType</key>
            <string>dgram</string>
        </dict>
    </dict>
</dict>
</plist>' > /System/Library/LaunchDaemons/tftp.plist

launchctl load -F /System/Library/LaunchDaemons/tftp.plist

      

4. Start Boot Service Discovery Protocol ( BSDP i.e. bootpd ) service
    execute below shell script commands
    if [ -e "/etc/bootpd.plist" ]
      then
         cp /etc/bootpd.plist /etc/bootpd.plist.back
    fi

echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>bootp_enabled</key>
        <string>en0</string>
        <key>netboot_enabled</key>
        <string>en0</string>
        <key>old_netboot_enabled</key>
        <string>en0</string>
</dict>
</plist>' > /etc/bootpd.plist


launchctl load -F /System/Library/LaunchDaemons/bootps.plist
5. Create Bootable Image ( nbi )
    5.1 From Bootable Volume
    5.2 From Bootable CD
          http://www.bombich.com/mactips/netboot.html

6. Copy .nbi folder to "/Library/NetBoot/NetBootSP0"

7. Testing/Troubleshooting the entire setup

For hosting NetBoot (BSDP) Server on Linux 
also includes manually creating NetBoot files ( booter, kernel etc ... )
https://docs.math.osu.edu/linux/how-tos/bsdp_with_isc_dhcp/
NetBoot Server Snow Leopard, setup netboot lion server,netboot mac os x, netboot mac, netboot server, netboot mac mini, netboot mac os x server

No comments:

Post a Comment