Vagrant is free and open-source software for creating and configuring virtual development environments. It can be considered a wrapper around virtualization software such as VirtualBox and configuration management software such as Chef, Salt and Puppet.

learn more… | top users | synonyms

0
votes
0answers
26 views

Enable internet connection in CentOS 7 minimal version on Vagrant

I'm using Vagrant to run CentOS 7 box under Windows 7 and I can't connect to internet to install some packages. It's a minimal version of CentOS 7 so a lot of commands don't work. dhcpclient, ...
0
votes
1answer
28 views

Can't set locale; make sure $LC_* and $LANG are correct!

UPDATE I found the problem. I need to relog after setting the language variables. But what I'm wondering is: How would I relog inside a vagrant script? Is this even possible? Introduction I've read ...
0
votes
0answers
33 views

Setting multiple IP addresses on private network interface using Vagrant

I am trying to configure IPv4 and IPv6 address on Internal network Vagrant interface but I am unable to do so. Here is the configuration: config.vm.network "private_network", ip: ...
0
votes
0answers
6 views

Vagrant LXC mounts small /tmp partition

I've got a vagrant box running with an ubuntu based LXC container. I had to run a script that uses /tmp to store some files temporarily. The script kept failing, having looked at what's up, it turned ...
1
vote
1answer
24 views

Custom debian ISO

I currently use Vagrant and puppet along with the standard debian ISO with CM available here: https://vagrantcloud.com/puppetlabs/boxes/debian-8.2-64-puppet It appears to be a basic distribution of ...
1
vote
0answers
42 views

Vagrant ssh ask for password

I have been following this doc on Vagrant. I installed VirtualBox and Vagrant, then created a folder and ran vagrant init and vagrant up. When I typed vagrant ssh I got this message: The private key ...
2
votes
3answers
121 views

Bash: Passing command with quoted parameters to function

