Commit 23c4f83a authored by Patrick Lang's avatar Patrick Lang

trying gen1 VM instead to work around differences in autounattend.xml

parent 806d0729
......@@ -14,3 +14,4 @@
/output/
*.webm
tmp/
/issues/
......@@ -81,6 +81,24 @@ Doing so will give you hours back in your day, which is a good thing.
These boxes use WinRM. There is no OpenSSH installed.
### (Experimental) Hyper-V Support
If you are running Windows 10 Insider Preview, then you can also use these packerfiles to build a Hyper-V virtual machine:
This requires @taliesens [fork of Packer](https://github.com/mitchellh/packer/pull/2576) with Hyper-V support. The linked PR also has binaries available ex: https://dl.bintray.com/taliesins/Packer/Packer.1.0.0.104-HyperV.nupkg
To use these, first build the ISOs:
```
.\build_hyperv_isos.ps1
```
Then run Packer:
```
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
......
{
"builders": [
{
"vm_name":"WindowsServer2016TP5",
"type": "hyperv-iso",
"disk_size": 41440,
"floppy_files": [],
"http_directory": "./windows/common/http/",
"boot_wait": "0s",
"boot_command": [
"a<enter><wait>a<enter><wait>a<enter><wait>a<enter>"
],
"headless": false,
"guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"secondary_iso_images": [
"./windowsserver2016answer.iso"
],
"communicator":"winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout" : "4h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"ram_size_mb": 2048,
"cpu": 2,
"switch_name":"{{user `hyperv_switchname`}}",
"enable_secure_boot":true
},
{
"type": "vmware-iso",
"communicator": "winrm",
......@@ -110,6 +138,7 @@
"iso_url": "https://aka.ms/tp5/serveriso",
"iso_checksum_type": "md5",
"iso_checksum": "6417ba460f95bd91ded05dfacd553783",
"autounattend": "./answer_files/2016/Autounattend.xml"
"autounattend": "./answer_files/2016/Autounattend.xml",
"hyperv_switchname": "{{env `hyperv_switchname`}}"
}
}
{
"builders": [
{
"vm_name":"WindowsServer2016TP5Core",
"type": "hyperv-iso",
"disk_size": 41440,
"floppy_files": [],
"http_directory": "./windows/common/http/",
"boot_wait": "0s",
"boot_command": [
"a<enter><wait>a<enter><wait>a<enter><wait>a<enter>"
],
"headless": false,
"guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"secondary_iso_images": [
"./windowsserver2016answer.iso"
],
"communicator":"winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout" : "4h",
"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
},
{
"type": "vmware-iso",
"communicator": "winrm",
......
{
"builders": [
{
"vm_name":"WindowsServer2016TP5Docker",
"type": "hyperv-iso",
"disk_size": 41440,
"floppy_files": [],
"http_directory": "./windows/common/http/",
"boot_wait": "0s",
"boot_command": [
"a<enter><wait>a<enter><wait>a<enter><wait>a<enter>"
],
"headless": false,
"guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
"secondary_iso_images": [
"./windowsserver2016dockeranswer.iso"
],
"communicator":"winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout" : "4h",
"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
},
{
"type": "vmware-iso",
"communicator": "winrm",
......
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