Win-Ruby-Dev is a Windows 7 VM provisioned using Vagrant, Puppet and Chocolatey. The VM comes with Ruby installed, but can be re-configured for any software development on Windows.
- Vagrant
- VirtualBox, VMWareFusion or Parallels
- A Windows VM image from ModernIE
-
Download the VM from ModernIE and boot it up
- I used the IE11/Win7 VM and named it 'IE11 - Win7'
-
Activate the Windows VM by running the following command:
slmgr /ato
-
Install Windows patches on the VM
-
Install the latest VirtualBox Guest Additions
-
Make sure the Windows VM network is set to "Work" (winrm whinges if this is not set)
-
Configure winrm in the Windows client by running the following command in an Admin command shell:
winrm quickconfig -q winrm set winrm/config/winrs @{MaxMemoryPerShellMB="512"} winrm set winrm/config @{MaxTimeoutms="1800000"} winrm set winrm/config/service @{AllowUnencrypted="true"} winrm set winrm/config/service/auth @{Basic="true"} sc config WinRM start= auto
-
Package the VM using the Vagrant package command:
vagrant package --base "IE11 - Win7" --output ie11_win7.box
-
Add the box to vagrant by running:
vagrant box add ie11_win7.box --name ie11_win7
-
Update the VagrantFile, configuring the following:
- Path to ie11_win7.box
- VM provider, if different from VirtualBox
- hostname, and other networking details (as required)
- shared file paths
-
Update the puppet/manifests/init.pp file
- Add or remove any Chocolatey packages as necessary
vagrant up