Part 1: Getting Started with Vagrant on Windows 7 and 8

Before starting this tutorial, be sure to read this article: Introduction to Vagrant

In this tutorial, we will be installing Vagrant, a bare bones server with Ubuntu installed. Vagrant is a server that runs under VirtualBox. You will need to have VirtualBox installed. You will also need to have Putty installed in order to access your new Vagrant server via SSH. These instructions also apply to Windows 8.
A hard connection to the Internet
Putty needs to be installed. (putty-0.62-installer.exe)
VirtualBox needs to be installed.
Recommended: 8 GB RAM is recommended to run VirtualBox on Windows PCs
A. Installing Vagrant – bare bones server – Ubuntu only
1. Download and install the most recent VirtualBox for Windows from
Start up VirtualBox
2. Download and install the latest version of Vagrant from For this tutorial, we will use version 1.0.6. Windows users, download Vagrant.msi
Open Windows cmd prompt
  • For Windows 8, press Windows key and then press “R” key. This will open the RUN dialog box for you. Type “cmd” and press Enter.
Note: I typed vagrant command and I got the error message saying, ‘vagrant’ command not recognized. It was not added to the Path during install. Restarting your computer may help to refresh the path.
3. Change directory to C:\vagrant\vagrant\bin
4. Then type the following commands:
C:\vagrant\vagrant\bin> vagrant box add lucid32
C:\vagrant\vagrant\bin> vagrant init lucid32
C:\vagrant\vagrant\bin> vagrant up
5. Open Putty and enter these credentials:
Port: 2222
Connection type: SSH
6. Login to Vagrant server
Enter username: vagrant
Password: vagrant
Type ls –lah at the prompt.
This is a bare bones server with Ubuntu installed.
vagrant@lucid32:~$ls -lah

Related articles:
1. Part 2: Installing Vagrant DLAMP server in Windows 7 and 8
2. Introduction to Vagrant: Development Environments made Easy


Failed to connect to port 80: Connection ref

I received this error: C:\HashiCorp\Vagrant\bin>vagrant box add lucid32 ==> box: Box file was not detected as metadata. Adding it directly... ==> box: Adding box 'lucid32' (v0) for provider: box: Downloading: box: Progress: 0% (Rate: 0curl:/s, Estimated time remaining: --:--:--) An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. Failed to connect to port 80: Connection refused

Thanks for the post. I was

Thanks for the post. I was using this instruction for installing vagrant under Windows 8.1 - Could you please give some example, how can I create couple machines with different IPs using Vagrantfile ?

The nature of Vagrant

I thought vagrant was software designed to manage virtual machines. The actual server would be whatever the lucid32 box is, such as Ubuntu.

About the "SSL Certificate Verification" issue

To resolve this issue, add --insecure as follows: vagrant box add --insecure lucid32 John Zhang


I have some error while downloading the Vagrant from that link. I am using the Windows 7 and I am so much interested in installing this Vagrant in my system. The tutorials are awesome but please help in downloading.

Newbie Recommendations

1. Get rid of any old VirtualBox or Vagrant software lying around. This method works. 2. Please download VirtualBox 4.3.1 NOT 4.3.12. Otherwise the paths won't align. 3. Instead of pressing windows R, you need administrator access. So go to start and type cmd and right click and say yes to administrator. It's the equivalent of root access. 4. If you encounter anything else funky, there's something wrong with your steps. I recommend uninstalling VirtualBox and Vagrant and starting over rather than tampering with the file paths like I did.

Nevermind my previous comment

Well, I followed A instructions and then decided that I needed to follow the B instructions. I set up an account at github and then tried to to the git clone command (using Git Bash) I created the required directory and now get an error: fatal: https: // not found: did you run git update-server-info on the server? Sue

About your Git error message

Hi Sue,

I'm not familiar with that error message. Perhaps a Google search will help. I divided my first post into 2 parts. In Part 1, we install a bare bones server using Vagrant. In Part 2, we install a full Drupal-LAMP stack.

Katy :-)

Virtual Box setup

I'm assuming that I need to set up a virtual Linux-Ubuntu under Virtual Machine or will the vagrant install take care of that? Sue Fox

About VirtualBox setup

Hi Sue,
Yes, you will need to install VirtualBox first. It's easy to install.
Thanks for your comments and questions.
Katy :-)