Compare commits

..

10 Commits
v1.01 ... v1.02

Author SHA1 Message Date
Kroese
1bef943281 feat: Local drivers (#18) 2024-01-15 05:33:59 +01:00
Kroese
32e6b2a77e docs: Title (#17) 2024-01-15 05:02:12 +01:00
Kroese
cabf74a0ba fix: Web GUI before install (#16) 2024-01-15 04:27:57 +01:00
Kroese
1a08bcea4a docs: Features (#15) 2024-01-15 04:11:08 +01:00
Kroese
5d32e036dc docs: Installation (#14) 2024-01-15 04:04:39 +01:00
Kroese
a958bb1dcf docs: Installation (#13) 2024-01-15 04:01:54 +01:00
Kroese
ed4f6f7f7f docs: Webbased viewer (#12) 2024-01-15 03:58:58 +01:00
Kroese
f1bcd5a9ee docs: Minimum requirements (#11) 2024-01-15 03:38:24 +01:00
Kroese
3943181075 docs: Installation steps (#10) 2024-01-15 03:31:58 +01:00
Kroese
9fd26e4145 docs: Readme (#9) 2024-01-14 20:52:15 +01:00
3 changed files with 34 additions and 17 deletions

View File

@@ -1,4 +1,4 @@
<h1 align="center">Windows for Docker<br />
<h1 align="center">Windows in Docker<br />
<div align="center">
<img src="https://github.com/dockur/windows/raw/master/.github/logo.png" title="Logo" style="max-width:100%;" width="128" />
</div>
@@ -16,7 +16,9 @@ Windows in a docker container.
## Features
- Multi-platform
- ISO downloader
- KVM acceleration
- Web-based viewer
## Usage
@@ -48,9 +50,29 @@ docker run -it --rm -e "VERSION=win11x64" -p 8006:8006 --device=/dev/kvm --cap-a
## FAQ
* ### How do I perform the installation?
- 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 webbrowser.
- Start the installation by clicking ```Install now```. On the next screen, press 'OK' when prompted for ```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``` in 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!
* ### How do I specify the Windows version?
You can modify the `VERSION` environment variable to specify the version you want:
You can modify the `VERSION` environment variable to specify the version of Windows you want to download:
```yaml
environment:
@@ -62,20 +84,19 @@ docker run -it --rm -e "VERSION=win11x64" -p 8006:8006 --device=/dev/kvm --cap-a
- ```win11x64``` (Windows 11)
- ```win10x64``` (Windows 10)
- ```win81x64``` (Windows 8.1)
- ```win7x64-ultimate``` (Windows 7 )
- ```win2016-eval``` (Windows Server 2016)
- ```win2019-eval``` (Windows Server 2019)
- ```win2022-eval``` (Windows Server 2022)
* ### How do I see the screen?
- ```win2019-eval``` (Windows Server 2019)
- ```win2016-eval``` (Windows Server 2016)
* ### How can I view the screen?
The container includes a web-based viewer, so you can visit [http://localhost:8006/](http://localhost:8006/) using any webbrowser to view the screen and interact with Windows via the keyboard/mouse.
Alternatively it is also possible to connect to port 5900 using a VNC client like RealVNC or many others.
This is mainly for use during installation, as afterwards you can use Remote Desktop, TeamViewer or any other software you prefer.
* ### How do I increase the amount of CPU or RAM?
By default, 2 CPU cores and 4 GB of RAM are allocated to the container.
By default, 2 CPU cores and 4 GB of RAM are allocated to the container, as that are the minimum requirements of Windows 11.
To increase this, add the following environment variables:

View File

@@ -7,6 +7,9 @@ echo " For support visit https://github.com/dockur/windows"
export DISPLAY=web
export BOOT_MODE=windows
ln -sfn /usr/share/novnc/vnc_lite.html /usr/share/novnc/index.html
websockify -D --web /usr/share/novnc/ 8006 localhost:5900 2>/dev/null
cd /run
. reset.sh # Initialize system
@@ -20,10 +23,6 @@ cd /run
trap - ERR
if [[ "${DISPLAY,,}" == "web" ]]; then
websockify -D --web /usr/share/novnc/ 8006 localhost:5900 2>/dev/null
fi
mkdir -p /tmp/emulated_tpm
swtpm socket -t -d --tpmstate dir=/tmp/emulated_tpm --ctrl type=unixio,path=/tmp/emulated_tpm/swtpm-sock --log level=1 --tpm2

View File

@@ -9,9 +9,6 @@ ARGUMENTS="-tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0 $
BASE="$VERSION.iso"
[ -f "$STORAGE/$BASE" ] && return 0
DEST="$STORAGE/drivers.img"
[ ! -f "$DEST" ] && cp /run/drivers.iso "$DEST"
rm -rf "$STORAGE/tmp"
mkdir -p "$STORAGE/tmp"
SCRIPT="$STORAGE/tmp/mido.sh"