Unverified Commit 54b35177 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Add vmx_remove_ethernet_interfaces

parent c44f74b1
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"vnc_port_min": 5900, "vnc_port_min": 5900,
"vnc_port_max": 5980, "vnc_port_max": 5980,
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"./scripts/win-updates.ps1", "./scripts/win-updates.ps1",
"./scripts/openssh.ps1" "./scripts/openssh.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"ssh_wait_timeout": "2h", "ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows7srv-64", "guest_os_type": "windows7srv-64",
"tools_upload_flavor": "windows", "tools_upload_flavor": "windows",
"disk_size": 61440, "disk_size": 61440,
"vnc_port_min": 5900, "vnc_port_min": 5900,
"vnc_port_max": 5980, "vnc_port_max": 5980,
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
"./scripts/win-updates.ps1", "./scripts/win-updates.ps1",
"./scripts/openssh.ps1" "./scripts/openssh.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
"./scripts/win-updates.ps1", "./scripts/win-updates.ps1",
"./scripts/openssh.ps1" "./scripts/openssh.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
"./scripts/unattend.xml", "./scripts/unattend.xml",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
"./scripts/win-updates.ps1", "./scripts/win-updates.ps1",
"./scripts/openssh.ps1" "./scripts/openssh.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
"./scripts/sysprep.bat", "./scripts/sysprep.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
{ {
"builders": [ "builders": [
{ {
"vm_name":"WindowsServer2016CoreDocker", "vm_name": "WindowsServer2016CoreDocker",
"type": "hyperv-iso", "type": "hyperv-iso",
"disk_size": 41440, "disk_size": 41440,
"boot_wait": "0s", "boot_wait": "0s",
"guest_additions_mode":"disable", "guest_additions_mode": "disable",
"iso_url": "{{user `iso_url`}}", "iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}", "iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}", "iso_checksum": "{{user `iso_checksum`}}",
...@@ -16,16 +16,17 @@ ...@@ -16,16 +16,17 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"communicator":"winrm", "communicator": "winrm",
"winrm_username": "vagrant", "winrm_username": "vagrant",
"winrm_password": "vagrant", "winrm_password": "vagrant",
"winrm_timeout" : "{{user `winrm_timeout`}}", "winrm_timeout": "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command":
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"ram_size": 2048, "ram_size": 2048,
"cpu": 2, "cpu": 2,
"switch_name":"{{user `hyperv_switchname`}}", "switch_name": "{{user `hyperv_switchname`}}",
"enable_secure_boot":true, "enable_secure_boot": true,
"enable_virtualization_extensions":true "enable_virtualization_extensions": true
}, },
{ {
"type": "vmware-iso", "type": "vmware-iso",
...@@ -37,8 +38,9 @@ ...@@ -37,8 +38,9 @@
"boot_wait": "2m", "boot_wait": "2m",
"winrm_username": "vagrant", "winrm_username": "vagrant",
"winrm_password": "vagrant", "winrm_password": "vagrant",
"winrm_timeout" : "{{user `winrm_timeout`}}", "winrm_timeout": "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command":
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows9srv-64", "guest_os_type": "windows9srv-64",
"disk_size": 61440, "disk_size": 61440,
"vnc_port_min": 5900, "vnc_port_min": 5900,
...@@ -46,7 +48,6 @@ ...@@ -46,7 +48,6 @@
"floppy_files": [ "floppy_files": [
"{{user `autounattend`}}", "{{user `autounattend`}}",
"./floppy/WindowsPowershell.lnk", "./floppy/WindowsPowershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/disable-screensaver.ps1", "./scripts/disable-screensaver.ps1",
"./scripts/disable-winrm.ps1", "./scripts/disable-winrm.ps1",
"./scripts/docker/enable-winrm.ps1", "./scripts/docker/enable-winrm.ps1",
...@@ -54,6 +55,7 @@ ...@@ -54,6 +55,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
...@@ -72,8 +74,9 @@ ...@@ -72,8 +74,9 @@
"boot_wait": "2m", "boot_wait": "2m",
"winrm_username": "vagrant", "winrm_username": "vagrant",
"winrm_password": "vagrant", "winrm_password": "vagrant",
"winrm_timeout" : "{{user `winrm_timeout`}}", "winrm_timeout": "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", "shutdown_command":
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "Windows2012_64", "guest_os_type": "Windows2012_64",
"guest_additions_mode": "disable", "guest_additions_mode": "disable",
"disk_size": 61440, "disk_size": 61440,
...@@ -85,34 +88,19 @@ ...@@ -85,34 +88,19 @@
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vboxmanage": [ "vboxmanage": [
[ ["modifyvm", "{{.Name}}", "--memory", "2048"],
"modifyvm", ["modifyvm", "{{.Name}}", "--cpus", "2"]
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "windows-shell", "type": "windows-shell",
"scripts": [ "scripts": ["./scripts/vm-guest-tools.bat", "./scripts/enable-rdp.bat"]
"./scripts/vm-guest-tools.bat",
"./scripts/enable-rdp.bat"
]
}, },
{ {
"type": "powershell", "type": "powershell",
"scripts": [ "scripts": ["./scripts/debloat-windows.ps1"]
"./scripts/debloat-windows.ps1"
]
}, },
{ {
"type": "windows-restart", "type": "windows-restart",
...@@ -153,7 +141,8 @@ ...@@ -153,7 +141,8 @@
], ],
"variables": { "variables": {
"headless": "false", "headless": "false",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO", "iso_url":
"http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO",
"iso_checksum_type": "md5", "iso_checksum_type": "md5",
"iso_checksum": "70721288BBCDFE3239D8F8C0FAE55F1F", "iso_checksum": "70721288BBCDFE3239D8F8C0FAE55F1F",
"autounattend": "./answer_files/2016_core/Autounattend.xml", "autounattend": "./answer_files/2016_core/Autounattend.xml",
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"./scripts/win-updates.ps1", "./scripts/win-updates.ps1",
"./scripts/openssh.ps1" "./scripts/openssh.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
"./scripts/win-updates.ps1", "./scripts/win-updates.ps1",
"./scripts/openssh.ps1" "./scripts/openssh.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
"./scripts/disable-winrm.ps1", "./scripts/disable-winrm.ps1",
"./scripts/enable-winrm.ps1" "./scripts/enable-winrm.ps1"
], ],
"vmx_remove_ethernet_interfaces": true,
"vmx_data": { "vmx_data": {
"RemoteDisplay.vnc.enabled": "false", "RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900", "RemoteDisplay.vnc.port": "5900",
......
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