Macintosh Imaging over the network

From CSS Wiki

Revision as of 23:21, 17 August 2010 by Tbatzel (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

This is still an experimental procedure, and is not ready to production use.

Contents

Inital setup

Multicast Server

  1. Open the Terminal and enter these commands.
defaults write /images/asr "Data Rate" -int 4000000
defaults write /images/asr "Multicast Address" 224.77.100.100

These steps are only required once, per server. The values will also depend on the network the server is located on. Do not use this multicasting setup on the campus network.

Create an Image

You can't boot from drive the image will be taken from.

  1. Plug firewire cable into laptop containing updated image
  2. Hold down T as you turn the laptop on until Macintosh HD appears as a drive on the iMac desktop.
  3. Select Utilities -> Disk Utility
  4. Select Macintosh HD
  5. Click New Image
  6. Save To Images folder, as a Compressed image with No Encryption. Save as newimage.dmg, and enter the appropriate image number, such as "newimage5.dmg"

Prepare the image

  1. Open the Terminal
  2. Enter this command:
asr -imagescan newimage5.dmg  (replace 5 with the appropriate image number)  

The system will then scan the image to make sure it is ready to be used with multicasting. This process also modifies the file in a way that is required for multicasting.

Imaging a laptop

Starting the Multicast Server

  1. Open the Terminal and enter these commands. You should replace newimage5.dmg with the image number you are on.
sudo asr -source /images/newimage5.dmg -server /images/asr.plist  
Enter password when prompted.

Connect the client

  1. You can't boot from drive the image will be put on.
  2. Plug the laptop in, and plug in an ethernet cable
  3. Boot from MacOS X CD 1 (Hold C until the loading symbol appears below the Apple)
  4. Choose English
  5. In the top menu, go to "Utilities" and open the Terminal and enter this commands.
asr -source asr://192.168.2.1 -target "/Volumes/Macintosh HD" -erase
  • A message saying "Erase contents of (/Volumes/Macintosh HD)?" will come a few lines later. Press Y and enter

Disconnect the client

  • Quit the installer.
  • Restart the laptop.
  • Eject the disk.

Stopping the Multicast Server

  1. Press CTRL + C

Troubleshooting

  • If the image fails during the write to the client, you will need to erase the local hard drive.
  1. Close the Terminal.
  2. Go to Utilities, Disk Utility.
  3. Select the Macintosh HD.
  4. Click Erase.
  5. Make sure the name says Macintosh HD.
  6. Click Erase. Click Erase.
  7. Close the Disk Utility.
  8. Attempt to image the client again.