PostImage
After cloning a system from the ReferencePlatforms, the following steps need to be done on the new system. In general, IT will take care of the steps here. The releng crew (usually slave duty) will then finish things up with ReleaseEngineering/How To/Set Up a Freshly Imaged Slave
Leopard/Snow Leopard
- Set the hostname by opening up Terminal and typing:
- scutil --set HostName hostname.build.(datacenter).mozilla.com
- Replacing hostname.build.(datacenter).mozilla.com with the long fqdn (including the correct datacenter).
- Ensure that resistor dongle is installed.
Fedora/CentOS
- Open a terminal window and "su -" to become root.
- Then edit the file /etc/sysconfig/network , changing the hostname to the host's *long* (with datacenter) fully qualified domain name.
- If a machine has been recloned/replaced then you also do this as root@{staging,production}-puppet
puppetca --clean moz2-linux-slaveNN.build.mozilla.org
(or moz2-linux-slaveNN.build.(datacenter).mozilla.com)
Note: If you run into a situation where the boot process stops at "GRUB" or "GRUB GRUB" this indicates that the MBR got installed but that GRUB 1.5 did not. To fix this problem, connect to a machine running the correct image and do one of the following:
- Open the the IPMI console on the problem machine, boot an Ubuntu ISO(Virtual Storage), boot a 'rescue environment', then run "grub", with the commands "root (hd0,0)", and "setup (hd0)".
- Connect to the reference image machine via ssh.
After doing one of these, issue the command "dd if=/dev/sda of=mbr bs=512 count=63" to obtain the MBR as well as the GRUB stage 1.5 code. Overwrite the 'mbr' file for the image on the DeployStudio server at /Volumes/Deploy/Masters/PC/ImageName/mbr. That should fix the booting issue for all servers imaged going forward.
verification
Verify the hostname, checking that it ends in 'build.(datacenter).mozilla.com':
hostname --fqdn
Windows XP and Windows 2003 and Windows 7
Open "System Properties" and go to "Computer Name" tab, click on "Change..." and enter the host's hostname there. Then click on "More settings..." to add the hosts domain name to the DNS suffix field.
Windows systems should still be in the build.mozilla.org, domain, not the longer datacenter-specific domain.
Windows 7
Make sure Windows is activated (see the mana page for instructions)