Commit 900088fa authored by Stefan Scherer's avatar Stefan Scherer

Update README for my boxes

parent 6630db2f
# Windows Templates for Packer
# My Retina Windows Templates for Packer
### Introduction
This repository contains Windows templates that can be used to create boxes for Vagrant using Packer ([Website]( ([Github](
This repository contains Windows templates that can be used to create boxes for Vagrant using Packer ([Website]( ([Github](
This repo began by borrowing bits from the VeeWee Windows templates ( Modifications were made to work with Packer and the VMware Fusion / VirtualBox providers for Packer and Vagrant.
This repo is a modified fork of the popular [joefitzgerald/packer-windows]( repo.
Some of my enhancements are:
* Support of fullscreen Retina display on a MacBook Pro.
* WinRM, no more OpenSSH
* PowerShell attached to taskbar
### Packer Version
[Packer]( `0.5.1` or greater is required.
[Packer]( `0.8.6` or greater is required.
### Windows Versions
The following Windows versions are known to work (built with VMware Fusion 6.0.4 and VirtualBox 4.3.12):
The following Windows versions are known to work (built with VMware Fusion 7.1.3):
* Windows 2012 R2
* Windows 2012 R2 Core
* Windows 2012
* Windows 2008 R2
* Windows 2008 R2 Core
* Windows 10
* Windows 8.1
* Windows 7
You may find other packer template files, but older versions of Windows doesn't work so nice with a Retina display.
### Windows Editions
......@@ -74,46 +75,16 @@ The scripts in this repo will install all Windows updates – by default – dur
Doing so will give you hours back in your day, which is a good thing.
### OpenSSH / WinRM
Currently, [Packer]( has a single communicator that uses SSH. This means we need an SSH server installed on Windows - which is not optimal as we could use WinRM to communicate with the Windows VM. In the short term, everything works well with SSH; in the medium term, work is underway on a WinRM communicator for Packer.
If you have serious objections to OpenSSH being installed, you can always add another stage to your build pipeline:
* Build a base box using Packer
* Create a Vagrantfile, use the base box from Packer, connect to the VM via WinRM (using the [vagrant-windows]( plugin) and disable the 'sshd' service or uninstall OpenSSH completely
* Perform a Vagrant run and output a .box file
It's worth mentioning that many Chef cookbooks will not work properly through Cygwin's SSH environment on Windows. Specifically, packages that need access to environment-specific configurations such as the `PATH` variable, will fail. This includes packages that use the Windows installer, `msiexec.exe`.
### WinRM
It's currently recommended that you add a second step to your pipeline and use Vagrant to install your packages through Chef.
These boxes use WinRM. There is no OpenSSH installed.
### Using .box Files With Vagrant
The generated box files include a Vagrantfile template that is suitable for
use with Vagrant 1.6.2+, which includes native support for Windows and uses
use with Vagrant 1.7.4+, which includes native support for Windows and uses
WinRM to communicate with the box.
### Getting Started
Trial versions of Windows 2008 R2 / 2012 / 2012 R2 are used by default. These images can be used for 180 days without activation.
Alternatively – if you have access to [MSDN]( or [TechNet]( – you can download retail or volume license ISO images and place them in the `iso` directory. If you do, you should update the relevent `.json` file, setting `iso_url` to `./iso/<path to your iso>.iso` and `iso_checksum` to `<the md5 of your iso>`. For example, to use the Windows 2008 R2 (With SP1) retail ISO:
1. Download the Windows Server 2008 R2 with Service Pack 1 (x64) - DVD (English) ISO (`en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso`)
2. Verify that `en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso` has an MD5 hash of `8dcde01d0da526100869e2457aafb7ca` (Microsoft lists a SHA1 hash of `d3fd7bf85ee1d5bdd72de5b2c69a7b470733cd0a`, which is equivalent)
3. Clone this repo to a local directory
4. Move `en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso` to the `iso` directory
5. Update `windows_2008_r2.json`, setting `iso_url` to `./iso/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso`
6. Update `windows_2008_r2.json`, setting `iso_checksum` to `8dcde01d0da526100869e2457aafb7ca`
7. Run `packer build windows_2008_r2.json`
### Contributing
Pull requests welcomed.
### Acknowledgements
[CloudBees]( is providing a hosted [Jenkins]( master through their CloudBees FOSS program. We also use their [On-Premise Executor]( feature to connect a physical [Mac Mini Server]( running VMware Fusion.
![Powered By CloudBees]( "Powered By CloudBees")![Built On DEV@Cloud]( "Built On DEV@Cloud")
Pull requests welcomed, but normally should go to Joe's repo.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment