1 | $Id: readme.txt 68414 2017-08-14 18:14:44Z vboxsync $
|
---|
2 |
|
---|
3 |
|
---|
4 | Preparations:
|
---|
5 |
|
---|
6 | 1. Install Python 2.7.x from python.org to C:\Python27. Matching bit count as
|
---|
7 | the host windows version.
|
---|
8 |
|
---|
9 | 2. Install the win32 extension for python.
|
---|
10 |
|
---|
11 | 3. Append C:\Python27 to the system PATH (tail).
|
---|
12 |
|
---|
13 | 4. Disable UAC.
|
---|
14 |
|
---|
15 | Windows 8 / 8.1 / Server 2012: Set the following key to zero:
|
---|
16 | "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\EnableLUA"
|
---|
17 |
|
---|
18 | 5. Disable Automatic updates. (No rebooting during tests, thank you!)
|
---|
19 |
|
---|
20 | Ideally we would prevent windows from even checking for updates to avoid
|
---|
21 | influencing benchmarks and such, however the microsofties aren't keen on it.
|
---|
22 | So, disable it as much as possible.
|
---|
23 |
|
---|
24 | W10: gpedit.msc -> "Administrative Templates" -> "Windows Components"
|
---|
25 | -> "Windows Update":
|
---|
26 | - "Configure Automatic Updates": Enable and select "2 - Notify for
|
---|
27 | download and notiy for install".
|
---|
28 | - "Allow Automatic Updates immediate installation": Disable.
|
---|
29 | - "No auto-restart with logged on users for scheduled automatic
|
---|
30 | updates installations": Enabled.
|
---|
31 |
|
---|
32 | 6. Go to the group policy editor (gpedit.msc) and change "Computer Configuration"
|
---|
33 | -> "Windows Settings" -> "Security Settings" -> "Local Policies"
|
---|
34 | -> "Security Options" -> "Network security: LAN Manager authentication level"
|
---|
35 | to "Send LM & NTLM- use NTLMv2 session security if negotiated". This fixed
|
---|
36 | passing the password as an argument to "NET USE" (don't ask why!).
|
---|
37 |
|
---|
38 | 6b. While in the group policy editor, make sure that "Computer Configuration"
|
---|
39 | -> "Windows Settings" -> "Security Settings" [ -> "Local Policies" ]
|
---|
40 | -> "Account Policy" -> "Password must meet complexity requirements" is
|
---|
41 | disabled so the vbox account can be created later one.
|
---|
42 |
|
---|
43 | 7. Need to disable the error popups blocking testing.
|
---|
44 |
|
---|
45 | Set "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Windows\ErrorMode"
|
---|
46 | to 2. This immediately disables hard error popups (missing DLLs and such).
|
---|
47 |
|
---|
48 | Then there are the sending info to microsoft, debug, dump, look for solution
|
---|
49 | questions we don't want. Not entirely sure what's required here yet, but
|
---|
50 | the following stuff might hopefully help (update after testing):
|
---|
51 |
|
---|
52 | On Windows XP:
|
---|
53 |
|
---|
54 | Go "Control Panel" -> "System Properties" -> "Advanced"
|
---|
55 | -> "Error Reporting" and check "Disable error reporting"
|
---|
56 | and uncheck "But notify me when critical erorr occurs".
|
---|
57 |
|
---|
58 | On Windows Vista and later:
|
---|
59 |
|
---|
60 | In gpedit change the following settings under "Computer Configuration"
|
---|
61 | -> "Administrative Templates" -> "Windows Components"
|
---|
62 | -> "Windows Error Reporting":
|
---|
63 | 1) Enable "Prevent display of the user interface for critical errors".
|
---|
64 | ... -> "Advanced Error Reporting Settings":
|
---|
65 | 1) Enable "Configure Report Archive" and set it to "Store All" for
|
---|
66 | up to 500 (or less) reports.
|
---|
67 | 2) Disable "Configure Report Queue".
|
---|
68 |
|
---|
69 | Run 'serverWerOptin /disable'.
|
---|
70 |
|
---|
71 | Then set "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\DontShowUI"
|
---|
72 | to 1. (Could do all the above from regedit if we wanted...)
|
---|
73 |
|
---|
74 | 7b. Configure application crash dumps on Vista SP1 and later:
|
---|
75 |
|
---|
76 | Set the following values under the key
|
---|
77 | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps:
|
---|
78 | DumpFolder [string] = C:\CrashDumps
|
---|
79 | DumpCount [dword] = 10
|
---|
80 | DumpType [dword] = 1 (minidump)
|
---|
81 | CustomDumpFlags [dword] = 0
|
---|
82 |
|
---|
83 | mkdir C:\CrashDumps
|
---|
84 |
|
---|
85 | See also http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181%28v=vs.85%29.aspx
|
---|
86 |
|
---|
87 | 7c. Enable verbose driver installation logging (C:\Windows\setupapi.dev.log):
|
---|
88 |
|
---|
89 | Create the following value under the key
|
---|
90 | HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\
|
---|
91 | LogLevel [dword] = 0xFF (255)
|
---|
92 |
|
---|
93 | If it already exists (typical on W10), just OR 0xff into the existing value.
|
---|
94 |
|
---|
95 | 8. Install firefox or chrome, download the latest testboxscript*.zip from
|
---|
96 | the build box.
|
---|
97 |
|
---|
98 | 9. Create a user named "vbox" with password "password". Must be an
|
---|
99 | Administrator user!
|
---|
100 |
|
---|
101 | 10. Configure user "vbox" to log in automatically via "control userpasswords2".
|
---|
102 |
|
---|
103 | 11. Open up the port ranges 6000-6100 (VRDP) for TCP traffic and 5000-5032
|
---|
104 | (NetPerf) for both TCP and UDP traffic in the Windows Firewall.
|
---|
105 | From the command line (recommended in vista):
|
---|
106 | for /L %i in (6000,1,6100) do netsh firewall add portopening TCP %i "VRDP %i"
|
---|
107 | for /L %i in (5000,1,5032) do netsh firewall add portopening TCP %i "NetPerf %i TCP"
|
---|
108 | for /L %i in (5000,1,5032) do netsh firewall add portopening UDP %i "NetPerf %i UDP"
|
---|
109 | netsh firewall set icmpsetting type=ALL
|
---|
110 |
|
---|
111 | 11b. Set a hostname which the test script can resolve to the host's IP address.
|
---|
112 |
|
---|
113 | 12. Setup time server to "wei01-time.de.oracle.com" and update date/time.
|
---|
114 |
|
---|
115 | 13. Activate windows. "https://linserv.de.oracle.com/vbox/wiki/MSDN Volume License Keys"
|
---|
116 |
|
---|
117 | 14. Windows 2012 R2: If you experience mouse pointer problems connecting with rdesktop,
|
---|
118 | open the mouse pointer settings and disable mouse pointer shadow.
|
---|
119 |
|
---|
120 | 15. Enable RDP access by opening "System Properties" and selecting "Allow
|
---|
121 | remote connections to this computer" in the "Remote" tab. Ensure that
|
---|
122 | "Allow connections only from computers running Remote Desktop with Network
|
---|
123 | Level Authentication" is not checked or rdesktop can't access it.
|
---|
124 |
|
---|
125 | W10: Make old rdesktop connect:
|
---|
126 | \HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer
|
---|
127 | Change DWORD Hex '2' -> '1'
|
---|
128 |
|
---|
129 | 15b. While you're in "System Properties", in the "Hardware" tab, button
|
---|
130 | "Driver Signing" tell it to ignore logo testing requirements.
|
---|
131 |
|
---|
132 | W10: Doesn't exist any more.
|
---|
133 |
|
---|
134 | The install (as user vbox):
|
---|
135 |
|
---|
136 | 16. Disable loading CONIME. Set "HKEY_CURRENT_USER\Console\LoadConIme" to 0.
|
---|
137 |
|
---|
138 | 17. Unzip (/ copy) the content of the testboxscript-*.zip to C:\testboxscript.
|
---|
139 |
|
---|
140 | 18. Copy C:\testboxscript\testboxscript\win\autoexec-testbox.cmd to C:\.
|
---|
141 |
|
---|
142 | 19. Create a shortcut to C:\autoexec-testbox.cmd and drag it into
|
---|
143 | "Start" -> "All Programs" -> "Startup".
|
---|
144 |
|
---|
145 | W10: Find startup folder by hitting Win+R and entering "shell:startup".
|
---|
146 |
|
---|
147 | 20. If this is an Intel box and the CPU is capable of Nested Paging, edit C:\autoexec-testbox.cmd
|
---|
148 | and append '--nested-paging'
|
---|
149 |
|
---|
150 |
|
---|
151 | That's currently it.
|
---|
152 |
|
---|