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
21 views

NFS doesn't seem to work because of files not being found

I'm using the vagrant box files from this tutorial. When changing the projectname in all those files and fixing 1,2 small erros I used vagrant up to init the box. At some point the bootstrap.sh ...
1
vote
0answers
45 views

Can you set an initial size to a Virtualbox Dynamically Allocated Storage Drive?

I want to set the drive so it acts as a fixed drive up until a certain size and dynamically resizes after that point. For example, set the device so that it has 8GB to start with, and once it hits 8GB ...
1
vote
0answers
19 views

Vagrant ssh closes connection after executing -t option

I'm trying to create a script that will bring up my vagrant VM (a Ubuntu box hosted on OSX) navigate to the correct directory and start up my virtual env. I've read that this command should work for ...
2
votes
1answer
156 views

Vagrant fails to bring up eth1 on Xubuntu 16.04 guest

I am relatively new to Linux and Vagrant. I updated my VM guest system (VirtualBox 5.0.18 + Vagrant 1.8.1 on a Windows Host) from Xubuntu 15.10 to Xubuntu 16.04 a while ago. At that point or shortly ...
1
vote
0answers
51 views

How do I run Vagrant as a normal user in Fedora?

I am trying to setup Vagrant in Fedora 23 with libvirt. It boots and everything looks fine until I get asked for "sudo password: Preparing to edit /etc/exports. Administrator privileges will be ...
0
votes
0answers
53 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
79 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
91 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: "192.168....
0
votes
0answers
14 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
34 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
85 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
156 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
42 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
127 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
83 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
21 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
467 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
115 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
301 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
136 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
1k 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
65 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 ...
4
votes
2answers
1k 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
36 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
138 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
756 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
84 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
92 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
55 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
300 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
290 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
130 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
825 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
260 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
5k 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: https://atlas.hashicorp.com/...
15
votes
3answers
14k 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
753 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
63 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. Here'...
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
183 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
348 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
664 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 ...
3
votes
0answers
492 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
424 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 ...
13
votes
2answers
9k 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 ...