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.
Requirements:
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
https://www.virtualbox.org/wiki/Downloads
Start up VirtualBox
2. Download and install the latest version of Vagrant from
http://downloads.vagrantup.com. 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
http://files.vagrantup.com/lucid32.box
C:\vagrant\vagrant\bin> vagrant init lucid32
C:\vagrant\vagrant\bin> vagrant up
5. Open Putty and enter these credentials:
Hostname: 127.0.0.1
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
Comments
Failed to connect to files.vagrantup.com port 80: Connection ref
Thanks for the post. I was
The nature of Vagrant
About the "SSL Certificate Verification" issue
Vagrant
Newbie Recommendations
Nevermind my previous comment
About your Git error message
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
About VirtualBox setup
Yes, you will need to install VirtualBox first. https://www.virtualbox.org/wiki/Downloads. It's easy to install.
Thanks for your comments and questions.
Katy :-)