diff --git a/Dockerfile b/Dockerfile
index 632a2cf..2c36463 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -9,12 +9,14 @@ RUN apt-get update \
curl \
novnc \
swtpm \
+ wimtools \
p7zip-full \
genisoimage \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY ./src /run/
+COPY ./assets /run/assets
ADD https://raw.githubusercontent.com/ElliotKillick/Mido/main/Mido.sh /run/mido.sh
ADD https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso /run/drivers.iso
diff --git a/assets/win10x64.xml b/assets/win10x64.xml
new file mode 100644
index 0000000..4485f30
--- /dev/null
+++ b/assets/win10x64.xml
@@ -0,0 +1,283 @@
+
+
+
+
+
+
+ en-US
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 300
+
+
+
+ 2
+ EFI
+ 100
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+
+
+
+
+
+
+
+ 0
+ 4
+
+ false
+
+
+
+
+ VK7JG-NPHTM-C97JM-9MPGT-3V66T
+
+ true
+
+ false
+
+
+
+
+ D:\viostor\w10\amd64
+
+
+ D:\NetKVM\w10\amd64
+
+
+ D:\Balloon\w10\amd64
+
+
+ D:\pvpanic\w10\amd64
+
+
+ D:\qemupciserial\w10\amd64
+
+
+ D:\qxldod\w10\amd64
+
+
+ D:\vioinput\w10\amd64
+
+
+ D:\viorng\w10\amd64
+
+
+ D:\vioscsi\w10\amd64
+
+
+ D:\vioserial\w10\amd64
+
+
+
+
+
+
+
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f
+
+
+ 2
+ netsh.exe advfirewall firewall set rule group="Remote Desktop" new enable=Yes
+
+
+ 3
+ reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
+
+
+ 4
+ fsutil.exe behavior set disableLastAccess 1
+
+
+ 5
+ reg.exe load "HKU\mount" "C:\Users\Default\NTUSER.DAT"
+
+
+ 6
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d 0 /f
+
+
+ 7
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d 0 /f
+
+
+ 8
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OEMPreInstalledAppsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 9
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 10
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d 0 /f
+
+
+ 11
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 12
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d 0 /f
+
+
+ 13
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d 0 /f
+
+
+ 14
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d 0 /f
+
+
+ 15
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338387Enabled" /t REG_DWORD /d 0 /f
+
+
+ 16
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f
+
+
+ 17
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f
+
+
+ 18
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d 0 /f
+
+
+ 19
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353698Enabled" /t REG_DWORD /d 0 /f
+
+
+ 20
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 21
+ reg.exe unload "HKU\mount"
+
+
+ 22
+ reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 0 /f
+
+
+
+
+
+
+
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+
+
+
+ Docker
+ Administrators
+
+
+ true
+
+
+
+
+ password
+ true
+
+
+
+ Docker
+ true
+ 1
+
+
+ true
+
+
+
+ 3
+ true
+ true
+
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f
+
+
+ 2
+ false
+ cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ Password Never Expires
+
+
+ 3
+ msiexec /i E:\virtio-win-gt-x64.msi /qb!
+ Install VirtIO drivers
+
+
+
+
+
diff --git a/assets/win11x64.xml b/assets/win11x64.xml
new file mode 100644
index 0000000..92e8b46
--- /dev/null
+++ b/assets/win11x64.xml
@@ -0,0 +1,283 @@
+
+
+
+
+
+
+ en-US
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 300
+
+
+
+ 2
+ EFI
+ 100
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+
+
+
+
+
+
+
+ 0
+ 4
+
+ false
+
+
+
+
+ VK7JG-NPHTM-C97JM-9MPGT-3V66T
+
+ true
+
+ false
+
+
+
+
+ D:\viostor\w11\amd64
+
+
+ D:\NetKVM\w11\amd64
+
+
+ D:\Balloon\w11\amd64
+
+
+ D:\pvpanic\w11\amd64
+
+
+ D:\qemupciserial\w11\amd64
+
+
+ D:\qxldod\w11\amd64
+
+
+ D:\vioinput\w11\amd64
+
+
+ D:\viorng\w11\amd64
+
+
+ D:\vioscsi\w11\amd64
+
+
+ D:\vioserial\w11\amd64
+
+
+
+
+
+
+
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f
+
+
+ 2
+ netsh.exe advfirewall firewall set rule group="Remote Desktop" new enable=Yes
+
+
+ 3
+ reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
+
+
+ 4
+ fsutil.exe behavior set disableLastAccess 1
+
+
+ 5
+ reg.exe load "HKU\mount" "C:\Users\Default\NTUSER.DAT"
+
+
+ 6
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d 0 /f
+
+
+ 7
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d 0 /f
+
+
+ 8
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OEMPreInstalledAppsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 9
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 10
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d 0 /f
+
+
+ 11
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 12
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d 0 /f
+
+
+ 13
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d 0 /f
+
+
+ 14
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d 0 /f
+
+
+ 15
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338387Enabled" /t REG_DWORD /d 0 /f
+
+
+ 16
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f
+
+
+ 17
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f
+
+
+ 18
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d 0 /f
+
+
+ 19
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353698Enabled" /t REG_DWORD /d 0 /f
+
+
+ 20
+ reg.exe add "HKU\mount\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f
+
+
+ 21
+ reg.exe unload "HKU\mount"
+
+
+ 22
+ reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 0 /f
+
+
+
+
+
+
+
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+
+
+
+ Docker
+ Administrators
+
+
+ true
+
+
+
+
+ password
+ true
+
+
+
+ Docker
+ true
+ 1
+
+
+ true
+
+
+
+ 3
+ true
+ true
+
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f
+
+
+ 2
+ false
+ cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ Password Never Expires
+
+
+ 3
+ msiexec /i E:\virtio-win-gt-x64.msi /qb!
+ Install VirtIO drivers
+
+
+
+
+
diff --git a/assets/win2016-eval.xml b/assets/win2016-eval.xml
new file mode 100644
index 0000000..5798d01
--- /dev/null
+++ b/assets/win2016-eval.xml
@@ -0,0 +1,241 @@
+
+
+
+
+
+ en-US
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+ en-US
+
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 300
+
+
+
+ 2
+ EFI
+ 100
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+
+
+
+
+
+
+
+
+ /IMAGE/NAME
+ Windows Server 2016 SERVERSTANDARD
+
+
+
+ 0
+ 4
+
+ OnError
+ false
+
+
+
+ true
+ Docker
+ Organization
+
+
+ false
+
+
+
+
+ D:\viostor\2k16\amd64
+
+
+ D:\NetKVM\2k16\amd64
+
+
+ D:\Balloon\2k16\amd64
+
+
+ D:\pvpanic\2k16\amd64
+
+
+ D:\qemupciserial\2k16\amd64
+
+
+ D:\qxldod\2k16\amd64
+
+
+ D:\vioinput\2k16\amd64
+
+
+ D:\viorng\2k16\amd64
+
+
+ D:\vioscsi\2k16\amd64
+
+
+ D:\vioserial\2k16\amd64
+
+
+
+
+
+
+ false
+
+
+
+
+ 1
+
+
+
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+ en-US
+
+
+ true
+
+
+ 0
+
+
+ true
+
+
+ true
+
+
+ false
+
+
+ 0
+
+
+
+
+ true
+ Remote Desktop
+ all
+
+
+
+
+
+
+
+
+
+ Docker
+ Administrators
+
+
+ true
+
+
+
+
+ password
+ true
+
+
+
+ Docker
+ true
+ 1
+
+
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ Home
+ 1
+ true
+ true
+
+ Organization
+ Owner
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f
+
+
+ 2
+ false
+ cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ Password Never Expires
+
+
+ 3
+ msiexec /i E:\virtio-win-gt-x64.msi /qb!
+ Install VirtIO drivers
+
+
+
+
+
diff --git a/assets/win2019-eval.xml b/assets/win2019-eval.xml
new file mode 100644
index 0000000..3353ef8
--- /dev/null
+++ b/assets/win2019-eval.xml
@@ -0,0 +1,241 @@
+
+
+
+
+
+ en-US
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+ en-US
+
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 300
+
+
+
+ 2
+ EFI
+ 100
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+
+
+
+
+
+
+
+
+ /IMAGE/NAME
+ Windows Server 2019 SERVERSTANDARD
+
+
+
+ 0
+ 4
+
+ OnError
+ false
+
+
+
+ true
+ Docker
+ Organization
+
+
+ false
+
+
+
+
+ D:\viostor\2k19\amd64
+
+
+ D:\NetKVM\2k19\amd64
+
+
+ D:\Balloon\2k19\amd64
+
+
+ D:\pvpanic\2k19\amd64
+
+
+ D:\qemupciserial\2k19\amd64
+
+
+ D:\qxldod\2k19\amd64
+
+
+ D:\vioinput\2k19\amd64
+
+
+ D:\viorng\2k19\amd64
+
+
+ D:\vioscsi\2k19\amd64
+
+
+ D:\vioserial\2k19\amd64
+
+
+
+
+
+
+ false
+
+
+
+
+ 1
+
+
+
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+ en-US
+
+
+ true
+
+
+ 0
+
+
+ true
+
+
+ true
+
+
+ false
+
+
+ 0
+
+
+
+
+ true
+ Remote Desktop
+ all
+
+
+
+
+
+
+
+
+
+ Docker
+ Administrators
+
+
+ true
+
+
+
+
+ password
+ true
+
+
+
+ Docker
+ true
+ 1
+
+
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ Home
+ 1
+ true
+ true
+
+ Organization
+ Owner
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f
+
+
+ 2
+ false
+ cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ Password Never Expires
+
+
+ 3
+ msiexec /i E:\virtio-win-gt-x64.msi /qb!
+ Install VirtIO drivers
+
+
+
+
+
diff --git a/assets/win2022-eval.xml b/assets/win2022-eval.xml
new file mode 100644
index 0000000..dd51baa
--- /dev/null
+++ b/assets/win2022-eval.xml
@@ -0,0 +1,241 @@
+
+
+
+
+
+ en-US
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+ en-US
+
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 300
+
+
+
+ 2
+ EFI
+ 100
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+
+
+
+
+
+
+
+
+ /IMAGE/NAME
+ Windows Server 2022 SERVERSTANDARD
+
+
+
+ 0
+ 4
+
+ OnError
+ false
+
+
+
+ true
+ Docker
+ Organization
+
+
+ false
+
+
+
+
+ D:\viostor\2k22\amd64
+
+
+ D:\NetKVM\2k22\amd64
+
+
+ D:\Balloon\2k22\amd64
+
+
+ D:\pvpanic\2k22\amd64
+
+
+ D:\qemupciserial\2k22\amd64
+
+
+ D:\qxldod\2k22\amd64
+
+
+ D:\vioinput\2k22\amd64
+
+
+ D:\viorng\2k22\amd64
+
+
+ D:\vioscsi\2k22\amd64
+
+
+ D:\vioserial\2k22\amd64
+
+
+
+
+
+
+ false
+
+
+
+
+ 1
+
+
+
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+ en-US
+
+
+ true
+
+
+ 0
+
+
+ true
+
+
+ true
+
+
+ false
+
+
+ 0
+
+
+
+
+ true
+ Remote Desktop
+ all
+
+
+
+
+
+
+
+
+
+ Docker
+ Administrators
+
+
+ true
+
+
+
+
+ password
+ true
+
+
+
+ Docker
+ true
+ 1
+
+
+ true
+
+
+
+ true
+ true
+ true
+ true
+ true
+ Home
+ 1
+ true
+ true
+
+ Organization
+ Owner
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f
+
+
+ 2
+ false
+ cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ Password Never Expires
+
+
+ 3
+ msiexec /i E:\virtio-win-gt-x64.msi /qb!
+ Install VirtIO drivers
+
+
+
+
+
diff --git a/assets/win7x64-ultimate.xml b/assets/win7x64-ultimate.xml
new file mode 100644
index 0000000..d4a555e
--- /dev/null
+++ b/assets/win7x64-ultimate.xml
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+ en-US
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 300
+
+
+
+ 2
+ EFI
+ 100
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+
+
+
+
+ 0
+ 4
+
+ false
+
+
+
+
+ FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
+ Never
+
+ true
+ Docker
+
+
+ false
+
+
+
+
+ D:\viostor\w7\amd64
+
+
+ D:\NetKVM\w7\amd64
+
+
+ D:\Balloon\w7\amd64
+
+
+ D:\pvpanic\w7\amd64
+
+
+ D:\qemupciserial\w7\amd64
+
+
+ D:\qxldod\w7\amd64
+
+
+ D:\vioinput\w7\amd64
+
+
+ D:\viorng\w7\amd64
+
+
+ D:\vioscsi\w7\amd64
+
+
+ D:\vioserial\w7\amd64
+
+
+
+
+
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+ true
+
+
+ 0
+
+
+
+
+
+
+
+ Docker
+ Administrators
+
+
+ true
+
+
+
+
+ password
+ true
+
+
+
+ Docker
+ true
+ 1
+
+
+ true
+
+
+
+ true
+ true
+ true
+ true
+ Home
+ 1
+ true
+ true
+
+
+ Docker
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f
+
+
+ 2
+ false
+ cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ Password Never Expires
+
+
+ 3
+ msiexec /i E:\virtio-win-gt-x64.msi /qb!
+ Install VirtIO drivers
+
+
+
+
+
diff --git a/assets/win81x64.xml b/assets/win81x64.xml
new file mode 100644
index 0000000..9354c80
--- /dev/null
+++ b/assets/win81x64.xml
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+ en-US
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+
+
+ 0
+ true
+
+
+
+ 1
+ Primary
+ 300
+
+
+
+ 2
+ EFI
+ 100
+
+
+
+ 3
+ MSR
+ 128
+
+
+
+ 4
+ Primary
+ true
+
+
+
+
+
+ 1
+ 1
+
+ NTFS
+
+
+
+ 2
+ 2
+
+ FAT32
+
+
+
+ 3
+ 3
+
+
+
+ 4
+ 4
+
+ C
+ NTFS
+ DE94BBA4-06D1-4D40-A16A-BFD50179D6AC
+
+
+
+
+
+
+
+ 0
+ 4
+
+ false
+
+
+
+
+ GCRJD-8NW9H-F2CDX-CCM8D-9D6T9
+ Never
+
+ true
+ Docker
+
+
+ false
+
+
+
+
+ D:\viostor\w8.1\amd64
+
+
+ D:\NetKVM\w8.1\amd64
+
+
+ D:\Balloon\w8.1\amd64
+
+
+ D:\pvpanic\w8.1\amd64
+
+
+ D:\qemupciserial\w8.1\amd64
+
+
+ D:\qxldod\w8.1\amd64
+
+
+ D:\vioinput\w8.1\amd64
+
+
+ D:\viorng\w8.1\amd64
+
+
+ D:\vioscsi\w8.1\amd64
+
+
+ D:\vioserial\w8.1\amd64
+
+
+
+
+
+
+ 0409:00000409
+ en-US
+ en-US
+ en-US
+
+
+ true
+
+
+ 0
+
+
+
+
+
+
+
+ Docker
+ Administrators
+
+
+ true
+
+
+
+
+ password
+ true
+
+
+
+ Docker
+ true
+ 1
+
+
+ true
+
+
+
+ true
+ true
+ true
+ true
+ Home
+ 1
+ true
+ true
+
+
+ Docker
+
+
+ 1
+ reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f
+
+
+ 2
+ false
+ cmd /C wmic useraccount where name="Docker" set PasswordExpires=false
+ Password Never Expires
+
+
+ 3
+ msiexec /i E:\virtio-win-gt-x64.msi /qb!
+ Install VirtIO drivers
+
+
+
+
+
diff --git a/readme.md b/readme.md
index bd9bd84..c046097 100644
--- a/readme.md
+++ b/readme.md
@@ -50,29 +50,21 @@ docker run -it --rm -e "VERSION=win11x64" -p 8006:8006 --device=/dev/kvm --cap-a
## FAQ
- * ### How do I perform the installation?
+ * ### How do I use it?
- - Start the container and wait until the ISO download is completed. If needed, you can view this progress in the Docker log. Wait until you see the message ```BdsDxe: starting Boot```.
+ Very simple! These are the steps:
+
+ - Start the container and get some coffee, it will start downloading the ISO.
- - Connect to port 8006 of the container in your web browser.
+ - Connect to port 8006 of the container in your web browser and wait untill you see the screen.
- - Start the installation by clicking ```Install now```. On the next screen, press 'OK' when prompted to ```Load driver``` and select the ```VirtIO SCSI``` driver from the list that matches your Windows version. So for Windows 11, select ```D:\amd64\w11\vioscsi.inf``` and click 'Next'.
+ - Sit back and relax while all the magic happens, the whole installation will be performed fully automatic.
- - Accept the license agreement and select your preferred Windows edition, like Home or Pro.
-
- - Choose ```Custom: Install Windows only (advanced)```, and click ```Load driver``` on the next screen. Select 'Browse' and navigate to the ```D:\NetKVM\w11\amd64``` folder, and click 'OK'. Select the ```VirtIO Ethernet Adapter``` from the list and click 'Next'.
-
- - Select 'Drive 0' and click 'Next'.
-
- - Wait until Windows finishes copying files and completes the installation.
-
- - Once you see your desktop, open File Explorer and navigate to the CD-ROM drive (D:). Double-click on ```virtio-win-gt-x64``` and proceed to install the VirtIO drivers.
-
- - Now your Windows installation is ready for use. Enjoy it, and don't forget to star this repo!
+ - Once you see your desktop, your Windows installation is ready for use. Enjoy it, and don't forget to star this repo!
* ### How do I specify the Windows version?
- You can modify the `VERSION` environment variable to specify the version of Windows you want to download:
+ You can modify the `VERSION` environment variable in order to specify the version of Windows you want to download:
```yaml
environment:
@@ -88,11 +80,9 @@ docker run -it --rm -e "VERSION=win11x64" -p 8006:8006 --device=/dev/kvm --cap-a
- ```win2019-eval``` (Windows Server 2019)
- ```win2016-eval``` (Windows Server 2016)
- * ### How can I view the screen?
+ * ### How do I use a custom ISO file?
- The container includes a web-based viewer, so you can visit [http://localhost:8006/](http://localhost:8006/) using any web browser to view the screen and interact with Windows via the keyboard or mouse.
-
- This is mainly for use during installation, as afterwards you can use Remote Desktop, TeamViewer or any other software you prefer.
+ You can supply your own ISO file by naming it ```custom.iso``` and placing it in the ```/storage``` folder. Then follow the same steps as for [manual installation](https://github.com/dockur/windows/tree/dev?tab=readme-ov-file#how-do-i-perform-a-manual-installation).
* ### How do I increase the amount of CPU or RAM?
@@ -139,6 +129,41 @@ docker run -it --rm -e "VERSION=win11x64" -p 8006:8006 --device=/dev/kvm --cap-a
If you receive an error from `kvm-ok` indicating that KVM acceleration can't be used, check the virtualization settings in the BIOS.
+ * ### How do I view the screen?
+
+ The container includes a web-based viewer, so you can visit [http://localhost:8006/](http://localhost:8006/) using any web browser to view the screen and interact with Windows via the keyboard or mouse.
+
+ This is mainly for use during installation, as afterwards you can use Remote Desktop, TeamViewer or any other software you prefer.
+
+ * ### How do I perform a manual installation?
+
+ If you prefer to perform the installation manually in order to customize some options, add the following environment variable:
+
+ ```yaml
+ environment:
+ ATTENDED: "Y"
+ ```
+
+ Then follow these steps:
+
+ - Start the container and wait until the ISO download is completed. If needed, you can view this progress in the Docker log. Wait until you see the message ```BdsDxe: starting Boot```.
+
+ - Connect to port 8006 of the container in your web browser, you will see the Windows installation screen.
+
+ - Start the installation by clicking ```Install now```. On the next screen, press 'OK' when prompted to ```Load driver``` and select the ```VirtIO SCSI``` driver from the list that matches your Windows version. So for Windows 11, select ```D:\amd64\w11\vioscsi.inf``` and click 'Next'.
+
+ - Accept the license agreement and select your preferred Windows edition, like Home or Pro.
+
+ - Choose ```Custom: Install Windows only (advanced)```, and click ```Load driver``` on the next screen. Select 'Browse' and navigate to the ```D:\NetKVM\w11\amd64``` folder, and click 'OK'. Select the ```VirtIO Ethernet Adapter``` from the list and click 'Next'.
+
+ - Select 'Drive 0' and click 'Next'.
+
+ - Wait until Windows finishes copying files and completes the installation.
+
+ - Once you see your desktop, open File Explorer and navigate to the CD-ROM drive (D:). Double-click on ```virtio-win-gt-x64``` and proceed to install the VirtIO drivers.
+
+ - Now your Windows installation is ready for use. Enjoy it, and don't forget to star this repo!
+
* ### Is this project legal?
Yes, this project contains only open-source code and does not distribute any copyrighted material. Neither does it try to circumvent any copyright protection measures. So under all applicable laws, this project would be considered legal.
diff --git a/src/install.sh b/src/install.sh
index 20f6960..97265eb 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -Eeuo pipefail
+: "${ATTENDED:="N"}"
: "${VERSION:="win11x64"}"
ARGUMENTS="-chardev socket,id=chrtpm,path=/tmp/emulated_tpm/swtpm-sock $ARGUMENTS"
@@ -32,11 +33,23 @@ if [ ! -f "$TMP/$BASE" ]; then
fi
-info "Customizing ISO to remove keypress requirement during boot..."
+info "Preparing ISO image for installation..."
DIR="$TMP/unpack"
7z x "$TMP/$BASE" -o"$DIR"
-genisoimage -b boot/etfsboot.com -no-emul-boot -c BOOT.CAT -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames -v -V "$VERSION" -udf -boot-info-table -eltorito-alt-boot -eltorito-boot efi/microsoft/boot/efisys_noprompt.bin -no-emul-boot -o "$TMP/$BASE.tmp" -allow-limited-size "$DIR"
+
+if [[ "$ATTENDED" != [Yy1]* ]]; then
+ if [ -f "/run/assets/$VERSION.xml" ]; then
+
+ wimlib-imagex update "$DIR/sources/boot.wim" 2 \
+ --command "add /run/assets/$VERSION.xml /autounattend.xml"
+
+ fi
+fi
+
+genisoimage -b boot/etfsboot.com -no-emul-boot -c BOOT.CAT -iso-level 4 -J -l -D -N -joliet-long -relaxed-filenames \
+ -v -V "$VERSION" -udf -boot-info-table -eltorito-alt-boot -eltorito-boot efi/microsoft/boot/efisys_noprompt.bin \
+ -no-emul-boot -o "$TMP/$BASE.tmp" -allow-limited-size "$DIR"
mv "$TMP/$BASE.tmp" "$STORAGE/$BASE"
rm -rf "$TMP"