I have the following bash function: function exe { echo -e "Execute: $1" # Loops every 3s, outputting '...' until command finished executing LOOP=0 while true; do if ! [ ...
0
votes
2answers
38 views

How to automatically feed two arguments to program after startup? [duplicate]

I have this following script which works fine on ubuntu for starting and creating a new table for MySQL database: echo "CREATE DATABASE database_name" | mysql -u root -p After this command is ...
3
votes
0answers
66 views

How to disable a specific interface (dhclient) from resolvconf?

I am using ubuntu/trusty64 Vagrant box with VirtualBox. I want to permanently disable nameserver 10.0.2.3 set by resolvconf based on Vagrant's default eth0 interface. I have a network defined in my ...
1
vote
1answer
48 views

VirtualBox/Vagrant host only network host doesn't get IP address

I'm running Vagrant and VirutalBox and wants to use a host only network. I use the following configuration: config.vm.network "private_network", ip: "33.33.33.33" However my host doesn't get an IP ...
0
votes
0answers
19 views

How to edit .box file from an Existing One

I have debian .box file which we are using on vagrant and now I need to upgrade some packages on base image on .box file. How do I edit/open .box file from an Existing One?
0
votes
1answer
289 views

Vagrant libvirt provider on Fedora 23

I need to install libvirt Vagrant plugin but it fails with the following error: $ vagrant plugin install libvirt The plugin(s) can't be installed due to the version conflicts below. This means that ...
0
votes
0answers
76 views

Sudo, Virtualbox, and Permission issues. (The Good, The Bad, The Ugly)

I hope the title didn't put you off as this is a fairly interesting and nuanced problem. I'm testing a development image of Linux Mint built by myself and a friend. I'm testing it out by trying to do ...
0
votes
1answer
141 views

Public static IP only for a Vagrantfile

I modified the Vagrantfile for taiga-vagrant based on VAGRANT DOCS/Public Networks as follows: # -*- mode: ruby -*- # vi: set ft=ruby : require "./source.rb" ROOT_PATH = File.dirname(__FILE__) ...
0
votes
0answers
107 views

Connection timeout error for vagrant up

I have Installed virtualbox-dkms $ sudo apt-get install virtualbox-dkms DKMS: install completed. * Stopping VirtualBox kernel modules ...
1
vote
1answer
940 views

Trying to restart apache using Vagrant - “The apache2 configtest failed”

I have setup Vagrant (details below) and am just trying to start Apache so that I can get to a point that I can actually see a site in a browser, however when using sudo service apache2 start, I ...
1
vote
1answer
54 views

building docker images makes the Vagrant-managed VBox VM freeze

Folks While researching utilizing Docker images for web apps development I've stumbled upon the following issue. (all commands found bellow are executed inside a Vagrant-managed VBox vm) Create a ...
2
votes
2answers
694 views

Where is vagrant's log file?

I am trying to debug a vagrant- or VirtualBox related problem (see taiga-vagrant fails to provide a working taiga environment #21). The command VAGRANT_LOG=debug vagrant up --debug prints out plenty ...
0
votes
0answers
28 views

Vagrant guest git repository sharing with host and local network (forwarding)

I have a GNU/Linux host and a Vagrant guest box with a bare git repository of projects I want to share in my local network. For apache I simply forwarded port 80 in the guest to port 8080 in the host ...
1
vote
1answer
107 views

Virtualisation: follow symbolic links in VirtFS (9p) share

I have folder on host machine which have symlinks to another device. Like this $ ls -all ~/folder_to_share ... file1 file2 linked_dir -> /mnt/bdrive/real_dir/ ... I setup QEMU virtual machine ...
1
vote
1answer
459 views

How to use Vagrant provisioning to install a package without download?

The title says it all. I'm using Vagrant boxes for several purposes, and in most cases the prepared boxes I can download are totally sufficient. However, sometimes I need one or a few additional ...
0
votes
1answer
67 views

Failed to mount /media/sf_vagrant

I am trying to setup automated mounting of my vbox shared folders. Everything works just fine from my normal user: $ sudo mount -t vboxsf vagrant /media/sf_vagrant However if I follow the manual ...
3
votes
3answers
78 views

removed a vagrant file and now I see .nfs0000000000b869e300000001?

I rm'd a file and now I see: $ l total 64 -rw-rw-r-- 1 502 17229 Sep 17 16:42 page_object_methods.rb drwxrwxr-x 7 502 238 Sep 18 18:41 ../ -rw-rw-r-- 1 502 18437 Sep 18 18:41 ...
1
vote
1answer
3k views

Vagrant 1.7.*. is not supporting supporting virtualbox 5.x?

I have installed virtual box-5.0.2r102096. Previously I have virtual box 4.3.*. Vagrant version is Vagrant 1.7.2 but it was giving me following type error when I do vagrant up Failed to mount ...
0
votes
2answers
46 views

How to forward firefox graphics from remote to local system?

I have installed CentOS7 in virtualbox through vagrant. Both guest and host operating system is CentOS7. Guest operating system is minimum installation of centos7 with no graphics. On both system I ...
2
votes
1answer
251 views

How to connect from one VM Guest instance to another to another VM Guest instance

I have Windows 7 as my Host OS and I have a VM guest instance of CentOs 6, now I have created a more Instance guest Centos 6 via Vagrant. All are working fine and I am able to do a ssh/ping from ...
2
votes
1answer
2k views

how to create custom vagrant box from libvirt/kvm instance?

There are many resources on the Internet to create a custom vagrant box from a VirtualBox instance. But I want to know a direct method to create a custom vagrant box directly from a kvm/libvirt ...
1
vote
0answers
265 views

Vagrant + CentOS 7 - Apache fails to start, I don't see an error

I'm spending some time trying to provision a Vagrant box running from a CentOS 7 base box. After a fresh install of Apache, I am able to hit the server over http and restart the server, but as soon ...
0
votes
0answers
112 views

`vagrant up` dies in wait_for_communicator.rb:16:in `block in call'

I followed these steps including common advice to enable NFS in my vagrant-lxc setup for mediawiki-vagrant, but I'm getting stuck in this loop which ends with the lines below as I run REDIR_LOG=1 ...
0
votes
2answers
631 views

Vagrant: missing destination file operand after ‘/etc/exports’

I'm running Vagrant 1.7.3 with an Ubuntu 14.04 basebox, and I want to try out the new Puppet 4.2.0. However, when I run vagrant up on an empty VM, I get the following error: cp: missing destination ...
3
votes
1answer
205 views

How to get clipboard support on a Linux server without X11

I have a virtual Linux development environment running under VirtualBox and Vagrant. I use tmux and vim to setup multiple open vim instances. I'd like to be able to copy and paste between those ...
9
votes
2answers
4k views

Use VirtualBox provider by default on Fedora 21

Right now, any time I use vagrant, it tries to use libvirt as the provider. I want to use VirtualBox by default. vagrant-libvirt is not installed. It's bothersome because some commands don't work, ...
0
votes
2answers
2k views

How do I download a vagrant image?

I want to use box-cutter/debian77 but when I try vagrant box add box-cutter/debian77 https://atlas.hashicorp.com/box-cutter/debian77 I get Downloading box from URL: ...
12
votes
3answers
11k views

Set storage size on creation of VM VirtualBox

Is there a way to set the storage size for the VM on creating it? I will be using Vagrant, but not sure if this is something that needs to be done in VirtualBox or a setting I can include in the ...
1
vote
0answers
704 views

Create disk space on Vagrant/VirtualBox guest

I am looking to expand my VMs storage space and have done it the following way: Moved Vagrant to an external hard drive Reformatted the box to .vdi, resized it, formatted back to .vmdk Re-added the ...
1
vote
1answer
61 views

SELinux ignoring configuration?

I'm using Vagrant and VirtualBox to run a CentOS 6.5 VM. In /etc/sysconfig/selinux I have set SELINUX=permissive. However, everytime I restart the VM, sudo getenforce shows SELinux as Enforcing. ...
2
votes
1answer
2k views

MacOS X Mavericks running VirtualBox cannot communicate with Linux VM

I have a MacOS X Mavericks host running Vagrant using VirtualBox as a provider. I have experienced several times that with different VMs (particularly Ubuntu Linux VMs) after the first time the VM is ...
0
votes
0answers
166 views

Vagrant user permissions

What I like about vagrant is that all the permissions work out of the box when provisioned with Puppet. However I can't get the same permissions to work on my digitalocean droplet. On my vagrant box, ...
0
votes
0answers
317 views

inotifywait to monitor shared directory on laravel homestead

I need to watch a directory that is shared on a network for new files. I used inotifywait from inotify-tools and it is great except when the file is added from the other place. For example: I am ...
0
votes
1answer
576 views

NFS shared folder ownership does not change in guest OS in Vagrant

I have the following Vagrantfile: ... config.nfs.map_uid = 33 config.nfs.map_gid = 33 config.vm.synced_folder "/home/test", "/home/test", type: "nfs" ... After vagrant up /home/test folder ...
2
votes
0answers
439 views

Why don't I hear audio playing from my CentOS 6.5 Vagrant box?

I want to play a wave file from my CentOS 6.5 Vagrant box using aplay and of course I want to hear the sound. This is what I do: > aplay sine.wav Playing WAVE 'sine.wav' : Signed 16 bit Little ...
1
vote
1answer
396 views

Setting Solarized colors on a Vagrant Ubuntu Box

I am trying to set the colors of my Ubuntu Box to match the 16 colors palette of the Solarized color theme. I have installed Ubuntu 14.04 Server, no GUI option enabled. When I ssh into this VM and I ...
1
vote
2answers
2k views

cannot ping vagrant machine

My experience with vagrant is very little as most of the time is seems to work. In this case however, I have not been able to get the desired behaviour. I am trying to work on a rails application ...
11
votes
2answers
8k views

Installing mysql-server in vagrant bootstrap shell script (how to skip setup?)

I did try to install mysql-server on my Vagrant Ubuntu 12.04 LTS virtual machine. When I did so, the setup auto-starts. I can see this in the Vagrant output: While not mandatory, it is highly ...
2
votes
1answer
1k views

Running shell script inside with vagrant provision

I have setup a vagrant box using precise64 (ubuntu 14.04) and installed packages needed for octopress. I can ssh into the vagrant box and generate posts and run preview for my octopress site. Now I ...
1
vote
0answers
241 views

Forward local port to remote port in a Vagrant machine

I have MySQL running on my local machine and I need to publish this port to a Vagrant box without any special SSH hackery. Is there a way for me to forward 10.0.2.2:3306 to 127.0.0.1:3306 on the ...
2
votes
0answers
2k views

Vagrant: failed to mount nfs shared folder (mount.nfs: Operation not permitted)

Vagrant throws error message: ==> default: Mounting NFS shared folders... mount -o 'vers=3,udp' 192.168.33.1:'/home/xxx/vagrant/www' /home/www mount.nfs: Operation not permitted ssh to the ...
14
votes
1answer
8k views

Proper syntax for ansible symlink

What is the proper syntax for creating symlinks using ansible? I'm creating a Vagrant virtual environment and running ansible as my provisioner. Everything works fine up until I try to symlink to my ...
1
vote
0answers
418 views

Can I make a vagrant multi-machine VM depend on another?

We have a database VM that we always want to start. We also have a VM that works for a distributed configuration, that we only want to start when we're testing that. My problem is: I want the ...
2
votes
1answer
2k views

Creating a Vagrant box with Docker installed

I'm trying create a nice playground for Docker in Vagrant based on Vagrant's precise64 box. (Code is available at GitHub: rfkrocktk/docker-vagrant-playground) Here's my Puppet provisioning ...