Vagrant is a tool to create and configure lightweight, reproducible, and portable development environments. By default, it uses Oracle's VirtualBox for these virtual environments, but support for other virtualization systems is available. Most questions about Vagrant should be asked on Super User or ...

learn more… | top users | synonyms

0
votes
0answers
28 views

CentOS 6.7 can not install php-pecl-memcached module

I have a Vagrant box using CentOS 6.7 with PHP 5.6 and Apache 2.4. I have installed the memcached server, checked if it runs echo stats | nc localhost 11211 but when trying to install the Memcached ...
1
vote
2answers
1k views

How to install APC on a vagrant box running Ubuntu 12.04 with PHP 5.4?

In my "Vagrant" file I have this line: chef.add_recipe("php::module_apc") But it gives me this error: [2013-01-11T22:14:53+00:00] INFO: Processing package[php-apc] action install (php::module_apc ...
0
votes
1answer
305 views

Getting “Can't create/write to file '/var/lib/mysql/is_writable'” using docker (inside vagrant on OS X)

I am trying to use docker-compose/docker inside a vagrant machine hosted on OS X. Running 'docker-compose up' always fails with mysqld: Can't create/write to file '/var/lib/mysql/is_writable' (...
0
votes
0answers
8 views

Vagrant hangs at first Remote connection disconnect. Retrying

I have searched and found a bunch of questions regarding multiples retries of the Remote connection by Vagrant. 1, 2, 3. But my problem seems to be totally different and I can't find any reference to ...
0
votes
2answers
2k views

How can I ssh into a vagrant virtualbox VM from an external machine?

I'm trying to set up a server on my desktop with vagrant, but while I can ssh (via PuTTY) into the VM at localhost:2222, I can't ssh into it via my local or public IP addresses - even though I have ...
0
votes
1answer
8 views

One vagrant command to create and provision machine whether machine is created or not?

When my VM is not created, I can run: vagrant up or: vagrant up --provision but not vagrant provision, because of the warning: VM not created. Moving on... When my VM is created, I can run:...
-1
votes
0answers
7 views

How to output progress indicator in a better way for vagrant?

I've the provisioning vagrant script which is downloading certain assets using wget and curl, however when it's doing it (vagrant provision), it displays a lot of information into standard error (red ...
0
votes
0answers
10 views

Different memory configuration for Vagrant machine instances

I am using VirtualBox as my vagrant provider. I need to launch a few boxes and the memory allocation will need to vary. Is there a way to specify in a multi-machine config file so that there is a per-...
1
vote
1answer
11 views

How to create a vagrant box in a remote server

I've been using vagrant since a few months to test server configurations (with ansible). At work we have some spare internal servers that I would like to use for our continuous integration system. ...
0
votes
1answer
37 views

Server allows logging in without supplying a password and no ssh keys were exchanged, what could be the reason?

I'm trying to secure an outbound server with Google 2FA solution. For the time being, I'm first configuring everything on a local Vagrant machine and once everything works as intended I'll run it as ...
0
votes
0answers
17 views

VBOX_E_FILE_ERROR during vagrant destroy

(Interesting that I got a pop-up message relating to virtualbox being off topic. After reading: In what circumstances should VirtualBox questions be on topic? I decided to post my question here.) ...
4
votes
2answers
1k views

Copy files from guest to host the first time with rsync using Vagrant

When doing vagrant up a "shell" provision download some files into the synced folder. Those files should be also copied to the host machine synced folder, so that the project would be available from ...
0
votes
0answers
23 views

Chef and MySql: Error setting data_dir

I am trying to setup Mysql server 5.6 on Ubuntu 14.04 using Chef 12, testing using Vagrant It all goes fine till i try to set the data_dir to a custom value (It was working fine with the default ...
2
votes
4answers
2k views

Unable to ssh to a vagrant started ec2 ubuntu instance

After I ran vagrant up --provider=aws, I could see an ec2 instance being created and became up and running. However it will invariably stuck at this point ==> default: Waiting for SSH to become ...
48
votes
2answers
22k views

Vagrant / VirtualBox DNS 10.0.2.3 not working

I am running a fresh install of Linux Mint Nadia (14). I am following the instructions on Vagrant Getting Started but have gotten stuck on the Provisioning. It seems the Vagrant box cannot connect ...
0
votes
0answers
11 views

cannot login to mysql root from vagrant, but can from sudo

I just reinstall mysql, which is now running 5.7.9. I'm using vagrant. I try to login to mysql with mysql -u root -proot and I get: ERROR 1698 (28000): Access denied for user 'root'@'localhost' I ...
0
votes
1answer
29 views

Vagrant: inaccessible from host [closed]

I set my vagrant configuration to add Bridge networking to my VM. config.vm.network "public_network" When I try to use the assigned IP address that I got from ifconfig to ssh it says connection ...
13
votes
6answers
23k views

SSH aborts with Too many authentication failures

I'm attempting to run this simple provisioning script but I'm encountering errors when running vagrant up and then vagrant provision commands. I read that I needed to create a /etc/ansible/hosts file ...
3
votes
1answer
5k views

Vagrant not ready for SSH error on VirtualBox and Laravel Homestead

Vagrant Version: 1.6.3 VirtualBox: 4.3.14 Ubuntu 14.04 LTS 64 Bit Hey Guys, I have been on this for a pretty good while now and cannot figure this out. I have my public and private keys setup and ...
19
votes
3answers
12k views

Vagrant: Slow internet connection in guest

I'm trying to set up a vagrant. Host is Ubuntu 12.10. Here's my vagrant file: Vagrant::Config.run do |config| config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true) config.vm....
8
votes
13answers
42k views

Vagrant Error: Connection timeout. Retrying

I have a server with Ubuntu 12.04, Virtualbox 4.3 and Vagrant 1.5.1. I'm trying to use this box http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210.box however unsucessfully. When I run "...
1
vote
1answer
2k views

Unable to install nginx from source in provisioning script

I'm using Vagrant to build a reproducible virtual machine for one of my projects. This virtual machine needs a basic LEMP stack, and I'm using a shell script to provision it after it's created. The ...
26
votes
1answer
20k views

Vagrant set default share permissions

When running a vagrant instance the project folder is mounted on /vagrant automatically. However is mounted with the following permissions # ll -d /vagrant drwx------ 1 vagrant vagrant 612 Jun 13 14:...
43
votes
3answers
15k views

Relationship between Vagrant, Docker, Chef and OpenStack (or similar products)?

I am a web developer, but I am also interested in a few administrative tasks. Hence, the new move from pure administration to dev-ops comes handy for me. Anyway, I have some problems to put a few ...
0
votes
0answers
15 views

Automatically booting tomcat server with vagrant up

I'm toying with setting up a vagrant box of our tomcat-based app so that we have safe, pre-configured, re-usable environment for other employees to toy with. I need to boot the tomcat server after ...
10
votes
2answers
3k views

running setfacl on a vagrant shared directory

Trying to get a Symfony2 project up and running with a vagrant VM. I've seen a zillion articles on this, but getting the cache directory permissioned correctly is proving to be excruciatingly painful. ...
0
votes
0answers
30 views

NPM Permission Denied Exit Status 126

I am running a node process inside of vagrant and am getting a ELIFECYCLE (Permission denied....exit status 126) error when I run the command: NODE_ENV=production ./node_modules/babel-cli/bin/babel-...
0
votes
0answers
47 views

Vagrant Scotch Box Change Webroot

Recently I've been experimenting with vagrant and I want to match the development environment as closely as possible with the production environment. I want to change the document root to my home ...
0
votes
0answers
70 views

Jenkins 2.x disable initial admin setup

we're using Jenkins as a cron server adding/starting crons via api. We created a vagrant box installing the jenkins. Since version 2.0 jenkins require to create an admin account (link) before disable ...
1
vote
0answers
27 views

In Vagrant, how can I use synced folders with multi-machine?

I don't know how Vagrant synced folders are implemented, and the documentation doesn't really say, so I'm not sure if this is something that's workable. I have a web app that I run under Vagrant, and ...
-1
votes
2answers
39 views

Local network for websites

I'm a student doing an internship at the moment. I mainly develop websites using virtualbox and vagrant. I was wondering if i could like make the websites i build accessible for everyone in my network....
1
vote
0answers
22 views

Forward ssh port to 22 in Vagrant

I have several global IP addresses on my eth0 interface. In my vagrant file I specified on of this IPs as public_network: config.vm.network "public_network", ip: "xxxx.xxxx.xxxx.xxxx" When vagrant ...
0
votes
1answer
225 views

Can't start docker on Ubuntu 14.04: Job failed to start

I'm trying to installed Docker on a Vagrantbox with Ubuntu 14.04 using the instructions on the official website (Docker Docs). The installation seemed to work, but afterwards I can't start the docker ...
1
vote
0answers
29 views

Vagrant, Apache and FastCGI uses huge cpu

I cannot really grasp why it's so slow. Site loads really slow. And vboxheadless hits more than 100% cpu every request. I use 2048 memory and 1 cpu. Here is activity monitor and top: http://imgur....
0
votes
1answer
30 views

Node.js module won't reinstall using puppet / vagrant

Previously I had a similar configuration to this working but as soon as I added hiera to my puppet build I started having problems. The error I currently have after running vagrant provision is as ...
1
vote
1answer
24 views

vagrant rsync is failing to chown

I'm using an synced folder on vagrant 1.8.1 and I want it to chown the files, but it doesn't seem to take effect. This is my synced folder: config.vm.synced_folder( '../..', '/home/deploy/sosd/...
0
votes
1answer
169 views

Vagrant behind NTLM proxy on windows - guest unable to connect to the host proxy

I'm on a Windows machine behind a corporate NTLM proxy and I need to vagrant up a VM from the given Vagrantfile. I've read a few things on this topic: http://runefs.com/2014/11/28/setting-up-...
2
votes
1answer
72 views

Why does this AWS instance provisioned by Vagrant terminate as soon as it comes up?

My Vagrant provisioned AWS instance will terminate as soon as it comes up. Here's my config file: config.vm.box = "aws-dummy" config.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/...
4
votes
7answers
4k views

Install RVM with ansible

I am attempting to install rvm with ansible on a centos-based vagrant box. The command I am running is: vars: user: "foo" - name: install rvm action: command sudo -u $user bash /home/$user/rvm-...
0
votes
1answer
10 views

Is there a vagrant cli way of completely rebuilding a vagrant box while saving the old one?

I tried vagrant snapshot push vagrant destroy vagrant snapshot pop But of course the VM is gone so that won't work. The problem is that if I want to debug provisioning from scratch then I don't ...
1
vote
0answers
49 views

Vagrant can mount shared folders upon first launch, but cannot mount if restarted

Being running into very strange issue with vagrant. I don't have any custom folders shared right now. By default, vagrant mounts its containing folder to /vagrant path of the guest. At the first ...
0
votes
2answers
787 views

Bringing up EC2 instances with vagrant-aws errors

I'm trying to automate acceptance testing by using vagrant to bring up machines with amazon's EC2 service, so I added the dummy box and copied the Vagrantfile off Github, but when I try to run vagrant ...
1
vote
0answers
33 views

Can I get vagrant ansible_local to provision locally without specifying the inventory_path?

Currently I end up with a host file that has: [sosd] controller ansible_connection=local Then in my Vagrant config.vm.provision :ansible_local do |ansible| ansible.playbook = '/home/deploy/sosd/...
0
votes
1answer
85 views

vagrant 1.8.1 doesn't seem to install ansible when it's specified in ansible_local

My provisioner is like this: config.vm.provision :ansible_local do |ansible| ansible.playbook = '/home/deploy/sosd/local/ansible/sosd.yml' ansible.install = true end But on vagrant up it seems ...
0
votes
1answer
99 views

How to access Mesos DNS running on VM from host

I have a host machine (Mac OS X 10.11.1) running virtual machines through vagrant. I installed Mesos DNS on one of the nodes, and modified resolv.conf on other cluster nodes, so I can successfully use ...
1
vote
1answer
59 views

Install virt-sysprep on Ubuntu 14.04

I'm using vagrant with vagrant-libvirt and I want to create a package via the command-line: vagrant package --output ubuntu14-base.box I've got an error around virt-sysprep being absent (confirm ...
0
votes
1answer
753 views

SSH using Agent Forwarding with Windows Host OS, Vagrant Ubuntu Guest OS, and Keepass/Keeagent

Intent: To be able to deploy to lan-example.com from any dev environment; whether it be directly from the virtual OS, or any single-OS system, or even over the internet using ONE SSH key stored in ...
0
votes
0answers
20 views

Cannot access webserver on host machine using Vagrant and Apache [duplicate]

I installed Vagrant and installed CentOS7 with apache, when i tried accessing the web server using browser (localhost:8080), it keeps showing the status "waiting for localhost" and never render the ...