[Bug 47854] New: Block Windows 10 updates
WineHQ Bugzilla
wine-bugs at winehq.org
Mon Sep 30 10:24:13 CDT 2019
https://bugs.winehq.org/show_bug.cgi?id=47854
Bug ID: 47854
Summary: Block Windows 10 updates
Product: Wine-Testbot
Version: unspecified
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: unknown
Assignee: wine-bugs at winehq.org
Reporter: fgouget at codeweavers.com
Distribution: ---
Windows Updates can interfere with the Wine tests in many ways:
* By causing disk traffic they could slow down some tests, causing them to time
out. (Some Wine tests are already somewhat slow. Obviously making them faster
and/or improving QEmu's disk performance would be great but barring that
preventing undue external disk traffic is necessary)
* Windows installing an update at the same time WineTest is testing MSI
installs could cause interference.
* There is also a risk of Windows scheduling a reboot during a test, or popping
up a window asking to reboot during Wine's windowing tests.
And in any case Windows Updates are a waste of CPU, network and disk bandwidth
since VMs will be reverted as soon as the test is completed.
For these reasons pre-Windows 10 versions are configured with Windows updates
disabled. But for Windows 10 that's not possible.
So instead the 'Windows Update' service is disabled. However that does not
survive reboots. So LibvirtTool could maybe run a command to re-disable that
service when it creates a live snapshot. That command could also be repeated in
WineRunTask before starting the tests.
Also for Windows 10 >= 1703 it is possible to set the network connection to
metered mode. This appears to prevent updates no matter what limit is set which
means it's preferable to set a large limit to avoid notifications abut being
past the limit.
To set the network connection in metered mode:
* In Windows >= 1703: Settings -> Ethernet -> Ethernet (Connected) -> 'Set as
metered connection'.
* In Windows >= 1809
This page also describes a regedit based approach. It's unclear if it works
with older Windows 10 versions.
https://www.winhelponline.com/blog/ethernet-metered-connection-windows-10-defaultmediacost/
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\NetworkList\DefaultMediaCost]
"Ethernet"=DWORD:2
Note that this requries changing the ownership on DefaultMediaCost to the
Administrators group and then back to its original owner, TrustedInstaller, aka
"NT Service\TrustedInstaller" (use those Advanced buttons).
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list