Questions tagged [vagrantfile]

Vagrantfiles are configuration files for vagrant. The Vagrantfile describes the type of virtual machine, and how to configure and provision the vm.

The primary function of the Vagrantfile is to describe the type of machine required for a project, and how to configure and provision these machines. Vagrantfile are called Vagrantfiles because the actual literal filename for the file is Vagrantfile (casing doesn't matter).

Vagrant is meant to run with one Vagrantfile per project, and the Vagrantfile is supposed to be committed to version control. This allows other developers involved in the project to check out the code, run vagrant up, and be on their way. Vagrantfiles are portable across every platform Vagrant supports.

The syntax of Vagrantfiles is , but knowledge of the programming language is not necessary to make modifications to the Vagrantfile, since it is mostly simple variable assignment. In fact, isn't even the most popular community Vagrant is used within, which should help show you that despite not having Ruby knowledge, people are very successful with Vagrant.

1000 questions
264
votes
7 answers

How to change Vagrant 'default' machine name?

Where does the name 'default' come from when launching a vagrant box? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... Is there a way to set this?
Kyle Kelley
  • 13,804
  • 8
  • 49
  • 78
172
votes
32 answers

Vagrant ssh authentication failure

The problem with ssh authentication: ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter…
ic3b3rg
  • 14,629
  • 4
  • 30
  • 53
106
votes
6 answers

Symbolic links and synced folders in Vagrant

I want to use Vagrant to provide a common development environment to my team. The hosts are completely different: Some use OS X, some Linux, and some Windows. Some use VMware, some use VirtualBox. Inside of the VM we want to run Linux. So far,…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
69
votes
8 answers

Unable to vagrant up - how to set "providers"

I am trying run vagrant but after vagrant up error appears: No usable default provider could be found for your system. Vagrant relies on interactions with 3rd party systems, known as "providers", to provide Vagrant with resources to run…
Tomasz
  • 1,368
  • 3
  • 17
  • 31
61
votes
8 answers

Download vagrant box file locally from atlas and configuring it

I want to download a vagrant box file from Atlas for using it later locally with my vagrant file. How can I do this, and how can I configure it?
Muhammad Raihan Muhaimin
  • 5,559
  • 7
  • 47
  • 68
49
votes
1 answer

How to set vagrant virtualbox video memory

I have googled this and can't find what command allows me to allocate the video memory for when using vagrant and virtualbox. Can someone tell me what it is? This is what I have for my virtual box configuration so far: config.vm.provider…
user5013
  • 981
  • 4
  • 10
  • 21
46
votes
2 answers

Update a Vagrant Box?

I have updated a box vagrant box update and now when I run vagrant up it boots into the old box. How can I update my box to use the newer version?
Steven
  • 13,250
  • 33
  • 95
  • 147
44
votes
13 answers

Vagrant up - VBoxManage.exe error: VT-x is not available (VERR_VMX_NO_VMX) code E_FAIL (0x80004005) gui headless

Machine: Window10 (64bit). I downloaded the latest VirtualBox, Vagrant and initialized CentOS 6.7 64bit image/url. The following worked successfully in Git-Bash session. 1. vagrant box add "centos67x64"…
AKS
  • 16,482
  • 43
  • 166
  • 258
44
votes
4 answers

How to automatically select bridged network interfaces in Vagrant?

What should I add in Vagrant file to prevent asking (after vagrant up command) Which interface should the network bridge to? Available bridged network interfaces: 1) Intel(R) 82579LM Gigabit Network Connection 2) VMware Virtual Ethernet Adapter…
aldrien.h
  • 3,437
  • 2
  • 30
  • 52
43
votes
14 answers

Vagrant up timeout

Having some issues to get my vagrant up, Got the box, run vagrant init and after vagrant up command I get this message. Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'precise32'... ==> default:…
Merlo
  • 631
  • 1
  • 6
  • 11
42
votes
5 answers

Can't ssh to vagrant VMs using the insecure private key (vagrant 1.7.2)

I have a cluster of 3 VMs. Here is the Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : hosts = { "host0" => "192.168.33.10", "host1" => "192.168.33.11", "host2" => "192.168.33.12" } Vagrant.configure("2") do |config| config.vm.box…
Pyramid Newbie
  • 6,865
  • 3
  • 24
  • 28
39
votes
9 answers

The IP address configured for the host-only network is not within the allowed ranges

I got this error when I run vagrant up on my macOS: The IP address configured for the host-only network is not within the allowed ranges. Please update the address used to be within the allowed ranges and run the command again. Address:…
Hongbo Miao
  • 45,290
  • 60
  • 174
  • 267
39
votes
4 answers

How to enable internet access inside Vagrant?

If I run curl google.com, I can't see the output, only a blank page. My Vagrantfile contains: Vagrant.configure("2") do |config| config.vm.box = "trumobi" #config.vm.box_url = "http://192.168.136.129/package.box" config.ssh.default.username =…
user2439278
  • 1,222
  • 7
  • 41
  • 75
35
votes
5 answers

How to access Vagrant Box in public network

I had created on e box inside vagrant. In the Vagrantfile, I had given the network as Create a private network, which allows host-only access to the machine # using a specific IP. # config.vm.network :private_network, ip: "192.168.33.10" …
user2439278
  • 1,222
  • 7
  • 41
  • 75
32
votes
3 answers

Using Vagrant to set up a VM with KVM/qemu without VirtualBox

I'm getting started Vagrant and want to use it with KVM/qemu (and the Virtual Machine Manager GUI), instead of installing VirtualBox. So I first installed Vagrant: $ vagrant --version Vagrant 1.9.1 $ vagrant box list There are no installed boxes!…
rahuL
  • 3,330
  • 11
  • 54
  • 79
1
2 3
66 67