PostImage: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(bug 570843 ensures bluetooth to be disabled)
No edit summary
Line 24: Line 24:
  hostname --fqdn
  hostname --fqdn


= Windows XP and Windows 2003 =
= 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.
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.
Line 31: Line 31:


= Windows 7 =
= Windows 7 =
Make sure Windows is activated (see {{bug|630108}}).
Make sure Windows is activated (see the mana page for instructions)
 
* Log on to an RDP session with the machine there might be an activation request window up or you might need to go to Control Panel -> System -> Activate Windows
* The activation window gives the option to activate online or through other methods, choose other and then activate by phone
* The activation window will ask you to call 1-888-725-1047 which has an automated system that asks you to speak/enter the 9 sets of digits that are on the screen
* Once that is done the automated system will read back a series of numbers to you that need to be entered in corresponding boxes organized by letter
* When you have all the confirmation numbers, click Next, and windows is activated.

Revision as of 22:40, 16 December 2011

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)