

Note: If you’re using Hyper-V instead of VirtualBox, you have to call vagrant up -provider=hyperv instead of just vagrant up. This will start a virtual machine running Ubuntu 12.04 (Precise Pangolin). Then execute the following two commands: > vagrant init hashicorp/precise64 To start your first VM, first create an empty directory somewhere and cd into it. Vagrant 1.8.5 Starting and Interacting with Your First VM ∞ To verify that Vagrant is installed, type on the command line: > vagrant -v It can be installed alongside VMWare Fusion. If you don’t want to spend money, just use VirtualBox. If you have VMWare Fusion installed on your Mac, please note that the VMWare provider for Vagrant costs money – even if you already have a VMWare Fusion license. Hyper-V is incompatible with other hyper-visors. If you have Hyper-V installed, don’t install VirtualBox. It’s free and available on every platform. On Windows you may also want to install a command line replacement.Īs hyper-visor, you can choose between VirtualBox, VMWare (Fusion), and Hyper-V. To be able to use Vagrant you need two things: Vagrant itself and a hyper-visor. A slow internet connection will work but you’ll have to wait for a long time for the downloads to finish.Īs for software versions, this tutorial was tested against Vagrant 1.8.5 and VirtualBox 5.1. The VMs created by Vagrant are downloaded from the internet and are usually 600 MB or bigger. How to interact with the command line of your operating system – since Vagrant is controlled from the command line.įor Vagrant I recommend that you have a fast internet connection.To be able to follow this tutorial, it’s helpful if you have a basic understanding of the following: If you’re just interested in the end result, skip ahead to Putting everything together. It’s just to get you the infrastructure to do something meaningful. The setup we’ll be creating is just a foundation you can expand on. Except for Vagrant, no external software is required to achieve this. 7 Updating a VM after Vagrantfile Has ChangedĪt the end of this tutorial, we’ll have 3 virtual machines, one called “master” and two nodes, that can find each other via their hostnames.4 Starting and Interacting with Your First VM.
