शुक्रवार, 4 नवंबर 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 '



    Disabled
   
    Label
    com.apple.tftpd
    ProgramArguments
   
        /usr/libexec/tftpd
        -i
        /private/tftpboot
   

    inetdCompatibility
   
        Wait
       
   

    InitGroups
   
    Sockets
   
        Listeners
       
            SockServiceName
            tftp
            SockType
            dgram
       

   
' > /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 '



        bootp_enabled
        en0
        netboot_enabled
        en0
        old_netboot_enabled
        en0
' > /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"

4. Testing/Troubleshooting the entire setup

कोई टिप्पणी नहीं:

एक टिप्पणी भेजें

fly