Commit c7446a43 authored by Joe Fitzgerald's avatar Joe Fitzgerald

VMware Updates, Reformatting JSON

- Updating GuestOS value for Windows Server 2018 to windows8srv-64
- Setting headless to true for all provisioners
- Updating VMware Tools to latest version
parent a8f76bbf
......@@ -11,21 +11,21 @@ msiexec /qb /i 7z920-x64.msi
mkdir /home/vagrant/vmware
chown -R vagrant /home/vagrant/vmware
cd /home/vagrant/vmware
wget http://softwareupdate.vmware.com/cds/vmw-desktop/ws/9.0.2/1031769/windows/packages/tools-windows-9.2.3.exe.tar
tar -xvf /home/vagrant/vmware/tools-windows-9.2.3.exe.tar
rm /home/vagrant/vmware/tools-windows-9.2.3.exe.tar
wget http://softwareupdate.vmware.com/cds/vmw-desktop/ws/10.0.0/1295980/windows/packages/tools-windows-9.6.0.exe.tar
tar -xvf /home/vagrant/vmware/tools-windows-9.6.0.exe.tar
rm -rf /home/vagrant/vmware/tools-windows-9.6.0.exe.tar
chown -R vagrant /home/vagrant/vmware
# Install the VMware Tools
/home/vagrant/vmware/tools-windows-9.2.3.exe
rm /home/vagrant/vmware/tools-windows-9.2.3.exe
/home/vagrant/vmware/tools-windows-9.6.0.exe
rm -rf /home/vagrant/vmware/tools-windows-9.6.0.exe
/cygdrive/c/Program\ Files/7-Zip/7z.exe x C:\\Program\ Files\ \(x86\)\\VMware\\tools-windows\\windows.iso
rm C:\\Program\ Files\ \(x86\)\\VMware\\tools-windows\\windows.iso
rm -rf C:\\Program\ Files\ \(x86\)\\VMware\\tools-windows\\windows.iso
chown -R vagrant /home/vagrant/vmware
cmd.exe /c "C:\\cygwin\\home\\vagrant\\vmware\\setup.exe /S /v\"/qn REBOOT=R\""
rm -rf /home/vagrant/vmware
cd /home/vagrant
msiexec /qb /x 7z920-x64.msi
rm 7z920-x64.msi
rm -rf 7z920-x64.msi
sleep 1
{
"builders": [
{
"type": "vmware",
"iso_url": "./iso/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso",
"iso_checksum_type": "md5",
"iso_checksum": "8dcde01d0da526100869e2457aafb7ca",
"headless": true,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "windows7srv-64",
"disk_size": 61440,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"floppy_files": [
"./answer_files/2008_r2/Autounattend.xml",
"./scripts/install-cygwin-sshd.bat",
"./scripts/install-win-updates.ps1"
],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2"
}
},
{
"type": "virtualbox",
"iso_url": "./iso/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso",
"iso_checksum_type": "md5",
"iso_checksum": "8dcde01d0da526100869e2457aafb7ca",
"headless": false,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "Windows2008_64",
"disk_size": 61440,
"floppy_files": [
"./answer_files/2008_r2/Autounattend.xml",
"./scripts/install-cygwin-sshd.bat",
"./scripts/install-win-updates.ps1"
],
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
"builders": [{
"type": "vmware",
"iso_url": "./iso/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso",
"iso_checksum_type": "md5",
"iso_checksum": "8dcde01d0da526100869e2457aafb7ca",
"headless": true,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "windows7srv-64",
"disk_size": 61440,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"floppy_files": ["./answer_files/2008_r2/Autounattend.xml", "./scripts/install-cygwin-sshd.bat", "./scripts/install-win-updates.ps1"],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2"
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"./scripts/postinstall.sh",
"./scripts/install-vmware-tools.sh",
"./scripts/install-chef.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "windows_2008_r2_{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows_2008_r2.template"
}
}, {
"type": "virtualbox",
"iso_url": "./iso/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso",
"iso_checksum_type": "md5",
"iso_checksum": "8dcde01d0da526100869e2457aafb7ca",
"headless": true,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "Windows2008_64",
"disk_size": 61440,
"floppy_files": ["./answer_files/2008_r2/Autounattend.xml", "./scripts/install-cygwin-sshd.bat", "./scripts/install-win-updates.ps1"],
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
}],
"provisioners": [{
"type": "shell",
"scripts": ["./scripts/postinstall.sh", "./scripts/install-vmware-tools.sh", "./scripts/install-chef.sh"]
}],
"post-processors": [{
"type": "vagrant",
"keep_input_artifact": false,
"output": "windows_2008_r2_{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows_2008_r2.template"
}]
}
{
"builders": [
{
"type": "vmware",
"iso_url": "./iso/en_windows_server_2012_x64_dvd_915478.iso",
"iso_checksum_type": "md5",
"iso_checksum": "da91135483e24689bfdaf05d40301506",
"headless": false,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "windows7srv-64",
"disk_size": 61440,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"floppy_files": [
"./answer_files/2012/Autounattend.xml",
"./scripts/install-cygwin-sshd.bat",
"./scripts/install-win-updates.ps1"
],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2"
}
},
{
"type": "virtualbox",
"iso_url": "./iso/en_windows_server_2012_x64_dvd_915478.iso",
"iso_checksum_type": "md5",
"iso_checksum": "da91135483e24689bfdaf05d40301506",
"headless": false,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "Windows2012_64",
"disk_size": 61440,
"floppy_files": [
"./answer_files/2012/Autounattend.xml",
"./scripts/install-cygwin-sshd.bat",
"./scripts/install-win-updates.ps1"
],
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
"builders": [{
"type": "vmware",
"iso_url": "./iso/en_windows_server_2012_x64_dvd_915478.iso",
"iso_checksum_type": "md5",
"iso_checksum": "da91135483e24689bfdaf05d40301506",
"headless": true,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "windows8srv-64",
"disk_size": 61440,
"vnc_port_min": 5900,
"vnc_port_max": 5980,
"floppy_files": ["./answer_files/2012/Autounattend.xml", "./scripts/install-cygwin-sshd.bat", "./scripts/install-win-updates.ps1"],
"vmx_data": {
"RemoteDisplay.vnc.enabled": "false",
"RemoteDisplay.vnc.port": "5900",
"memsize": "2048",
"numvcpus": "2"
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"./scripts/postinstall.sh",
"./scripts/install-vmware-tools.sh",
"./scripts/install-chef.sh"
]
}
],
"post-processors": [
{
"type": "vagrant",
"keep_input_artifact": false,
"output": "windows_2012_{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows_2012.template"
}
]
}, {
"type": "virtualbox",
"iso_url": "./iso/en_windows_server_2012_x64_dvd_915478.iso",
"iso_checksum_type": "md5",
"iso_checksum": "da91135483e24689bfdaf05d40301506",
"headless": true,
"boot_wait": "5m",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "2h",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"",
"guest_os_type": "Windows2012_64",
"disk_size": 61440,
"floppy_files": ["./answer_files/2012/Autounattend.xml", "./scripts/install-cygwin-sshd.bat", "./scripts/install-win-updates.ps1"],
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
]
}],
"provisioners": [{
"type": "shell",
"scripts": ["./scripts/postinstall.sh", "./scripts/install-vmware-tools.sh", "./scripts/install-chef.sh"]
}],
"post-processors": [{
"type": "vagrant",
"keep_input_artifact": false,
"output": "windows_2012_{{.Provider}}.box",
"vagrantfile_template": "vagrantfile-windows_2012.template"
}]
}
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