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