From MozillaWiki
Jump to: navigation, search

No full reference exists, but Alice says she followed the Vista instructions when creating this ref machine.


  • disable sound

MozillaBuild 1.4

  • In bug 549458 we installed MozillaBuild 1.4
  • Checkout '' and '' from the mofo repo. Read this comment to know where they are located.
unzip -d C:\
unzip -d C:\mozilla-build\python25\Scripts


Install Buildbot

Install Buildbot using the following batch script. You will need to find a way to get this batch script onto the system. This installs buildbot into %mozillabuild%\buildbotve, using the version in the SET at the top. It gets Python packages from the puppet master specified in pkg_root. Note that runas /administrator doesn't work in W7, so you'll need to use VNC to install (below)

@echo off
SET version=0.8.4-pre-moz2

REM find mozillabuild
SET mozillabuild=d:\mozilla-build
SET mozilladrive=d:
IF NOT EXIST %mozillabuild%\nul (
    SET mozillabuild=c:\mozilla-build
    SET mozilladrive=c:

REM find python - some machines have python26, some have python25
SET pythondir=%mozillabuild%\python25\
SET pythondll=python25.dll
IF NOT EXIST %pythondir%\python.exe (
    REM python26 isn't in a versioned directory for some reason
    SET pythondir=%mozillabuild%\python
    SET pythondll=python26.dll

SET python=%pythondir%\python.exe
SET pkg_root=
SET virtualenv=%mozillabuild%\buildbotve

REM get set up
rmdir /s /q %virtualenv%
if ERRORLEVEL 1 exit /b 1
MKDIR %virtualenv%
if ERRORLEVEL 1 exit /b 1

cd %virtualenv%

REM On systems where Python is not installed systemwide, the python.exe in the virtualenv
REM will not be able to find PYTHON*.DLL, so we copy it there "manually"
MKDIR %virtualenv%\scripts
if ERRORLEVEL 1 exit /b 1

COPY %pythondir%\%pythondll% %virtualenv%\scripts
if ERRORLEVEL 1 exit /b 1

REM get the prerequisites for a virtualenv
%mozillabuild%\wget\wget %pkg_root%/
if ERRORLEVEL 1 exit /b 1

%mozillabuild%\wget\wget %pkg_root%/pip-0.8.2.tar.gz
if ERRORLEVEL 1 exit /b 1

%mozillabuild%\wget\wget %pkg_root%/distribute-0.6.14.tar.gz
if ERRORLEVEL 1 exit /b 1

REM create the virtualenv
%python% --python=%python% --distribute %virtualenv%
if ERRORLEVEL 1 exit /b 1

REM populate it
.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% zope.interface==3.6.1
if ERRORLEVEL 1 exit /b 1

.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% buildbot-slave==%version%
if ERRORLEVEL 1 exit /b 1

.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% buildbot==%version%
if ERRORLEVEL 1 exit /b 1

REM note that this version of Twisted has been modified to not require a
REM compiler; see the puppet manifests for details
.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% twisted==10.2.0
if ERRORLEVEL 1 exit /b 1

.\scripts\pip install --no-deps --no-index --find-links=%pkg_root% simplejson==2.1.3
if ERRORLEVEL 1 exit /b 1

Deploy slave-alloc

  • bug 629692 - slave-side slave-alloc support for w7/32
  • Install in C:\
    • You will need to do this with administrator privs. The only way to get these privs is to right-click "Command Prompt" on the start menu, and select "Run as Administrator". Then use 'wget' to download the file.
REM REMEMBER: "Run as Administrator"
wget -O c:\
dir C:\
 wget -O "c:\Users\cltbld\Desktop\startTalos2.bat"
  • set startTalos.bat to start on run
    • see although details are vague
    • In Task Manager, add a new task:
      • Run in C:\, run as cltbld, run only when logged in, run with highest priviledges
      • Triggers: at log on
      • Action: start c:\Users\cltbld\Desktop\startTalos.bat
      • Conditions: stop if idle ceases, start only on AC power, stop on switch to battery
      • Settings: Allow to run on demand, stop if running for more than 3 days, force stop if it does not stop when requested

ANGLE libraries

  • In bug 589814 we deployed the ANGLE libraries into C:\libs (revision r411)
  • You can do this by doing this:
mkdir C:\libs
REM if on the build network do this instead
REM wget
unzip -d C:\libs 

You can download them from []


md5sum -> ab9907210c0f95733cb8465b4dfa28d8  Microsoft_VC80_DebugCRT_x86.msi
  • Verify that the following registry keys do NOT exist (they should not), i.e. JIT debugging is disabled. Remove the keys if they do exist. From the command-line:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger"
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger"


  • We need to run debug builds on test machines which don't have Visual Studio 2010 installed
  • Follow these instructions to find out how to install it as an MSI file
md5sum -> 2011610c458cbfc71cc7ede13c24fb02  Microsoft_VC100_DebugCRT_x86.msi

For releng you can find a copy in here:

DirectX runtime (June 2010)

See bug 624044


NVidia drivers update (Version: 260.99; Date: 2010.10.25)

See bug 624044


Xperf and mozprofilerprobe.mof

See bug 640829. NOTE: Followed instructions from Profiling with Xperf

These directions work locally as well. To install this package unto your slave:

  • Install the Windows 7.1 SDK
  • Install C:\Program Files\Microsoft SDKs\Windows\v7.1\Redist\Windows\wpt_x86.msi

bug 778856

  • ssh as cltbld and download mozprofilerprobe.mof (Download this locally to your xperf directory):
  • VNC, use "Run as Administrator" to start a command prompt and run the following:
mofcomp c:\Users\cltbld\mozprofilerprobe.mof (Just run this locally as an admin if running locally)

Mozilla maintenance service, associated registry keys, Mozilla test CA root

bug 704578

  • Use "Run as Administrator" to start a command prompt and run the following:
cd c:\
wget -O installservice.bat --no-check-certificate
schtasks /create /tn mozillamaintenance /tr "c:\\windows\\system32\\cmd.exe /c \"c:\\installservice.bat\"" /sc ONSTART /ru SYSTEM
wget -O keys.reg --no-check-certificate
regedit /s keys.reg
wget -O MozRoot.crt --no-check-certificate
wget -O add_cert.msc --no-check-certificate
start add_cert.msc
  • From menu: Action -> All Tasks -> Import... launches Certificate Import Wizard
  • Click Next
  • Browse and use C:\MozRoot.crt
  • Next, Next, Finish
  • Close the MMC window


Until bug 853609 is fixed, run this:

C:\mozilla-build\wget\wget.exe -q -Odeploy_dumbwin32proc.bat

This allows us to use "stop build" from buildbot.

Post re-imaging steps

Just change the hostname and reboot the machine.