PostImage: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 4: Line 4:


* Set the hostname by opening up Terminal and typing:
* Set the hostname by opening up Terminal and typing:
** scutil --set HostName hostname.build.dcx1.mozilla.com
** scutil --set HostName hostname.build.(datacenter).mozilla.com
* Replacing hostname.build.dcx1.mozilla.com with the long fqdn (including datacenter).
* Replacing hostname.build.(datacenter).mozilla.com with the long fqdn (including the correct datacenter).
* Ensure that resistor dongle is installed.
* Ensure that resistor dongle is installed.
* Go to System Preferences -> Bluetooth -> Advanced and clear the checkbox for "Open Bluetooth Setup Assistant at startup when no input device is present"
* Go to System Preferences -> Bluetooth -> Advanced and clear the checkbox for "Open Bluetooth Setup Assistant at startup when no input device is present"
Line 14: Line 14:
* Then edit the file /etc/sysconfig/network , changing the hostname to the host's *long* (with datacenter) fully qualified domain name.
* 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  
* 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
  puppetca --clean moz2-linux-slaveNN.build.mozilla.org  
(or moz2-linux-slaveNN.build.(datacenter).mozilla.com)


Note: If you run into a "GRUB GRUB" error while booting, open the the IPMI console on a machine, boot an Ubuntu ISO(Virtual Storage), boot a 'rescue environment', then run "grub", with the commands "root (hd0,0)", and "setup (hd0)".  After that, issue the command "dd if=/dev/sda of=mbr bs=512 count=63".  Copy(and overwrite) the 'mbr' file onto the DeployStudio server into /Volumes/Deploy/Masters/PC/ImageName/mbr.  That should fix the booting issue for all other imaged servers.
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 codeOverwrite 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 ==
== verification ==
Verify the hostname, checking that it ends in 'build.*.mozilla.com':
Verify the hostname, checking that it ends in 'build.(datacenter).mozilla.com':
  hostname --fqdn
  hostname --fqdn


Confirmed users
72

edits

Navigation menu