Commit Graph

25 Commits

Author SHA1 Message Date
Jeffrey Martin fe91dcbf67
download windows pre-req files using the host OS
Many pre-req file have moved to require TLS 1.2, to address this
downloading these files in the host system will allows this requirement
to be meet even when the guest OS being built does not yet support TLS 1.2.

* downloads dotnet and wmf from a provisioner run by the host OS
* updates dotnet to 4.5.2
* update wmf for powershell 5.1
* adjust install process for wmf to run as SYSTEM
* moves boxstarter and Ruby install into the chocolatey_installs path

Furhter work should be done to validate the downlaod hash and support caching downloads
instead of force each build to download again.

This does not remove the need for downloads by chocolatey when preforming those installs.
2023-02-03 13:46:46 -06:00
justin 30d00ca41d Update win2k8 iso url 2022-01-25 22:59:47 -05:00
Jeffrey Martin 2d20351f92
remove iso_checksum_type for newer packer 2022-01-07 10:39:19 -06:00
Thibault 8017610762 feat: update packer templates 2021-04-26 19:49:59 +02:00
Jeffrey Martin b9d61f4830
enable tls12 for vagrant key download 2021-01-15 14:41:01 -06:00
Jeffrey Martin 5be08b96ba
Land #388, add parallels provider support for ub1404 and win2k8 2020-11-20 14:49:49 -06:00
Jeffrey Martin 4e6ecb4ef8
only use provisioner for tools
The packer config for vmware-iso should not attempt tools install.

There is a provisioner script for tools install that detects the
environment and installer to use.
2020-10-28 14:02:12 -05:00
Dave Eargle 6046932e05 generalize virtio floppy include; don't ignore swp 2020-08-19 17:22:29 -04:00
Dave Eargle 2e031bdebb Merge remote-tracking branch 'upstream/master' into win2k8-qemu-fix 2020-08-19 17:19:08 -04:00
HomeSen a47a60f37d Fix Powershell SSL/TLS error for chocolatey download 2020-02-06 17:51:04 +01:00
Dave Eargle 74d205d5a0 fix virtio drivers for qemu build of win2k8; optimize vagrantfile for libvirt qemu windows guest 2019-11-27 17:26:51 -05:00
Pete Ezzo 53d2c927ac add parallels provider support for ub1404 and win2k8 2019-04-03 10:45:20 -04:00
usmcfiredog 7993467ddd
moved the placement of the snmp install to the powershell section 2019-03-05 08:07:55 -08:00
Nicholas Kasprinski c21d1c0f9e moved the setup_iis.bat to an elevated powershell script in order to activate the features 2019-02-05 17:44:34 -08:00
Jeffrey Martin a4ecd265cf
Update guest tools install for better vmware support
* make guest tools last so pre-reqs are in place

Packer 1.3.x and possibly more does not inject enviornment
variables as expected into `windows-shell` provisioners, moving
script that requires these into a `shell` provisioner.

* do not trust default uploaded windows.iso

Packer in some cases will upload windows.iso from the host
building the VM, since server 2008 needs a specific older
version of tools this can cause problems.

Example issue:
VMware Fusion 11 on macOS Mojave will supply 10.3.x in windows.iso
and will hit https://kb.vmware.com/s/article/55798 due the patch level
expectaions that are intentionally not met for Windows 2008r2.
2019-01-17 21:33:55 -06:00
Spenser Reinhardt 45372404a4 windows.json, change vmware guest_os_type to match proper vmware os identifiers 2018-11-28 10:19:49 -05:00
Jeffrey Martin 3040e732ba
explicit startup creation 2018-08-05 15:14:06 -05:00
Jeffrey Martin a608baf2a7
move scripts to location vagrant won't clobber 2018-08-03 16:24:52 -05:00
Jeffrey Martin 70151811fd
consistency for usage of VagrantCloud 2018-08-03 12:48:18 -05:00
Brent Cook 1f722aa0c3 workaround missing SDL by preferring GTK for output
https://github.com/hashicorp/packer/issues/6136
2018-07-25 20:38:10 -05:00
Doug Schaapveld 896b984d16 Clean up trailing whitespace 2018-06-20 19:35:03 -05:00
James Hebden 8b56f30c6b Added support for building and running on qemu/kvm via libvirt 2018-06-19 21:42:28 +10:00
Jeffrey Martin bc3d22a575
use chocolatey version 0.10.8 until install is fixed 2018-04-06 16:12:11 -05:00
James Barnett 428ec322c9 Update pro version to support Linux VM 2017-07-31 16:18:50 -05:00
James Barnett 520c0564be Build Linux VM in packer.
This makes some other changes:
* Moves packer related files to packer directory.
* Updates build scripts for new packer directory.
* Renames boxes to metasploitabl3-<OS>
2017-07-31 15:48:27 -05:00