https://github.com/baune8d/packer-windows-desktop
Build a basic Windows desktop image for use with Vagrant.
https://github.com/baune8d/packer-windows-desktop
hyper-v hyperv-iso packer packer-template parallels parallels-iso vagrant vagrant-boxes virtualbox virtualbox-iso vmware vmware-iso windows windows10 windows11
Last synced: 4 months ago
JSON representation
Build a basic Windows desktop image for use with Vagrant.
- Host: GitHub
- URL: https://github.com/baune8d/packer-windows-desktop
- Owner: Baune8D
- License: mit
- Created: 2017-07-15T23:50:15.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2024-08-30T20:49:27.000Z (almost 2 years ago)
- Last Synced: 2025-07-01T00:03:55.859Z (12 months ago)
- Topics: hyper-v, hyperv-iso, packer, packer-template, parallels, parallels-iso, vagrant, vagrant-boxes, virtualbox, virtualbox-iso, vmware, vmware-iso, windows, windows10, windows11
- Language: PowerShell
- Homepage:
- Size: 121 KB
- Stars: 47
- Watchers: 3
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Windows 11 Desktop Templates For Packer
Based on [https://github.com/StefanScherer/packer-windows](https://github.com/StefanScherer/packer-windows)
which is forked from [https://github.com/joefitzgerald/packer-windows](https://github.com/joefitzgerald/packer-windows)
Prebuilt images can be found here: [https://app.vagrantup.com/baunegaard](https://app.vagrantup.com/baunegaard)
This repository aims at creating Windows desktop boxes with a minimum of changes.
It will only change what is necessary for `packer` and `vagrant` to properly work.
## Setup
### Requires:
* `Packer` available in PATH
* **Windows 11 ISO** in `iso` folder: [See instructions](iso/README.md)
* (Hyper-V only) Either `xorriso`, `mkisofs`, `hdiutil` og `oscdimg` in PATH
* `oscdimg` can be installed through the [Windows ADK](https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install) or `choco install windows-adk-oscdimg`
**To use the default settings, execute from repo root:**
* Windows: `.\build_windows_11.bat `
* Linux / macOS: `./build_windows_11.sh `
`` Can be either `vmware`, `virtualbox`, `parallels` or `hyperv`.
## Information:
Settings can be modified in the `windows_11.pkr.hcl` files.
Shared variables can be found at the bottom of the file.
**NOTE** if you want to validate a checksum against your iso, change `iso_checksum` to match your iso file, e.g. `sha256:E239FF...`
The result output will be a box file named: `windows_11_.box`
Newest availble guest tools will be fetched and installed for `VMware` and `Virtualbox`.
For `Parallels`, the guest tools of the version you are building with is installed.
**Microsoft updates are enabled and all available Windows updates will be installed on build.**
#### The script will adjust the following settings for Packer and Vagrant compatibility:
* WinRM service configured and started automatically.
* 32 & 64 bit Powershell execution policy set to RemoteSigned.
* UAC disabled.
* Networks set to private.
* Hibernation disabled.
* Screensaver disabled.
* Automatic logon enabled.
* Default admin user: vagrant
* Default admin password: vagrant