From the course: Virtualization: Configuring VMs Across Platforms with VMware, Hyper-V, VirtualBox, Vagrant, and KVM
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Managing virtual machines with Vagrant
From the course: Virtualization: Configuring VMs Across Platforms with VMware, Hyper-V, VirtualBox, Vagrant, and KVM
Managing virtual machines with Vagrant
- So at this point you should have Vagrant and Salt on your favorite platform. Let's talk a bit more on how to get started with your Vagrant virtual machines. So first, each virtual machine created with Vagrant should have its own product directory. That's because you are using Vagrant Up. And Vagrant Up is looking for a Vagrant file in the current directory. And you can't have different Vagrantfiles, that's why. If you want to use already for use Vagrantfile, well you can use a Vagrant init to generate a Vagrant valve based on a community provided box. Or you can create virtual machines based on Vagrant Cloud. But the Vagrantfile is essential. It describes the virtual machine and its properties and there are lots of properties that can be included in the Vagrantfile. As I mentioned before, in this course, you won't learn all the gory details about what you can put in your Vagrantfile that would require a dedicated course by its own. I just need you to get started with Vagrantfiles…