Commit d449d2b3 authored by Stefan Scherer's avatar Stefan Scherer

Add vm_name, add hyperv defaults

parent 40968df1
......@@ -58,4 +58,10 @@ Vagrant.configure("2") do |config|
v.vmx["vhv.enable"] = "TRUE"
v.vmx["hypervisor.cpuid.v0"] = "FALSE"
end
config.vm.provider "hyperv" do |v|
v.cpus = 2
v.maxmemory = 2048
v.differencing_disk = true
end
end
......@@ -30,6 +30,7 @@
"enable_secure_boot":true
},
{
"vm_name":"WindowsServer2016TP5Docker",
"type": "vmware-iso",
"communicator": "winrm",
"iso_url": "{{user `iso_url`}}",
......@@ -65,6 +66,7 @@
}
},
{
"vm_name":"WindowsServer2016TP5Docker",
"type": "virtualbox-iso",
"communicator": "winrm",
"iso_url": "{{user `iso_url`}}",
......@@ -139,8 +141,7 @@
"type": "windows-shell",
"scripts": [
"./scripts/uac-enable.bat",
"./scripts/compile-dotnet-assemblies.bat",
"./scripts/compact.bat"
"./scripts/compile-dotnet-assemblies.bat"
]
}
],
......
{
"builders": [
{
"type": "vmware-vmx",
"source_path": "{{user `home`}}/.vagrant.d/boxes/windows_2016_tp5_docker/0/vmware_desktop/packer-vmware-iso.vmx",
"communicator": "winrm",
"headless": false,
"boot_wait": "0",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "6h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2",
"scsi0.virtualDev": "lsisas1068",
"vhv.enable": "TRUE"
}
}
],
"provisioners": [
{
"type": "windows-shell",
"execute_command": "{{ .Vars }} cmd /c \"{{ .Path }}\"",
"scripts": [
"./scripts/chocolatey.bat"
]
},
{
"type": "powershell",
"execute_command": "powershell \"& { {{.Vars}}{{.Path}}; exit $LastExitCode}\"",
"scripts": [
"./scripts/docker/remove-docker-key-json.ps1"
]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "windows_2016_docker_{{.Provider}}_choco.box",
"vagrantfile_template": "vagrantfile-windows_2016_docker.template"
}
],
"variables": {
"home": "{{env `HOME`}}"
}
}
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