Vagrant up -no-provision, then take a snapshot, followed by vagrant provision. If you want a totally fresh snapshot, you can do the initialization with Recipes, so that you can always return to an initial state ( vagrant restore fresh). Chef aims to be idempotent, so you can rerun this command often.Ĭonsider taking a snapshot (e.g., vagrant snapshot save fresh) before modifying For fasterĭevelopment, you can comment-out recipes that you do not need to rerun - butĮven if they are all enabled, vagrant re-provisioning should not take longer than Vagrant rsync & vagrant provision from the same directory. When you edit the chef runlist or when you edit a chef recipe, run After the initial up build and provision, To get a development virtual ub1404 instance. Or, add or edit your own cookbook and/or recipes there.įrom the chef/dev/ub1404 directory, you can run vagrant up Configure theĬhef_solo block in the Vagrantfile with the metasploitable chef recipes that youĭesire - you can browse them in the chef/cookbooks/metasploitableįolder. Metasploitable ub1404 uses the vagrant chef-solo provisioner. Select a base box that supports your provider. Then, navigate to the chef/dev/ub1404 directory in this repository.Įxamine the Vagrantfile there. This action tells the Wizard that you want to install VirtualBox. Launch setup to install VirtualBox on Windows. Double-click the file to launch the VirtualBox Setup wizard.
This will start up the VM and run all of the installation and configuration scripts necessary to set everything up. To start the VM, run the command vagrant up win2k8.Use vagrant plugin install vagrant-reload to install the reload vagrant provisioner if you haven't already.This can be done with the command vagrant box add packer/builds/windows_2008_r2_*_0.1.0.box -name=rapid7/metasploitable3-win2k8. After the base Vagrant box is created you need to add it to your Vagrant environment.This will take a while the first time you run it since it has to download the OS installation ISO.
Currently virtualbox-iso, qemu, and vmware-iso providers are supported. packer/templates/windows_2008_r2.json where is your preferred virtualization platform. Build the base VM image by running packer build -only=.Clone this repo and navigate to the main directory.