From 9bb4a4a3220d4e4537332ecfad88a24f0a5fe1d8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 26 Jan 2024 04:54:24 +0100 Subject: [PATCH] fix: Windows configuration (#96) --- .github/workflows/build.yml | 1 - assets/win10x64.xml | 48 +++++++++++++++++------- assets/win11x64.xml | 50 ++++++++++++++++++------- assets/win2016-eval.xml | 48 +++++++++++++++++------- assets/win2019-eval.xml | 48 +++++++++++++++++------- assets/win2022-eval.xml | 48 +++++++++++++++++------- assets/win7x64-ultimate.xml | 61 +++++++++++++++++++++++++----- assets/win81x64.xml | 74 +++++++++++++++++++++++++------------ readme.md | 2 +- 9 files changed, 281 insertions(+), 99 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 099a240..6db1a6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,6 @@ on: paths-ignore: - '**/*.md' - '**/*.yml' - - '**/*.xml' - '.gitignore' - '.dockerignore' - '.github/**' diff --git a/assets/win10x64.xml b/assets/win10x64.xml index 74f7cd7..bde8809 100644 --- a/assets/win10x64.xml +++ b/assets/win10x64.xml @@ -171,19 +171,19 @@ Windows for Docker - 1 + 1 - true - true - about:blank - about:blank + true + true + about:blank + about:blank - true - true - about:blank - about:blank + true + true + about:blank + about:blank 0 @@ -351,24 +351,46 @@ 4 + false cmd /C POWERCFG -H OFF Disable Hibernation 5 - msiexec /i E:\virtio-win-gt-x64.msi /qb! - Install VirtIO drivers + false + cmd /C POWERCFG -X -monitor-timeout-ac 0 + Disable monitor blanking 6 + reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f + Disable screensaver + + + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f + 8 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup + + 9 + reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f + Disable first-run experience in Edge + + + 10 + reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f + Show file extensions in Explorer + + + 11 + msiexec /i E:\virtio-win-gt-x64.msi /qb! + Install VirtIO drivers + diff --git a/assets/win11x64.xml b/assets/win11x64.xml index 2363a2f..d9dde21 100644 --- a/assets/win11x64.xml +++ b/assets/win11x64.xml @@ -189,19 +189,19 @@ Windows for Docker - 1 + 1 - true - true - about:blank - about:blank + true + true + about:blank + about:blank - true - true - about:blank - about:blank + true + true + about:blank + about:blank 0 @@ -364,10 +364,12 @@ 3 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV1 /d 0 /t REG_DWORD /f + Disable unsupported hardware notifications 4 reg.exe add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v SV2 /d 0 /t REG_DWORD /f + Disable unsupported hardware notifications 5 @@ -377,24 +379,46 @@ 6 + false cmd /C POWERCFG -H OFF Disable Hibernation 7 - msiexec /i E:\virtio-win-gt-x64.msi /qb! - Install VirtIO drivers + false + cmd /C POWERCFG -X -monitor-timeout-ac 0 + Disable monitor blanking 8 + reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f + Disable screensaver + + + 9 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 9 - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f + 10 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup + + 11 + reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f + Disable first-run experience in Edge + + + 12 + reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f + Show file extensions in Explorer + + + 13 + msiexec /i E:\virtio-win-gt-x64.msi /qb! + Install VirtIO drivers + diff --git a/assets/win2016-eval.xml b/assets/win2016-eval.xml index 7356e33..1c0bc0a 100644 --- a/assets/win2016-eval.xml +++ b/assets/win2016-eval.xml @@ -173,19 +173,19 @@ Windows for Docker - 1 + 1 - true - true - about:blank - about:blank + true + true + about:blank + about:blank - true - true - about:blank - about:blank + true + true + about:blank + about:blank 0 @@ -278,24 +278,46 @@ 4 + false cmd /C POWERCFG -H OFF Disable Hibernation 5 - msiexec /i E:\virtio-win-gt-x64.msi /qb! - Install VirtIO drivers + false + cmd /C POWERCFG -X -monitor-timeout-ac 0 + Disable monitor blanking 6 + reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f + Disable screensaver + + + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f + 8 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup + + 9 + reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f + Disable first-run experience in Edge + + + 10 + reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f + Show file extensions in Explorer + + + 11 + msiexec /i E:\virtio-win-gt-x64.msi /qb! + Install VirtIO drivers + diff --git a/assets/win2019-eval.xml b/assets/win2019-eval.xml index 4caa666..c3a4106 100644 --- a/assets/win2019-eval.xml +++ b/assets/win2019-eval.xml @@ -177,19 +177,19 @@ Windows for Docker - 1 + 1 - true - true - about:blank - about:blank + true + true + about:blank + about:blank - true - true - about:blank - about:blank + true + true + about:blank + about:blank 0 @@ -285,24 +285,46 @@ 4 + false cmd /C POWERCFG -H OFF Disable Hibernation 5 - msiexec /i E:\virtio-win-gt-x64.msi /qb! - Install VirtIO drivers + false + cmd /C POWERCFG -X -monitor-timeout-ac 0 + Disable monitor blanking 6 + reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f + Disable screensaver + + + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f + 8 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup + + 9 + reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f + Disable first-run experience in Edge + + + 10 + reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f + Show file extensions in Explorer + + + 11 + msiexec /i E:\virtio-win-gt-x64.msi /qb! + Install VirtIO drivers + diff --git a/assets/win2022-eval.xml b/assets/win2022-eval.xml index 7bebb6a..0799b24 100644 --- a/assets/win2022-eval.xml +++ b/assets/win2022-eval.xml @@ -177,19 +177,19 @@ Windows for Docker - 1 + 1 - true - true - about:blank - about:blank + true + true + about:blank + about:blank - true - true - about:blank - about:blank + true + true + about:blank + about:blank 0 @@ -285,24 +285,46 @@ 4 + false cmd /C POWERCFG -H OFF Disable Hibernation 5 - msiexec /i E:\virtio-win-gt-x64.msi /qb! - Install VirtIO drivers + false + cmd /C POWERCFG -X -monitor-timeout-ac 0 + Disable monitor blanking 6 + reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f + Disable screensaver + + + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 7 - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f + 8 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup + + 9 + reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f + Disable first-run experience in Edge + + + 10 + reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f + Show file extensions in Explorer + + + 11 + msiexec /i E:\virtio-win-gt-x64.msi /qb! + Install VirtIO drivers + diff --git a/assets/win7x64-ultimate.xml b/assets/win7x64-ultimate.xml index 933d82d..8559b3d 100644 --- a/assets/win7x64-ultimate.xml +++ b/assets/win7x64-ultimate.xml @@ -141,19 +141,19 @@ true - 1 + 1 - true - true - about:blank - about:blank + true + true + about:blank + about:blank - true - true - about:blank - about:blank + true + true + about:blank + about:blank 0 @@ -213,9 +213,52 @@ 3 + false + cmd /C wmic useraccount where name="Docker" set PasswordExpires=false + Password Never Expires + + + 4 + false cmd /C POWERCFG -H OFF Disable Hibernation + + 5 + false + cmd /C POWERCFG -X -monitor-timeout-ac 0 + Disable monitor blanking + + + 6 + reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f + Disable screensaver + + + 7 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f + Disable Network Discovery popup + + + 8 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f + Disable Network Discovery popup + + + 9 + reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f + Disable first-run experience in Edge + + + 10 + reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f + Show file extensions in Explorer + + + 11 + reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\NewNetworks" /v NetworkList /t REG_MULTI_SZ /d "" /f + Disable Network Discovery popup + diff --git a/assets/win81x64.xml b/assets/win81x64.xml index 1f94aa7..d4d6591 100644 --- a/assets/win81x64.xml +++ b/assets/win81x64.xml @@ -116,31 +116,31 @@ D:\viostor\w10\amd64 - D:\NetKVM\w8.1\amd64 + D:\NetKVM\w10\amd64 - D:\Balloon\w8.1\amd64 + D:\Balloon\w10\amd64 - D:\pvpanic\w8.1\amd64 + D:\pvpanic\w10\amd64 - D:\qemupciserial\w8.1\amd64 + D:\qemupciserial\w10\amd64 - D:\qxldod\w8.1\amd64 + D:\qxldod\w10\amd64 - D:\vioinput\w8.1\amd64 + D:\vioinput\w10\amd64 - D:\viorng\w8.1\amd64 + D:\viorng\w10\amd64 D:\vioscsi\w10\amd64 - D:\vioserial\w8.1\amd64 + D:\vioserial\w10\amd64 @@ -174,19 +174,19 @@ Windows for Docker - 1 + 1 - true - true - about:blank - about:blank + true + true + about:blank + about:blank - true - true - about:blank - about:blank + true + true + about:blank + about:blank 0 @@ -251,24 +251,52 @@ 3 + false + cmd /C wmic useraccount where name="Docker" set PasswordExpires=false + Password Never Expires + + + 4 + false cmd /C POWERCFG -H OFF Disable Hibernation - 4 - msiexec /i E:\virtio-win-gt-x64.msi /qb! - Install VirtIO drivers + 5 + false + cmd /C POWERCFG -X -monitor-timeout-ac 0 + Disable monitor blanking - 5 + 6 + reg.exe add "HKCU\Control Panel\Desktop" /v "ScreenSaveActive" /t REG_DWORD /d 0 /f + Disable screensaver + + + 7 reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff" /f Disable Network Discovery popup - 6 - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v HideWizard /t REG_DWORD /d 1 /f + 8 + reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Network\NetworkLocationWizard" /v "HideWizard" /t REG_DWORD /d 1 /f Disable Network Discovery popup + + 9 + reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f + Disable first-run experience in Edge + + + 10 + reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f + Show file extensions in Explorer + + + 11 + msiexec /i E:\virtio-win-gt-x64.msi /qb! + Install VirtIO drivers + diff --git a/readme.md b/readme.md index 85d87a7..6fcf6df 100644 --- a/readme.md +++ b/readme.md @@ -120,7 +120,7 @@ docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti * ### How do I perform a manual installation? - If you prefer to perform the installation manually, start a clean container with the following environment variable: + It's best to use the automatic installation, as it optimizes various settings for use with this container. However, if you insist on performing the installation manually, start a clean container with the following environment variable: ```yaml environment: