Join David Swersky for an in-depth discussion in this video Install Vagrant and VirtualBox, part of Learning Vagrant.
- [Instructor] Before we get started learning Vagrant, we need to install both Vagrant and VirtualBox. Our first step is to install VirtualBox. Visit the VirtualBox website at www.virtualbox.org. Click the big, blue button. You can't miss it. Scroll down to the older builds section. Select VirtualBox 5.2. Then, download VirtualBox 5.2.6 for your platform.
As of the time of this recording, the latest version of VirtualBox had issues working with Vagrant. Once the installer is downloaded, find it on your system, and run the installation process. This takes a few minutes, and may briefly interrupt your network connection. Just accept the defaults, and let the installation complete. Once installed, you should be able to click Finish, and VirtualBox will run.
VirtualBox may prompt you to upgrade to the latest version. We'll want to skip that, so just click OK. Our next step is to install Vagrant. Go to the Vagrant website at vagrantup.com. Go to the download link at the center of the page, and then download the installer for your platform. Once the download is complete, find the installer and run it. Accept the defaults, and allow the installation to complete.
Once the installation is complete, you can run PowerShell, or Command Window on Windows, or Terminal on a Mac. Execute the command vagrant dash v. If you see the version then Vagrant was installed successfully. One thing to be aware of is that Intel processors support virtualization using a special set of extensions called VT-x. This setting is found in the system BIOS, and is often disabled by default. You will want to open your BIOS settings, find the VT-x extension setting, and make sure that it is set to enabled.
The method for this will depend on the make and model of your computer. You should of course, be careful when making changes to your BIOS settings. Here is an article on How To Geek on how to find and enable VT-x. If you are using an employers computer, you'll need to check with the system administrator for help.
- What is Vagrant?
- Running your first box
- Connecting to a box
- Working with Vagrant Cloud
- Configuring boxes with Vagrantfiles
- Creating a developer environment
- Uploading a box to Vagrant Cloud