• Home
  • About
  • Contact
  • Speaking

Run vagrant on your Windows

by Piotr Stapp — on vagrant tutorial devops 05 Sep 2014

Prerequisites

  1. Windows machine :)
  2. Install vagrant form https://www.vagrantup.com/downloads.html
  3. Install git with tools (or other ssh.exe client) + add folder to PATH. In powershell just invoke
    $env:PATH +=";C:\Program Files (x86)\Git\bin"
  4. Configure folder for boxes.
    It is useful when you want to work in offline mode. The easy way is to create mklink to store files in same place. Start cmd as admin and run (of course change second path to proper one):
    mklink /D c:\vagrantfiles d:\downloads\vagrantfiles
  5. Download Oracle VM VirtualBox from https://www.virtualbox.org/ (or other prefered virtualization product). Vagrant already supports Virtualbox, VMWare and Hyper-V :)

Validate instalation

  1. Create new folder. Let's call it test-vagrant
  2. Enter it and type: vagrant init
  3. Open Vagrantfile in your favorite notepad and:
    • Change the box name
    • Add url to the box like: config.vm.box_url = "file:///c:/vagrantfiles/CentOS-6.4-i386-v20131103.box"
  4. Run vagrant up to create and start the VM
  5. Run vagrant ssh to validate if it is working
  6. Run vagrant destroy to delete the machine


Follow @ptrstpp950

0%
Run vagrant on your Windows
words - read.
Recent Posts:

Comments

comments powered by Disqus
Piotr Stapp Author

Piotr Stapp

Developer, engineer, craftsmen, speaker & biker. User of all useful technologies. Believe in people not papers. DevOps & automation adept. In love with web technologies. I speak here for myself only.

Previous post HSTS error in Google Chrome Sometimes, specially after using Fiddler, my Google Chrome shows me HSTS error like below: localhost normally uses encryption to…
Next post Using poshgit @VisualStudio Git in Visual Studio As You probably know Visual Studio has integrated git client. It is really cool thing.…
All content copyright Reset your code © 2014 • All rights reserved.
Proudly published with Ghost