deploy-win10-from-linux/README.md

48 lines
1.9 KiB
Markdown
Raw Normal View History

2021-07-13 19:55:29 +03:00
# Deploy Windows 10 from Linux
This is a simple Python script that installs Windows 10 to a target disk from a running
Linux system (i.e., without booting from Windows installation ISO and without using Windows PE).
## Use cases
* Mass-install Windows workstations from a PXE-booted Linux environment.
(Here it may be useful to convert install.wim to a pipable WIM file
and then you can stream it e.g. using HTTP from a server).
* Provision VMs with Windows 10 with a single command, without any
intermediate steps with mounting ISOs, changing boot order and the like.
## Limitations
* Currently supports only BIOS boot, not UEFI. But this should be easy
to implement.
2021-07-14 12:22:25 +03:00
## Additional resources
* [Create a windows system from scratch using Linux][from-scratch] -- forum thread at reboot.pro
that discusses attempts to achieve exactly this
* [NTDEV YouTube channel][NTDEV] -- videos from crazy Windows experiments and hacks
### Windows boot process
2021-07-14 12:45:53 +03:00
* [Windows Vista-10 Startup Process][nt6start] summarized on Wikipedia
2021-07-14 12:22:25 +03:00
* [Windows 7-10 Master Boot Record][MBR] -- disassembly and analysis
* [Windows 8-10 NTFS Volume Boot Record][VBR] -- disassembly and analysis
#### BCD database
2021-07-14 12:45:53 +03:00
* [libbcd0][] -- Python library for reading/writing BCD databases
* [BCD notes, observations, experiments][bcdnotes]
2021-07-14 12:22:25 +03:00
### Windows installation process
* [Configuration passes in unattend.xml][passes]
[MBR]: https://thestarman.pcministry.com/asm/mbr/W7MBR.htm
[VBR]: https://thestarman.pcministry.com/asm/mbr/W8VBR.htm|
[from-scratch]: http://reboot.pro/topic/20468-create-a-windows-system-from-scratch-using-linux/
[passes]: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/how-configuration-passes-work
[NTDEV]: https://www.youtube.com/c/NTDEV/videos
2021-07-14 12:45:53 +03:00
[libbcd0]: https://github.com/wodny/libbcd0/
[bcdnotes]: https://thestarman.pcministry.com/asm/mbr/BCD.htm
[nt6start]: https://en.wikipedia.org/wiki/Windows_NT_6_startup_process