Questions tagged [vagrant]

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.

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.

165 questions
45
votes
8 answers

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 Vagrantfile (I checked docs but there doesn't seem to…
a7omiton
  • 561
  • 1
  • 4
  • 6
25
votes
1 answer

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 site nginx configuration file from sites-enabled.…
jeanpier_re
  • 405
  • 2
  • 5
  • 10
23
votes
1 answer

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 instance . Please don't suggest vagrant-mutate or any…
pl_rock
  • 779
  • 1
  • 6
  • 12
18
votes
5 answers

Removing a vagrant file I see .nfs0000000000b869e300000001

I removed a file and now I see: $ ls 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 new_page_object_methods.rb -rw-r--r-- 1 502 16384 Sep 18 18:42…
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
17
votes
2 answers

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 recommended that you set a password ││ for the MySQL…
Sam
  • 273
  • 1
  • 2
  • 6
13
votes
2 answers

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 of, probably, useful information. Where is this…
Nikos Alexandris
  • 1,460
  • 2
  • 18
  • 41
12
votes
1 answer

ssh-agent forwarding for a Vagrant VM

I'm currently looking at setting up a Vagrant environment on my Mac machine, so that I can run vagrant up and it will then install rbenv and ruby and all I need. Then I have a Bash script that will fetch all my repos from github. The only thing is…
TheLegend
  • 6,515
  • 4
  • 15
  • 14
12
votes
2 answers

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, like vagrant status: [florian@localhost local]$…
Florian Margaine
  • 523
  • 4
  • 11
11
votes
2 answers

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 instances. I'm learning that clipboard functionality…
Brent
  • 193
  • 1
  • 2
  • 5
7
votes
3 answers

Vagrant ssh doesn't display command prompt

I have a computer that runs Windows 8.1 and for some projects I use Vagrnat and VirtualBox, however after upgrading VirtualBox and Vagrant, after running Vagrant ssh, vagrant doesn't display the command prompt. I thought that may be it's a problem…
John
  • 71
  • 1
  • 2
7
votes
2 answers

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 Vagrantfile as follows: server.vm.network…
techraf
  • 5,831
  • 10
  • 33
  • 51
6
votes
1 answer

dpkg: warning: 'ldconfig' not found in PATH or not executable - Ubuntu 12 - Vagrant

I am working on setting up a Vagrant / Puppet install so that new developers can have a clean development environment for our Rails project. The basic Vagrant configure commands are: config.vm.box = 'precise32' config.vm.box_url =…
Dave Collins
  • 163
  • 1
  • 1
  • 5
5
votes
1 answer

Crontab command missing in Fedora 31

I am using vagrant boxes for several tests and in this particular case it is the Fedora 31 box from Bento with VirtualBox. When trying to use the crontab command, I get an error that it is not found. A quick search with locate tells me that there is…
Thorian93
  • 733
  • 2
  • 6
  • 17
5
votes
0 answers

Vagrant configure eth0

I started using Vagrant recently to quickly install virtual machines. I noticed that my network configuration isn't perfect, but I can't get it right. This is my Vagrantfile: ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt' Vagrant.configure("2") do…
jsus
  • 96
  • 5
5
votes
1 answer

Why ssh immediately disconnects when using -F /dev/stdin syntax?

I've configured and booted default Ubuntu VM box by the following commands: vagrant init ubuntu/trusty64; vagrant up --provider virtualbox Now, for education purposes, I'd like to use the following syntax to ssh it: ssh -F /dev/stdin < <(vagrant…
kenorb
  • 20,250
  • 14
  • 140
  • 164
1
2 3
10 11