ReferencePlatforms/Test/Lion
Jump to navigation
Jump to search
Initial Machine Setup
- erase the hard disc
- install Mac OS X 10.7 from recovery media (not a 10.6 upgrade)
- Create user:
- Name: Client Builder
- Username: cltbld
- password being the standard cltbld password
- set cltbld to autologin
- enable ssh and screensharing
- run:
/usr/sbin/systemsetup -setsleep Never
- Install 10.7.2 update
curl -LO http://support.apple.com/downloads/DL1459/en_US/MacOSXUpdCombo10.7.2.dmg open MacOSXUpdCombo10.7.2.dmg sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -install -package /Volumes/Mac\ OS\ X\ 10.7.2\ Update\ Combo/MacOSXUpdCombo10.7.2.pkg
- install puppet v 0.24.8
curl -LO http://downloads.puppetlabs.com/gems/facter-1.5.6.gem curl -LO http://downloads.puppetlabs.com/gems/puppet-0.24.8.gem sudo gem install facter-1.5.6.gem puppet-0.24.8.gem
- FOR TEST MACHINES ONLY :
- install hardware dongle that allows the display mode to be set to 1600x1200x32
- FOR BUILD MACHINES ONLY
- Download and install Xcode 4.1 for lion using SHA1(Downloads/xcode_4.1_for_lion.dmg)= 604781050d030aba13b27b24e54d4b4b2348471c
- Mount the dmg
- open mounted volume in Finder and run the .pkg file, this installs the Xcode installer
- using finder, open '/Applications/Install Xcode' and run through the installer
initial puppet sync
- log into VNC, ssh will not work!
- open terminal
- run the following command, will reboot computer
sudo puppetd --test --server staging-puppet.build.mozilla.org
- run the above command again, future puppet runs will start automatically
- set the resolution to 1600x1200x32
screenresolution 1600x1200x32
If the machine sits idle for a long time, check that it isn't waiting on puppet ca action
- Relevant logs:
- Master:
- tail -F /var/log/message | grep puppetmaster
- Client:
- tail -F /var/puppet/log/puppet.out
- tail -F /var/puppet/log/puppet.err
- Master:
Re-imaging a machine
Assuming the machine is already online and accessible, Lion machines can be re-imaged automatically via netboot. Instructions are in mana.
If the machine is idle, you can reboot it immediately.
Until we figure out the cause of bug 902903, netbooting Lion slaves need a second reboot once they come back up in order to start buildbot properly:
ps auxww | grep buildbot | grep -v grep || sudo reboot
Post-imaging steps
None at present.