Questions tagged [vagrant]

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 Stack Overflow.

Vagrant is a platform independent tool written in Ruby, 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. Lots of information and very good in-depth documentation can be found on the homepage: Vagrant - Virtualized development for the masses.


Footnote:
Please refer to Meta.SF for some background on the recommendation why questions regarding vagrant are likely to get a better reception and possibly more answers on StackOverflow than on ServerFault.

454 questions
0
votes
1 answer

Can 'vagrant share' be used from behind firewall, that blocks pretty much everything?

My configuration: ordinary PC computer Debian 8 GNU/Linux 32bit as OS ( fresh, stock install w/o configuring any firewalls if they are configured they are done by installer ) latest vagrant installed from vagrant .deb package from vaagrant…
0
votes
2 answers

Windows browsers cannot access intranet site on port, nmap can see it, other devices also

Hosting a site on OS X from a Vagrant VM (Ubuntu), port forwarded on 6789. I.e. port 6789 in the VM is forwarded to 6789 on the host. Can access from host OS as usual (localhost:6789), via VM IP (192.168.10.10:6789), or via virtual hosts from…
Swader
  • 499
  • 2
  • 5
  • 18
0
votes
1 answer

How can I modify the $PATH used by my vagrant provisioning script?

I have a shell script in /etc/profile.d that adds some directories to my $PATH, but vagrant doesn't see when running a privileged provisioning script. This uses sudo and sudo does not see this modified $PATH. Is there a way to get vagrant to see…
wsaxton
  • 195
  • 11
0
votes
1 answer

How does spinning up a node within a cluster reduce CPU load?

I have a VM (representing a baremetal server) with a load balancer and a cluster of 3 container nodes that requests distribute to. Say some threshold is hit and I scale up a 4th node in the cluster. Clearly, more requests can be processed, but does…
coderkid
  • 193
  • 1
  • 5
0
votes
1 answer

Couchbase can not access web console

I am running a Vagrant machine on Windows 10 using CentOS 6.7 and have installed Couchbase. For some reason I can not access the couchbase admin from the browser. When testing with telnet 192.168.56.101 8091 I get this: Connected to…
0
votes
1 answer

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: vagrant provision or: vagrant reload --provision but…
kenorb
  • 6,499
  • 2
  • 46
  • 54
0
votes
1 answer

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 an Ansible playbook on the remote outbound…
Itai Ganot
  • 10,644
  • 29
  • 93
  • 146
0
votes
1 answer

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 then ran sudo -i, and mysql -u root -proot, and it…
Francis
  • 113
  • 1
  • 7
0
votes
1 answer

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 follows: ==> default: [vagrant-hostsupdater]…
James Murphy
  • 101
  • 2
0
votes
1 answer

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 like it doesn't install: ==> default: Running…
Kit Sunde
  • 946
  • 3
  • 12
  • 33
0
votes
1 answer

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 machine through vagrant and Git Bash and run the…
Aditya
  • 101
  • 2
0
votes
3 answers

Terraform, how to provision droplet with salt-minion (masterless)

I've managed to get a local development server running with Vagrant, provisioning it with Salt in a masterless configuration. Now, I'm trying to take advantage of the existing salt states to provision a production server, but so far haven't figure…
nunop
  • 211
  • 3
  • 10
0
votes
1 answer

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 the DNS from any node. But the question is how…
0
votes
1 answer

URL incorrectly redirecting to other site hosted on same server (nginx)

I have an Ubuntu VM running nginx that I'm part way through configuring for SSL. I've defined some custom local domains that I use for development, stored in my hosts file (on the host machine, which is OSX): 192.168.50.50 foo.dev 192.168.50.50 …
0
votes
1 answer

How can I use stdout within an ansible conditional correctly?

tasks: - name: check if rpmforge installed shell: rpm -q rpmforge-release-0.5.3-1.el6.rf.i686 register: shell_output - name: Enable repo for htop shell: "{{ item }}" with_items: - wget…
codecowboy
  • 1,307
  • 7
  • 18
  • 31