Commit Graph

46 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 6c12e1c048
Land #496, vagrant template cannot not ref `win2k8` 2020-10-28 17:18:38 -05:00
Jeffrey Martin 193600978e
vagrant template should not reference `win2k8`
The template file supplied inside the box images does not
have information about the external `name`, just reference config
and the provisioner type.
2020-10-28 15:22:52 -05: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
Jeffrey Martin 6a17501824
Land #422, ub1404 development and modification instructions 2019-10-29 14:40:04 -05:00
Dave Eargle 72dc282aa0 ub1404 dev workflow
Tweaks to the recipes to avoid repetition of work, and ub1404 dev,
* let apt cookbook handle apt-update globally
* do not download, configure, make, make install if the package is
already installed
* add guards for file deletion to first check whether file is present
* use docker cookbook for image building and running, to only build if
not alrady built and only run if not already running
* drop mysql table and recreate each time

Also,
* bump Docker cookbook to 4.9.3
* bump mysql cookbook to 8.5.1
* add apt cookbook for better apt-update management
* bump depends versions and add apt
* modify readme with customization instructions
* modify all chef runlists to call apt first in the runlist
* add a vagrantfile for dev of ub1404
2019-10-29 13:36:27 -06: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
Jeffrey Martin 5b4901babf
do not attempt to mount vagrant share 2018-08-02 12:44:30 -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
Brent Cook 4e27eda152 Merge remote-tracking branch 'upstream/master' into land-301- 2018-07-25 20:13:03 -05:00
Brent Cook 037f518341 use an older base image, skip vm-tools
We don't need vm-tools, and the latest version of Virtualbox actually
causes a kernel panic with our old kernel. This moves back to an older
base, uses SHA256 to download it, and disables vm-tools.

Fixes #318
2018-07-25 17:34:36 -05:00
James H 4dbdc77cdc
Merge pull request #1 from djschaap/add-kvm-box
Add kvm box
2018-06-23 15:34:56 +10:00
James Hebden f598e51077 Fixed extraneous merge artefact in ubuntu1404.json 2018-06-23 14:32:52 +10: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 57dad47c56
fix vmware guest type 2018-05-09 16:19:52 -05:00
Brent Cook 5d7d9482f6
Land #265, Hardcode chef-client version to 13.8.5 2018-04-08 00:10:56 -05:00
Chan9390 8aa444ef4e
Hardcoded chef-client version to 13.8.5 2018-04-07 11:25:43 +05:30
Jeffrey Martin bc3d22a575
use chocolatey version 0.10.8 until install is fixed 2018-04-06 16:12:11 -05:00
James Barnett 23b71528fd Changes for community CTF. 2017-11-07 15:13:46 -06:00
James Barnett c3c3b63382 Everything needed for RC5 2017-09-12 09:16:20 -05:00
James Barnett 3453c20899 Use correct file for sinatra server.
- Turns out it was supposed to be the loader file, not server
- Bump version for aws to 0.1.8
- This is RC1 for the UNITED CTF. Will launch with this version
  if no issues are found.
2017-09-05 14:18:18 -05:00
James Barnett 7444e95a06 Remove chef from aws template for security reasons 2017-09-01 16:26:03 -05:00
James Barnett 6088d95c0b Use different sinatra server based on platform 2017-09-01 16:23:59 -05:00
James Barnett 0b5812e7e1 Build locate db for easy mode flags 2017-08-29 13:41:38 -05:00
James Barnett afd863afe1 Change user passwords and groups 2017-08-15 17:28:53 -05:00
James Barnett f77210b47d Add AWS template for Linux box. 2017-08-08 11:55:49 -05:00
James Barnett 3fdaf996ae Update recipes for better chef practices.
There were quite a few bugs in the chef recipes when building using other platforms.
These were mostly due to assuming the vagrant user would exist.
Things are now more generic and should be more reliable overall.
2017-08-04 11:18:57 -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