Skip to content

tingyutech/universal-windows-image

Repository files navigation

Univeral Windows Image

Build Windows CI Image automated, painless, and reproducible.

Download Files

  • wim\install.wim from windows server 2022 iso X:\Sources\install.wim
  • CustomResources\SxS\Microsoft-Windows-NetFx3-OnDemand-Package~31bf3856ad364e35~amd64~~.cab from windows server 2022 iso X:\Sources\SxS
  • CustomResources\OpenSSH-Win64-v9.2.2.0.msi from github
  • 3rdparty\CloudbaseInitSetup_x64.msi from cloudbase
  • 3rdparty\packer.exe from hashicorp
  • 3rdparty\virtio-win-0.1.229.iso from fedora
  • 3rdparty\zapfree.exe from github

Build

You have to run these scripts on a Windows machine which has Hyper-V enabled. Nested Virtualization is OK.

For the very first time before you can use packer:

.\3rdparty\packer.exe init .\config.pkr.hcl

For the every time when you have changed your wim:

.\build-gold-image.bat

For the every time when you have changed custom resources:

.\build-online-image.bat
.\covert-to-packer-base-vhdx.bat

And then for the every time when you have changed pakcer scripts:

.\build-packer.bat

The built image will be located at output-vm\Virtual Hard Disks\packer-vm.vhdx.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published