VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/testboxscript/win/readme.txt@ 79723

Last change on this file since 79723 was 72214, checked in by vboxsync, 7 years ago

ValidationKit/testboxscript: Document ramdisk tool install for systems which are very low on disk space. This gets picked up by the testboxscript.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.5 KB
Line 
1$Id: readme.txt 72214 2018-05-15 09:31:45Z vboxsync $
2
3
4Preparations:
5
60. Make sure the computer name (what hostname prints) is the same as the DNS
7 returns (sans domain) for the host IP.
8
91. 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
122. Install the win32 extension for python.
13
143. Append C:\Python27 or C:\Python3%y% to the system PATH (tail).
15
164. 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
215. 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
356. 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
416b. 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
467. 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
777b. 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
907c. 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
988. Install firefox or chrome, download the latest testboxscript*.zip from
99 the build box. If the testbox is very short on disk space, i.e. less than
100 15GB free disk space after installing Windows Updates, install ImDisk 2.0.9
101 or later from e.g. http://www.ltr-data.se/opencode.html/
102
1039. Create a user named "vbox" with password "password". Must be an
104 Administrator user!
105
10610. Configure user "vbox" to log in automatically via "control userpasswords2".
107
10811. Open up the port ranges 6000-6100 (VRDP) for TCP traffic and 5000-5032
109 (NetPerf) for both TCP and UDP traffic in the Windows Firewall.
110 From the command line (recommended in vista):
111 for /L %i in (6000,1,6100) do netsh firewall add portopening TCP %i "VRDP %i"
112 for /L %i in (5000,1,5032) do netsh firewall add portopening TCP %i "NetPerf %i TCP"
113 for /L %i in (5000,1,5032) do netsh firewall add portopening UDP %i "NetPerf %i UDP"
114 netsh firewall set icmpsetting type=ALL
115
11611b. Set a hostname which the test script can resolve to the host's IP address.
117
11812. Setup time server to "wei01-time.de.oracle.com" and update date/time.
119
12013. Activate windows. "https://linserv.de.oracle.com/vbox/wiki/MSDN Volume License Keys"
121
12214. Windows 2012 R2: If you experience mouse pointer problems connecting with rdesktop,
123 open the mouse pointer settings and disable mouse pointer shadow.
124
12515. Enable RDP access by opening "System Properties" and selecting "Allow
126 remote connections to this computer" in the "Remote" tab. Ensure that
127 "Allow connections only from computers running Remote Desktop with Network
128 Level Authentication" is not checked or rdesktop can't access it.
129
130 W10: Make old rdesktop connect:
131 \HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\SecurityLayer
132 Change DWORD Hex '2' -> '1'
133
13415b. While you're in "System Properties", in the "Hardware" tab, button
135 "Driver Signing" tell it to ignore logo testing requirements.
136
137 W10: Doesn't exist any more.
138
139The install (as user vbox):
140
14116. Disable loading CONIME. Set "HKEY_CURRENT_USER\Console\LoadConIme" to 0.
142
14317. Unzip (/ copy) the content of the testboxscript-*.zip to C:\testboxscript.
144
14518. Copy C:\testboxscript\testboxscript\win\autoexec-testbox.cmd to C:\.
146
14719. Create a shortcut to C:\autoexec-testbox.cmd and drag it into
148 "Start" -> "All Programs" -> "Startup".
149
150 W10: Find startup folder by hitting Win+R and entering "shell:startup".
151
15220. If this is an Intel box and the CPU is capable of Nested Paging, edit C:\autoexec-testbox.cmd
153 and append '--nested-paging'
154
155
156That's currently it.
157
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette