Vagrant is a tool for building and distributing virtualized development environments.

learn more… | top users | synonyms

2
votes
3answers
682 views

Virtualbox Guru Meditation error when starting an Ubuntu 16.04 guest on OSX host using vagrant

Host OS version: OSX El Capitan 10.11.4 (15E65) Virtualbox version: 5.0.18r106667 Vagrant version: 1.8.1 Guest: Ubuntu-16.04 My vagrantfile looks like 1 Vagrant.configure('2') do |config| 2 ...
1
vote
0answers
6 views

Multi-machine Vagrantfiles do not properly resolve collisions

When creating two VM's with Vagrant v.1.8.1, the second VM also want to use port 2222 (even though there was a collision resolved to port 2200): Here's my Vagrantfile: Vagrant.configure("2") do ...
0
votes
2answers
191 views

Vagrant/Puppet/MySQL localhost issue

I have a vagrant file using puppet to configure mysql. Here is the relevant code in default.pp: class { '::mysql::server': override_options => { 'mysqld' => { 'bind_address' => ...
0
votes
0answers
8 views

Command to shut down consul/vagrant

I am new to vagrant and consul. In my folder I installed the following. . Then I go to the folder type the command vagrant up. The shell command bootstrap.sh is sudo -s <<EOF yum makecache ...
0
votes
0answers
11 views

Vagrant Public Network, IP, Using .dev

My end goal is this: Create a public networked Vagrant box with Computer1 that is accessible via LAN/Wi-Fi with a local domain like example.dev. First off, I have read this question on Vagrant Public ...
2
votes
2answers
238 views

Vagrant and Ansible facts

Is it possible to have Ansible display facts about a Vagrant box? The Ansible documentation uses ansible hostname -m setup even if I connect with the Vagrant user I would still need the SSH key ...
0
votes
1answer
330 views

Vagrant PermitUserEnvironment

I am using vagrant to host a virtual Ubuntu 12.04 machine. I am trying to get it to use the ~/.ssh/environment file to use my personal PS1 among other things. It does no work. I have ...
1
vote
0answers
26 views

Prevent Vagrant from manipulating /etc/hosts

When config.vm.hostname is set in a Vagrantfile, Vagrant manages the hostname. Furthermore, and this is the bad part for me, it manipulates /etc/hosts to contain the hostname pointing to 127.0.0.1 ...
0
votes
1answer
1k views

“Guest-specific operations were attempted on a machine that is not ready for guest communication.” exception when provisioning an AWS EC2 machine

I have used vagrant up to create a AWS EC2 instance. After I have stopped and restarted this instance, I want to rerun vagrant provision with updated provision clauses in the Vagrantfile. It failed ...
0
votes
1answer
30 views

connection refused for vagrant ssh

I am having trouble connecting to my vagrant box using vagrant ssh. There are no error messages when running vagrant up, I can also connect directly using the VirtualBox ui. When I run vagrant ssh I ...
0
votes
0answers
5 views

Can I create a burnable image from a custom vagrant box

I'd like to create and develop on a UbuntuMate image using vagrant. My question is, can I then create a burnable/bootable image of that OS and bootup on my raspberry pi? Can an image lauched and ...
0
votes
1answer
13 views

Vagrant VM connect to remote host

I have a Vagrant VirtualBox VM running Debian Linux. I want to connect from inside the VM to another host on my private network (say, 192.168.25.111). My network inside the VM looks like this: $ ...
0
votes
1answer
35 views

Git GUI on Windows not seeing .git folder from Samba share

THE SCENARIO I am using Vagrant,Windows environment and running Ubuntu inside the virtual box for my development work. I have setup an instance of Samba server and I run the I access the virtual ...
0
votes
0answers
24 views

After installing Vagrant, nothing happens

C:\>vagrant C:\>_ and none of the commands work C:\>vagrant up C:\>vagrant init -h C:\>_ etc. It's in the PATH variable: PATH=...C:\HashiCorp\Vagrant\bin;... Did something ...
0
votes
0answers
24 views

Is it possible to create a swap file for a Linux guest VM managed by Vagrant?

In my Vagrantfile I have the following provider defined: Excerpt from Vagrantfile: config.vm.provider :virtualbox do |vb| vb.gui = false vb.customize ["modifyvm", :id, "--memory", "4096"] end ...
0
votes
0answers
32 views

Telnet to smtp.gmail.com 25 timing out inside vagrant box

Vagrant 1.8.1, Virtualbox 5.0.16, Windows 7. Vagrant using hashicorp/precise64 image. No modifications done to Vagrantfile. Using the default NAT networking. vagrant@precise64:~$ telnet ...
2
votes
0answers
40 views

Fedora, vagrant and libvirt

In my continuing attempts to get vagrant up (* No kernel sources available for 4.4.4-301.fc23.x86_64) I have been trying to use the libvirt provider because libvirt is faster and does not require ...
1
vote
1answer
92 views

How can I connect Filezilla to a Vagrant VM?

A friend has set up a vagrant vm running Ubuntu with many directories and files in it. The VM is running locally on my computer using Virtual Box. I don't want to setup a shared folder in it but I ...
0
votes
0answers
43 views

VirtualBox abort guest VM intentionally

I am wondering if someone knows how to abort a VM (linux box) in VirtualBox 5.0 intentionally? I've googled this to no avail as everyone complains why their VM's get aborted in state. I am recreating ...
0
votes
1answer
401 views

Shell provision script not creating .bash_aliases

I'm using Vagrant with VirtualBox to create an Ubuntu guest VM, on a Windows 10 host. Here's my Vagrantfile: # vi: set ft=ruby : Vagrant.configure(2) do |config| config.vm.box = "ubuntu/trusty64" ...
0
votes
0answers
37 views

Vagrant cant rsync Windows

I have a problem with Vagrant. I'm using a CentOS vm. The vagrant up command sucessfully maps files from Windows to the CentOS vm, and gives no errors when bringing the machine up. EDIT: ...
19
votes
4answers
15k views

Run script on host machine during vagrant up

I'd like to run a bash script on the host machine when before vagrant provisions the server. I can't quite figure out the best method of doing this. What would be the best method of achieving this?
0
votes
0answers
14 views

Vagrant private network with connection to the Internet

We have a set of integration tests which spin up several virtual machines. These VMs communicate with each other but also needs access to the outside world (e.g. yum repositories). We're considering ...
0
votes
0answers
17 views

Why isn't `.vagrant` folder getting shared with my guest?

I've a bunch of files in the root folder where the Vagrantfile is, but when I ssh into my node and check /vagrant everything is there except for the .vagrant folder. How can I share this folder with ...
1
vote
0answers
43 views

IP Packets for one (VirtualBox/Vagrant Host-Only) guest IP are sent to Windows 10's default gateway instead of link local

I can't ping from my Windows 10 host (192.168.12.1) to one specific IP address (192.168.12.2) on a VirtualBox host-only network. The packet is sent to the default gateway (192.168.101.4) rather than ...
31
votes
18answers
45k views

Vagrant ssh fails with VirtualBox

vagrant up fails when it gets to the ssh part: myterminal$ vagrant up [default] VM already created. Booting if its not already running... [default] Running any VM customizations... [default] Clearing ...
0
votes
0answers
37 views

err: Could not request certificate: getaddrinfo: Name or service not known

Everytime I run puppet agent -t I get this error err: Could not request certificate: getaddrinfo: Name or service not known Exiting; failed to retrieve certificate and waitforcert is disabled I ...
-1
votes
1answer
19 views

Private key to connect to the machine via SSH must be owned by the user running Vagrant

I am trying to follow this vagrant tutorial. I get error after my first two command. I wrote these two command from command line $ vagrant init hashicorp/precise64 $ vagrant up After I ran vagrant ...
7
votes
4answers
12k views

How to authenticate to a VM using Vagrant up?

Authentication failure during Vagrant Up, while vagrant ssh and ssh vagrant@localhost -p2222 works I would like to execute a shell script using Vagrant at boot. Vagrant is unable to Authenticate, ...
0
votes
0answers
17 views

How do I use an existing VMDK with Vagrant?

I have an existing VMDK of an old virtual machine, I would like to use that again, can I? How do I do it?
4
votes
1answer
817 views

DNS not functioning on command line

I recently did a combination of Vagrant + VirtualBox stuff on my machine to try to get a virtualized Ubuntu install working. However, I had no luck with it so I just uninstalled everything. Ever since ...
0
votes
0answers
14 views

provisioner running script as root instead of user

I am trying to install some software through a vagrant provisioner on a virtual machine. I can install the npm generator-hubot When the script gets all the way to yo hubot it gives me an access ...
0
votes
1answer
15 views

Vagrant box not talking to mysql on Mac through 127.0.0.1

I'm running a vagrant box to host local sites. Importantly, the mysql server is running on the Mac, not the VM. When I've set the site configuration files to use localhost the site loads properly, but ...
0
votes
0answers
12 views

Setting up Cluster on Vagrant using Bro Network

I'm trying to set up a cluster in vagrant. What I want is pretty simple, I just want 1 master and 1 slave. Inside the master I already installed Bro Network to use broctl. This is my Vagrantfile: ...
0
votes
0answers
16 views

Existing vagrant vm(s) cannot be recgonized on fresh Windows

I just switched from Win8.1 to Win10 (installed on separate ssd). I installed VirtualBox and imported existing vm machines. I installed Vagrant. Existing installation of Vagrant is on another hard ...
0
votes
1answer
50 views

Installing virtualbox inside VM

I have got citrix desktop VM as my main machine to work in my office. I want to develop on linux rather than on windows. So i am trying to install virtualbox. I installed virtual box and vagrant. ...
0
votes
0answers
11 views

Allow Vagrant Box to be accessible on the internet

I am trying to make a Vagrant box with VirtualBox to be accessible over the internet, how do I setup my Vagrantfile? I read about vagrant share and it is not what I am looking for. An example of ...
0
votes
0answers
47 views

Vagrant: cannot access machine after host is suspended and resumes

I use Vagrant for staging development environments. The host machine runs Ubuntu 15.10. Occasionally the host is suspended / goes to sleep. After resume, though, the VM becomes inaccessible. I ...
-1
votes
1answer
81 views

How to find the reason for frequent occurrence of WHEA Uncorrectable error

Since past few days, My system is crashing frequently always with the same error WHEA-Uncorrectable Error. I found online that, it is something related to hardware might be due to overclocking or ...
0
votes
0answers
35 views

Can Vagrant use Hyper-V server as a provider?

Can Vagrant be used to provision Virtual Machines using Hyper-V server, such as Hyper-V server 2012 or 2016? Our lab has Windows licenses for guests, so since Vagrant already has support for Hyper-V ...
0
votes
0answers
31 views

Vagrant interface issues

Using a very simple Vagrantfile # -*- mode: ruby -*- # vi: set ft=ruby : # See README.md for details VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| ...
0
votes
1answer
51 views

Where do you place the “preseed.cfg” file?

I’m trying to create a Ubuntu Vagrant box using Packer. I’m confused about where to place the preseed.cfg file. Does it have to be in directory mentioned in http_directory?
1
vote
1answer
33 views

Homestead: Cannot start

I cannot seem to get my box working properly. I'm following the instructions here. I'm running Windows 8.1 64-bit. When I run vagrant up, it goes through a series of commands and logs a bunch of ...
0
votes
0answers
24 views

How to share a single Virtual Machine across multiple Vagrant files

I don't want to have multiple VM boxes on my machine since I'm pressed for space. I want to be able to share one VM across different Vagrantfiles. Is it possible? My experience has been that they use ...
0
votes
0answers
47 views

Vagrant shell provisioner does not respond

I am provisioning a VM through shell script in AWS using vagrant-aws plugin. VM gets launched and the shell script gets executed but I don't see any update on the shell prompt. It used to get updated ...
1
vote
1answer
276 views

“vagrant up” not working on Windows 7 behind firewall

I am very new to Vagrant and VirtualBox. I have installed both of these and cloned the necessary directory with the following command: git clone https://github.com/scotch-io/scotch-box.git ...
0
votes
1answer
27 views

Mounting issue while running vagrant up command

I am trying to run vagrant up command inside ~/Documents/Cyle-Rest project and I get some issue with disk mounting which I am unable to resolve. The issue is The following SSH Command responded ...
0
votes
0answers
78 views

Mount Mac OSX nfs folder in a Vagrant machine with uid 1000

I'm developing on Mac and I want to share my OS X Extended (Case-sensitive, Journaled) folder to a Vagrant machine through NFS because vboxsf performance is too poor. My Case-sensitive drive is ...
1
vote
1answer
28 views

Make SSH_AUTH_SOCK be the same file every time

I need to be able to make ssh-agent use the same file for it's socket every time I log in. Currently it uses a random file in a temp folder, and this is causing issues for a systemd service in ...
1
vote
1answer
43 views

Vagrant SSH & Nano on Linux Mint 17.3

I've recently installed Vagrant (1.7.4) and VirtualBox (5.0) on 3 laptops each running Linux Mint. Have reached a stage on all 3 where I need to edit a config file on the VM itself. So far, so good. ...