Skip to content

Install Vagrant on windows to configure vm's

Vagrant seems like a good choice for configuring and creating virtual machines (vm's)
I have no experience using it, these are my first steps into using Vagrant. It's basically just a short writeup of my first steps using Vagrant on virtualbox.
I am using windows 10.

Installation

  1. Install Python https://www.python.org/downloads/
  2. Install virtualbox https://www.virtualbox.org/wiki/Downloads
    • I had problems with a missing python cores / win32api error during installation, it seems that this is only needed if you are scripting with python againts virtualbox, you can safely disable the python option in the installer to make the error go away
  3. download and install the latest Vagrant https://developer.hashicorp.com/vagrant/downloads?product_intent=vagrant

First vm

I used this guide to create my first vm https://developer.hashicorp.com/vagrant/tutorials/getting-started/getting-started-project-setup

Vagrant base boxes are here https://app.vagrantup.com/boxes/search

vagrant cheat sheet

Videos

Vagrant vs. Ansible

Vagrant can be used to create and configure vm's, but it seems that most configuration needs to be configured using shell scripts.
Ansible can be used in conjunction with vargrant to configure vm's after creation, this seems to be the better option?

Ippsec has good videos on ansible, I used this playlist that explains how to configure parrot os using ansible:


Last update: 2023-09-22 13:13:10