Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Installation and Setup Yosemite

Brian Cunnie edited this page Mar 18, 2015 · 1 revision

Work in Progress

Don't use.

How do I set it up?

These instructions were tested under VMware Fusion 7.1.1, OS X Mountain Lion 10.10.2

Initial Virtual Machine Creation

  1. Start VMWare Fusion . Cmd-N to start a new virtual machine
  2. Click Continue without disc
  3. Use operating system or disc image (choose a disc or disc image); click Continue
  4. Select the Yosemite install disk image (probably InstallESD.dmg); click Continue
  5. Set Version to closest available match; click Continue
  6. Click Customize Settings
  • Select a save location for the VM
  • Hard Disk: 110GB
  • Set Processors & Memory:
    2 processor cores
    4GB
  • Network Adapter:
    select Connect directly to the physical network (Bridged)
    Advanced options → Mac Address: click Generate
  • You'll probably want to create an entry for this machine in your DNS server and add the created MAC address to your DHCP server.
  1. Fire up the VM

Disk Partitioning

  1. You'll be presented with the OS X install screen

  2. **Utilities → Disk Utility

  3. Choose your language

  4. Choose Disk Utility; click Continue

  5. Partition into 2 partions, one 60GB, the other the remaining (Partition Map Scheme: GUID Partition Table; Format: Mac OS Extended (Journaled))

  6. name the 70GB Persistent

  7. name the other one NEWLY_IMAGED (must use this exact string, currently lots of hardcoded dependencies in the scripts)

  8. Click Apply; click Partition

  9. Disk Utility → Quit Disk utility (don't use Cmd-Q to quit Disk Utility; you'll quit VMware Fusion instead)

Install Yosemite on the Persistent partition

  1. Select Reinstall Mac OS X; Click Continue.
  2. Splash screen, click Continue.
  3. Click Agree.
  4. Click Agree, again.
  5. Select the Persistent (70GB) partition; click Install (takes ~7-30 minutes).
  6. Select Country, e.g. United States; click Continue.
  7. Select keyboard layout, e.g. U.S.; click Continue.
  8. Select Not Now; click Continue
  9. Click Enable Location Services if you want, click Continue
  10. Click Skip; click Skip
  11. Click Continue; click Agree
  12. Fill out the Create Your Computer Account
  13. Full Name: e.g. pivotal
  14. Account Name: e.g. pivotal
  15. Password: e.g. loves2dance
  16. Verify: e.g. loves2dance
  17. Password Hint: e.g. How do you feel about dancing?
  18. Click Continue
  19. Confirm timezone; Click Continue
  20. Click Skip to Skip registration; click Skip again
  21. Click Start Using your Mac
  22. Bring up Finder; eject Mac OS X Install disk
  23. VMware → Virtual Machine → Update VMware Tools
  24. Click Install to connect the Tools installer CD
  25. Click OK to continue anyway
  26. Double-click Install VMware Tools; go with defaults
  27. Click Restart to finish installing the software

Set Up Second (NEWLY_IMAGED) Partition

  1. Go to the Virtual Machine → CD/DVD(SCSI) → Connect CD/DVD.

  2. System Preferences → Startup Disk → Choose Mac OS X Install ESD

  3. Click Restart...; click Restart

  4. Bring up Disk Utility

  5. Select NEWLY_IMAGED

  6. Click Restore

  7. Drag-and-drop Persistent to Source:

  8. Drag-and-drop NEWLY_IMAGED to Destination:

  9. Click Restore

  10. Click Erase

  11. Disk Utility → Quit Disk Utility

  12. Utilities → Terminal to bring up terminal

  13. Type diskutil rename /Volumes/Persistent\ 1 NEWLY_IMAGED

  14. Click on the Apple in the upper-left-hand corner

  15. Click Startup Disk...

  16. Select the Persistent partition

  17. Click Restart...

  18. When it reboots, log in

  19. Bring up Terminal

  20. Mount the DeployStudio server's hard drive. Check Remember this password in my keychain

  21. Type DESTFILE=10.10.2-$(date -u +%Y-%m-%d-%H:%M).i386.hfs.dmg

  22. (note: the following steps are perhaps overly cautious; shouldn't need to unmount/fsck/mount-read-only)

  23. Type sudo diskutil unmount /Volumes/NEWLY_IMAGED

  24. Type sudo fsck_hfs -r $(diskutil info NEWLY_IMAGED | grep Node | awk '{ print $3 }')

  25. Type diskutil mount readOnly $(diskutil info NEWLY_IMAGED | grep Node | awk '{ print $3 }')

  26. Type sudo hdiutil create -srcfolder /Volumes/NEWLY_IMAGED /Volumes/DeployStudio/Masters/HFS/$DESTFILE

  27. Type sudo asr imagescan --allowfragmentedcatalog --source /Volumes/DeployStudio/Masters/HFS/$DESTFILE

  28. Type cd /Volumes/DeployStudio/Masters/HFS/; ln -sf $DESTFILE ML_mostly_pristine.i386.hfs.dmg

Create the DeployStudio workflow

  1. ssh into the DeployStudio server as the deploy user: e.g. ssh deploy@deploystudio
  2. cd into the Masters directory, e.g. cd /Shared\ Items/DeployStudio/Masters/HFS/
  3. Create a symbolic link to the pristine image: ln -s ML_mostly_pristine.i386.hfs.dmg ML_HEAD.i386.hfs.dmg
  4. Create 10.8 Recovery HD Creation.pkg using Der Flounder's recipe.
  5. Put the resulting .pkg into DeployStudio's packages directory (e.g. /Shared Items/DeployStudio/Packages/ )
  6. Open DeployStudio Admin
  7. Enter the Server address, User name, and Password; click Connect
  8. Select Workflows from the left hand navbar
  9. Click the + button at the bottom (not the one that's grayed-out)
  10. Enter the information:
  • Title, e.g. 1 - ML HEAD
  • Description, e.g. Mountain Lion (OS X 10.8) HEAD
  1. Click the + next to "Drop Tasks Here"
  2. Drag-and-drop Partition over to the tasks
  3. Configure the Partition:
  • Target Volume: First Disk Available
  • Checked: Automate
  1. Drag-and-drop Restore over to the tasks, after "Partition"
  2. Configure the Restore:
  • Target volume: First disk available
  • Image: HFS, use the dropdown to select ML_HEAD.i386.hfs.dmg
    (you might need to restart the DeployStudio daemon to pick up the ML_HEAD dmg)
  • Checked: Automate
  1. Drag-and-drop Package Install over to the tasks, after "Restore"
  • Target volume: Previous task target
  • Package: 10.8 Recovery HD Creation.pkg
  • Checked: Automate
  1. Drag-and-drop Software update over to the tasks, after "Package Install"
  2. Click Save