diff --git a/eval-win2019-standard-cygwin.json b/eval-win2019-standard-cygwin.json new file mode 100644 index 00000000..b075ad5b --- /dev/null +++ b/eval-win2019-standard-cygwin.json @@ -0,0 +1,203 @@ +{ + "builders": [ + { + "type": "vmware-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/cygwin.bat", + "{{template_dir}}/floppy/cygwin.sh", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "guest_os_type": "windows2019srv-64", + "headless": "{{ user `headless` }}", + "tools_upload_flavor": "windows", + "version": "{{ user `hw_version` }}", + "cpus": "{{ user `cpus` }}", + "cores": 1, + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "disk_adapter_type": "lsisas1068", + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + }, + { + "type": "virtualbox-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/cygwin.bat", + "{{template_dir}}/floppy/cygwin.sh", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "post_shutdown_delay": "30s", + "guest_additions_mode": "attach", + "guest_additions_url": "{{user `guest_additions_url`}}", + "guest_os_type": "Windows2019_64", + "headless": "{{ user `headless` }}", + "vboxmanage": [ + [ + "setextradata", + "{{.Name}}", + "VBoxInternal/CPUM/IsaExts/CMPXCHG16B", + "1" + ] + ], + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "hard_drive_interface": "sata", + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + }, + { + "type": "parallels-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/cygwin.bat", + "{{template_dir}}/floppy/cygwin.sh", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "guest_os_type": "win-2019", + "parallels_tools_flavor": "win", + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "prlctl": [ + [ + "set", + "{{.Name}}", + "--efi-boot", + "off" + ] + ], + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + }, + { + "type": "hyperv-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/cygwin.bat", + "{{template_dir}}/floppy/cygwin.sh", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "headless": "{{ user `headless` }}", + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + } + ], + "post-processors": [ + { + "compression_level": 1, + "keep_input_artifact": true, + "output": "{{user `box_directory`}}{{.Provider}}/{{user `vm_name`}}{{user `vm_suffix`}}-{{user `cm`}}{{user `cm_version`}}-{{user `version`}}.box", + "type": "vagrant", + "vagrantfile_template": "{{template_dir}}/tpl/vagrantfile-eval-win2019-standard-cygwin.tpl" + } + ], + "provisioners": [ + { + "environment_vars": [ + "CM={{user `cm`}}", + "CM_OPTIONS={{user `cm_options`}}", + "CM_VERSION={{user `cm_version`}}", + "UPDATE={{user `update`}}" + ], + "execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat", + "remote_path": "C:/Windows/Temp/script.bat", + "scripts": [ + "{{template_dir}}/script/vagrant.bat", + "{{template_dir}}/script/KB2999226.cmd", + "{{template_dir}}/script/cmtool.bat", + "{{template_dir}}/script/vmtool.bat", + "{{template_dir}}/script/clean.bat", + "{{template_dir}}/script/ultradefrag.bat", + "{{template_dir}}/script/uninstall-7zip.bat", + "{{template_dir}}/script/sdelete.bat" + ], + "type": "shell" + }, + { + "inline": [ + "rm -f /cygdrive/c/Windows/Temp/script.bat" + ], + "type": "shell" + } + ], + "variables": { + "vm_name": "eval-win2019-standard", + "vm_suffix": "-cygwin", + "cm": "chef", + "cm_version": "", + "cpus": "2", + "memory": "2048", + "disk_size": "40960", + "hw_version": "7", + "iso_url": "https://software-download.microsoft.com/download/sg/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso", + "iso_checksum": "57faf4a2ea4484cfdf5e964c539313c061c4d9cac474e723d60405f2ea02d570", + "guest_additions_url": "", + "box_directory": "box/", + "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c 'Packer Shutdown'", + "headless": "false", + "update": "true", + "version": "0.1.0" + } +} diff --git a/eval-win2019-standard-ssh.json b/eval-win2019-standard-ssh.json new file mode 100644 index 00000000..9702fa7e --- /dev/null +++ b/eval-win2019-standard-ssh.json @@ -0,0 +1,199 @@ +{ + "builders": [ + { + "type": "vmware-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/openssh.bat", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "guest_os_type": "windows2019srv-64", + "headless": "{{ user `headless` }}", + "tools_upload_flavor": "windows", + "version": "{{ user `hw_version` }}", + "cpus": "{{ user `cpus` }}", + "cores": 1, + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "disk_adapter_type": "lsisas1068", + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + }, + { + "type": "virtualbox-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/openssh.bat", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "post_shutdown_delay": "30s", + "guest_additions_mode": "attach", + "guest_additions_url": "{{user `guest_additions_url`}}", + "guest_os_type": "Windows2019_64", + "headless": "{{ user `headless` }}", + "vboxmanage": [ + [ + "setextradata", + "{{.Name}}", + "VBoxInternal/CPUM/IsaExts/CMPXCHG16B", + "1" + ] + ], + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "hard_drive_interface": "sata", + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + }, + { + "type": "parallels-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/openssh.bat", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "guest_os_type": "win-2019", + "parallels_tools_flavor": "win", + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "prlctl": [ + [ + "set", + "{{.Name}}", + "--efi-boot", + "off" + ] + ], + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + }, + { + "type": "hyperv-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/openssh.bat", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "headless": "{{ user `headless` }}", + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "vm_name": "{{user `vm_name`}}", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_timeout": "10000s" + } + ], + "post-processors": [ + { + "compression_level": 1, + "keep_input_artifact": true, + "output": "{{user `box_directory`}}{{.Provider}}/{{user `vm_name`}}{{user `vm_suffix`}}-{{user `cm`}}{{user `cm_version`}}-{{user `version`}}.box", + "type": "vagrant", + "vagrantfile_template": "{{template_dir}}/tpl/vagrantfile-eval-win2019-standard-ssh.tpl" + } + ], + "provisioners": [ + { + "environment_vars": [ + "CM={{user `cm`}}", + "CM_OPTIONS={{user `cm_options`}}", + "CM_VERSION={{user `cm_version`}}", + "UPDATE={{user `update`}}" + ], + "execute_command": "{{.Vars}} cmd /c C:/Windows/Temp/script.bat", + "remote_path": "/tmp/script.bat", + "scripts": [ + "{{template_dir}}/script/vagrant.bat", + "{{template_dir}}/script/KB2999226.cmd", + "{{template_dir}}/script/cmtool.bat", + "{{template_dir}}/script/vmtool.bat", + "{{template_dir}}/script/clean.bat", + "{{template_dir}}/script/ultradefrag.bat", + "{{template_dir}}/script/uninstall-7zip.bat", + "{{template_dir}}/script/sdelete.bat" + ], + "type": "shell" + }, + { + "inline": [ + "rm -f /tmp/script.bat" + ], + "type": "shell" + } + ], + "variables": { + "vm_name": "eval-win2019-standard", + "vm_suffix": "-ssh", + "cm": "chef", + "cm_version": "", + "cpus": "2", + "memory": "2048", + "disk_size": "40960", + "hw_version": "7", + "iso_url": "https://software-download.microsoft.com/download/sg/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso", + "iso_checksum": "57faf4a2ea4484cfdf5e964c539313c061c4d9cac474e723d60405f2ea02d570", + "guest_additions_url": "", + "box_directory": "box/", + "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c 'Packer Shutdown'", + "headless": "false", + "update": "true", + "version": "0.1.0" + } +} diff --git a/eval-win2019-standard.json b/eval-win2019-standard.json new file mode 100644 index 00000000..6a9aa24b --- /dev/null +++ b/eval-win2019-standard.json @@ -0,0 +1,195 @@ +{ + "builders": [ + { + "type": "vmware-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/fixnetwork.ps1", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "communicator": "winrm", + "guest_os_type": "windows2019srv-64", + "headless": "{{ user `headless` }}", + "tools_upload_flavor": "windows", + "version": "{{ user `hw_version` }}", + "cpus": "{{ user `cpus` }}", + "cores": 1, + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "disk_adapter_type": "lsisas1068", + "vm_name": "{{user `vm_name`}}", + "winrm_username": "vagrant", + "winrm_password": "vagrant", + "winrm_timeout": "10000s" + }, + { + "type": "virtualbox-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/fixnetwork.ps1", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "post_shutdown_delay": "30s", + "communicator": "winrm", + "guest_additions_mode": "attach", + "guest_additions_url": "{{user `guest_additions_url`}}", + "guest_os_type": "Windows2019_64", + "headless": "{{ user `headless` }}", + "vboxmanage": [ + [ + "setextradata", + "{{.Name}}", + "VBoxInternal/CPUM/IsaExts/CMPXCHG16B", + "1" + ] + ], + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "hard_drive_interface": "sata", + "vm_name": "{{user `vm_name`}}", + "winrm_username": "vagrant", + "winrm_password": "vagrant", + "winrm_timeout": "10000s" + }, + { + "type": "parallels-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/fixnetwork.ps1", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "communicator": "winrm", + "guest_os_type": "win-2019", + "parallels_tools_flavor": "win", + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "prlctl": [ + [ + "set", + "{{.Name}}", + "--efi-boot", + "off" + ] + ], + "vm_name": "{{user `vm_name`}}", + "winrm_username": "vagrant", + "winrm_password": "vagrant", + "winrm_timeout": "10000s" + }, + { + "type": "hyperv-iso", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "floppy_files": [ + "{{template_dir}}/floppy/eval-win2019-standard/Autounattend.xml", + "{{template_dir}}/floppy/00-run-all-scripts.cmd", + "{{template_dir}}/floppy/01-install-wget.cmd", + "{{template_dir}}/floppy/_download.cmd", + "{{template_dir}}/floppy/_packer_config*.cmd", + "{{template_dir}}/floppy/disablewinupdate.bat", + "{{template_dir}}/floppy/fixnetwork.ps1", + "{{template_dir}}/floppy/install-winrm.cmd", + "{{template_dir}}/floppy/passwordchange.bat", + "{{template_dir}}/floppy/powerconfig.bat", + "{{template_dir}}/floppy/zz-start-transports.cmd", + "{{template_dir}}/3rdparty/curl.exe" + ], + "shutdown_command": "{{ user `shutdown_command`}}", + "communicator": "winrm", + "headless": "{{ user `headless` }}", + "cpus": "{{ user `cpus` }}", + "memory": "{{ user `memory` }}", + "disk_size": "{{user `disk_size`}}", + "vm_name": "{{user `vm_name`}}", + "winrm_username": "vagrant", + "winrm_password": "vagrant", + "winrm_timeout": "10000s" + } + ], + "post-processors": [ + { + "compression_level": 1, + "keep_input_artifact": true, + "output": "{{user `box_directory`}}{{.Provider}}/{{user `vm_name`}}{{user `vm_suffix`}}-{{user `cm`}}{{user `cm_version`}}-{{user `version`}}.box", + "type": "vagrant", + "vagrantfile_template": "{{template_dir}}/tpl/vagrantfile-eval-win2019-standard.tpl" + } + ], + "provisioners": [ + { + "environment_vars": [ + "CM={{user `cm`}}", + "CM_OPTIONS={{user `cm_options`}}", + "CM_VERSION={{user `cm_version`}}", + "UPDATE={{user `update`}}" + ], + "scripts": [ + "{{template_dir}}/script/vagrant.bat", + "{{template_dir}}/script/KB2999226.cmd", + "{{template_dir}}/script/cmtool.bat", + "{{template_dir}}/script/vmtool.bat", + "{{template_dir}}/script/clean.bat", + "{{template_dir}}/script/ultradefrag.bat", + "{{template_dir}}/script/uninstall-7zip.bat", + "{{template_dir}}/script/sdelete.bat" + ], + "type": "windows-shell" + } + ], + "variables": { + "vm_name": "eval-win2019-standard", + "vm_suffix": "", + "cm": "chef", + "cm_version": "", + "cpus": "2", + "memory": "2048", + "disk_size": "40960", + "hw_version": "7", + "iso_url": "https://software-download.microsoft.com/download/sg/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso", + "iso_checksum": "57faf4a2ea4484cfdf5e964c539313c061c4d9cac474e723d60405f2ea02d570", + "guest_additions_url": "", + "box_directory": "box/", + "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", + "headless": "false", + "update": "true", + "version": "0.1.0" + } +} diff --git a/floppy/eval-win2019-standard/Autounattend.xml b/floppy/eval-win2019-standard/Autounattend.xml new file mode 100644 index 00000000..ed2748d3 --- /dev/null +++ b/floppy/eval-win2019-standard/Autounattend.xml @@ -0,0 +1,164 @@ + + + + + + en-US + + en-US + en-US + en-US + en-US + + + + true + + + + + + /IMAGE/NAME + Windows Server 2019 SERVERDATACENTER + + + + 0 + 2 + + false + OnError + + + + OnError + + + + 1 + 500 + Primary + + + 2 + 20000 + Primary + + + + + true + NTFS + + 1 + 1 + + + true + NTFS + C + 2 + 2 + + + 0 + true + + + + + + + + + vagrant + true</PlainText> + </AdministratorPassword> + <LocalAccounts> + <LocalAccount wcm:action="add"> + <Description>Vagrant User</Description> + <DisplayName>vagrant</DisplayName> + <Group>Administrators</Group> + <Name>vagrant</Name> + <Password> + <Value>vagrant</Value> + <PlainText>true</PlainText> + </Password> + </LocalAccount> + </LocalAccounts> + </UserAccounts> + <AutoLogon> + <Enabled>true</Enabled> + <Username>vagrant</Username> + <Password> + <Value>vagrant</Value> + <PlainText>true</PlainText> + </Password> + </AutoLogon> + <FirstLogonCommands> + <SynchronousCommand wcm:action="add"> + <CommandLine>cmd.exe /c a:\00-run-all-scripts.cmd</CommandLine> + <Description>Run all scripts on drive A:</Description> + <Order>1</Order> + <RequiresUserInput>true</RequiresUserInput> + </SynchronousCommand> + </FirstLogonCommands> + </component> + </settings> + <settings pass="specialize"> + <component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon> + </component> + <component name="Microsoft-Windows-IE-ESC" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <IEHardenAdmin>false</IEHardenAdmin> + <IEHardenUser>false</IEHardenUser> + </component> + <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <SearchScopes> + <Scope wcm:action="add"> + <ScopeDefault>true</ScopeDefault> + <ScopeDisplayName>Google</ScopeDisplayName> + <ScopeKey>Google</ScopeKey> + <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl> + </Scope> + </SearchScopes> + <DisableAccelerators>true</DisableAccelerators> + <DisableFirstRunWizard>true</DisableFirstRunWizard> + <Home_Page>about:blank</Home_Page> + </component> + <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <SearchScopes> + <Scope wcm:action="add"> + <ScopeDefault>true</ScopeDefault> + <ScopeDisplayName>Google</ScopeDisplayName> + <ScopeKey>Google</ScopeKey> + <ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl> + </Scope> + </SearchScopes> + <DisableAccelerators>true</DisableAccelerators> + <DisableFirstRunWizard>true</DisableFirstRunWizard> + <Help_Page>about:blank</Help_Page> + </component> + <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <fDenyTSConnections>false</fDenyTSConnections> + </component> + <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <FirewallGroups> + <FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop"> + <Active>true</Active> + <Group>Remote Desktop</Group> + <Profile>all</Profile> + </FirewallGroup> + </FirewallGroups> + </component> + <component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <UserAuthentication>0</UserAuthentication> + </component> + </settings> + <settings pass="offlineServicing"> + <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <EnableLUA>false</EnableLUA> + </component> + </settings> + <cpi:offlineImage cpi:source="catalog:install_windows server 2019 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> +</unattend> diff --git a/tpl/vagrantfile-win2019-standard-cygwin.tpl b/tpl/vagrantfile-win2019-standard-cygwin.tpl new file mode 100644 index 00000000..fb514157 --- /dev/null +++ b/tpl/vagrantfile-win2019-standard-cygwin.tpl @@ -0,0 +1,48 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.define "vagrant-win2019-standard-cygwin" + config.vm.box = "win2019-standard-cygwin" + + # Port forward WinRM and RDP + config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct:true + config.vm.communicator = "winrm" + config.vm.guest = :windows + config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct:true + # Port forward SSH + config.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", auto_correct:true + + config.vm.provider :virtualbox do |v, override| + v.gui = true + v.customize ["modifyvm", :id, "--memory", 1536] + v.customize ["modifyvm", :id, "--cpus", 1] + v.customize ["modifyvm", :id, "--vram", "256"] + v.customize ["setextradata", "global", "GUI/MaxGuestResolution", "any"] + v.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32"] + end + + ["vmware_fusion", "vmware_workstation"].each do |provider| + config.vm.provider provider do |v, override| + v.gui = true + v.vmx["memsize"] = "1536" + v.vmx["numvcpus"] = "1" + v.vmx["cpuid.coresPerSocket"] = "1" + v.vmx["ethernet0.virtualDev"] = "vmxnet3" + v.vmx["RemoteDisplay.vnc.enabled"] = "false" + v.vmx["RemoteDisplay.vnc.port"] = "5900" + v.vmx["scsi0.virtualDev"] = "lsisas1068" + end + end + + config.vm.provider :parallels do |v, override| + v.customize ["set", :id, "--cpus", 1] + v.customize ["set", :id, "--memsize", 1536] + v.customize ["set", :id, "--videosize", "256"] + end + + config.vm.provider :hyperv do |v, override| + v.cpus = "1" + v.memory = "1536" + end +end diff --git a/tpl/vagrantfile-win2019-standard-ssh.tpl b/tpl/vagrantfile-win2019-standard-ssh.tpl new file mode 100644 index 00000000..69c27de4 --- /dev/null +++ b/tpl/vagrantfile-win2019-standard-ssh.tpl @@ -0,0 +1,48 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.define "vagrant-win2019-standard-ssh" + config.vm.box = "win2019-standard-ssh" + + # Port forward WinRM and RDP + config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct:true + config.vm.communicator = "winrm" + config.vm.guest = :windows + config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct:true + # Port forward SSH + config.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", auto_correct:true + + config.vm.provider :virtualbox do |v, override| + v.gui = true + v.customize ["modifyvm", :id, "--memory", 1536] + v.customize ["modifyvm", :id, "--cpus", 1] + v.customize ["modifyvm", :id, "--vram", "256"] + v.customize ["setextradata", "global", "GUI/MaxGuestResolution", "any"] + v.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32"] + end + + ["vmware_fusion", "vmware_workstation"].each do |provider| + config.vm.provider provider do |v, override| + v.gui = true + v.vmx["memsize"] = "1536" + v.vmx["numvcpus"] = "1" + v.vmx["cpuid.coresPerSocket"] = "1" + v.vmx["ethernet0.virtualDev"] = "vmxnet3" + v.vmx["RemoteDisplay.vnc.enabled"] = "false" + v.vmx["RemoteDisplay.vnc.port"] = "5900" + v.vmx["scsi0.virtualDev"] = "lsisas1068" + end + end + + config.vm.provider :parallels do |v, override| + v.customize ["set", :id, "--cpus", 1] + v.customize ["set", :id, "--memsize", 1536] + v.customize ["set", :id, "--videosize", "256"] + end + + config.vm.provider :hyperv do |v, override| + v.cpus = "1" + v.memory = "1536" + end +end diff --git a/tpl/vagrantfile-win2019-standard.tpl b/tpl/vagrantfile-win2019-standard.tpl new file mode 100644 index 00000000..a24c8e17 --- /dev/null +++ b/tpl/vagrantfile-win2019-standard.tpl @@ -0,0 +1,48 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.define "vagrant-win2019-standard" + config.vm.box = "win2019-standard" + + # Port forward WinRM and RDP + config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct:true + config.vm.communicator = "winrm" + config.vm.guest = :windows + config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct:true + # Port forward SSH + #config.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", auto_correct:true + + config.vm.provider :virtualbox do |v, override| + v.gui = true + v.customize ["modifyvm", :id, "--memory", 1536] + v.customize ["modifyvm", :id, "--cpus", 1] + v.customize ["modifyvm", :id, "--vram", "256"] + v.customize ["setextradata", "global", "GUI/MaxGuestResolution", "any"] + v.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32"] + end + + ["vmware_fusion", "vmware_workstation"].each do |provider| + config.vm.provider provider do |v, override| + v.gui = true + v.vmx["memsize"] = "1536" + v.vmx["numvcpus"] = "1" + v.vmx["cpuid.coresPerSocket"] = "1" + v.vmx["ethernet0.virtualDev"] = "vmxnet3" + v.vmx["RemoteDisplay.vnc.enabled"] = "false" + v.vmx["RemoteDisplay.vnc.port"] = "5900" + v.vmx["scsi0.virtualDev"] = "lsisas1068" + end + end + + config.vm.provider :parallels do |v, override| + v.customize ["set", :id, "--cpus", 1] + v.customize ["set", :id, "--memsize", 1536] + v.customize ["set", :id, "--videosize", "256"] + end + + config.vm.provider :hyperv do |v, override| + v.cpus = "1" + v.memory = "1536" + end +end