Commit 7e13d479 authored by Patrick Lang's avatar Patrick Lang

Switching to generation 1 VMs to use floppy

parent 23c4f83a
......@@ -39,6 +39,15 @@ The `Autounattend.xml` files are configured to work correctly with trial ISOs (w
If you are going to configure your VM as a KMS client, you can use the product keys at http://technet.microsoft.com/en-us/library/jj612867.aspx. These are the default values used in the `Key` element.
### Using existing ISOs
If you have already downloaded the ISOs or would like to override them, set these additional variables:
- iso_url - path to existing ISO
- iso_checksum - md5sum of existing ISO (if different)
```
packer build -var 'iso_url=./server2016tp5.iso' .\windows_2016.json
```
### Windows Updates
The scripts in this repo will install all Windows updates – by default – during Windows Setup. This is a _very_ time consuming process, depending on the age of the OS and the quantity of updates released since the last service pack. You might want to do yourself a favor during development and disable this functionality, by commenting out the `WITH WINDOWS UPDATES` section and uncommenting the `WITHOUT WINDOWS UPDATES` section in `Autounattend.xml`:
......@@ -99,6 +108,8 @@ packer build -var 'hyperv_switchname=Wifi' .\windows_2016.json
Be sure to set hyperv_switchname to an external Hyper-V switch
### Using .box Files With Vagrant
The generated box files include a Vagrantfile template that is suitable for
......
......@@ -15,9 +15,15 @@
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"secondary_iso_images": [
"./windowsserver2016answer.iso"
],
"floppy_files": [
"./answer_files/2016/Autounattend.xml",
"./floppy/WindowsPowershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/disable-winrm.ps1",
"./scripts/enable-winrm.ps1",
"./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1"
],
"communicator":"winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
......
......@@ -15,9 +15,13 @@
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"secondary_iso_images": [
"./windowsserver2016answer.iso"
],
"floppy_files": [
"{{user `autounattend`}}",
"./scripts/disable-winrm.ps1",
"./scripts/enable-winrm.ps1",
"./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1"
],
"communicator":"winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
......@@ -25,7 +29,6 @@
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"ram_size_mb": 2048,
"cpu": 2,
"generation": 2,
"switch_name":"{{user `hyperv_switchname`}}",
"enable_secure_boot":true
},
......
......@@ -15,9 +15,15 @@
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"secondary_iso_images": [
"./windowsserver2016dockeranswer.iso"
],
"floppy_files": [
"./answer_files/2016/Autounattend.xml",
"./floppy/WindowsPowershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/disable-winrm.ps1",
"./scripts/docker/enable-winrm.ps1",
"./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1"
],
"communicator":"winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
......@@ -25,7 +31,6 @@
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"ram_size_mb": 2048,
"cpu": 2,
"generation": 2,
"switch_name":"{{user `hyperv_switchname`}}",
"enable_secure_boot":true
},
......
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