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
7
votes
1 answer

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 service using sudo service docker start it gives…
Kevin Goedecke
  • 261
  • 2
  • 7
7
votes
1 answer

start on vagrant-mounted (upstart) equivalent in systemd

I have a Vagrant box running Ubuntu 15.04, which has an upstart script that starts a service when the system boots. It has a start on vagrant-mounted stanza because the service requires that the /vagrant directory be mounted by Vagrant. I am now…
TJ Mazeika
  • 173
  • 4
7
votes
1 answer

gunicorn not fully reloading after an HUP signal

I'm trying to get a working supervisor/gunicorn/django setup on vagrant. I am using python-watchdog to try and restart gunicorn when code changes happen. I am using the following supervisor configuration for…
synic
  • 793
  • 1
  • 8
  • 13
7
votes
2 answers

Weird network problems with Vagrant, VirtualBox, Ansible and Ubuntu Server box

We are using Vagrant and Ansible to provision VirtualBox machine. It was working great, but recently we've started to encounter some weird network problems with tasks that require access to the Internet, like: apt-get update, composer update, gem…
Slava Fomin II
  • 1,701
  • 4
  • 17
  • 23
7
votes
1 answer

How to deliver private ssh keys for a virtualbox controlled by vagrant?

By default, Vagrant uses an insecure private key used when logging into the machine with vagrant ssh. Vagrant supports specifying a different private key via private_key_path however I am not clear how I can best deliver this key with the box file.…
JE42
  • 221
  • 1
  • 2
  • 5
7
votes
2 answers

httpd service will not start on boot under CentOS 6

I am having trouble configuring a CentOS 6 Vagrant setup to start the Apache service on boot. I have tried using chkconfig and the OS seems to just ignore it. When I run sudo chkconfig --list httpd, I get httpd 0:off 1:off 2:on 3:on…
Zac Crites
  • 211
  • 2
  • 7
7
votes
0 answers

Vagrant bridge to openvpn interface?

Setup: A box running OpenVPN server and few Vagrant virtual machines Problem: I would like to access Vagrant boxes directly from VPN clients as regular machines, and not on only few forwarded ports. Configuration: OpenVPN has interface tun0: tun0 …
gerasalus
  • 231
  • 1
  • 2
  • 5
7
votes
3 answers

How do you automatically install puppet modules on `puppet apply`

Is it possible to automatically install or include puppet modules in your puppet config? I'm having to manually run puppet module install before running puppet apply.
Mike
  • 73
  • 1
  • 4
7
votes
3 answers

Vagrant OS X host nfs share permissions error - Failed to set owner to '1000'

I am a Vagrant and Puppet newbie, I have created a Base Box with Debian Squeeze plus standalone Puppet, using the instructions here to install Puppet with the Puppetlabs packages. The box itself seems to import successfully but once I get onto…
rachelandrew
  • 71
  • 1
  • 4
7
votes
2 answers

Virtualbox VM (spawned by Vagrant) running, but inaccessible. What now?

I have a Virtualbox VM running Ubuntu that was started by Vagrant, on an OSX host. At some point, my ssh session to the guest stopped responding. I tried vagrant halt from a terminal window on the host (OS X). The shutdown process seemed to also…
Matt V.
  • 837
  • 1
  • 9
  • 12
6
votes
1 answer

Vagrant up not working, it requires a manual fsck

My setup: My OS is Ubuntu 18.04 Vagrant 2.0.0 VirtualBox 5.2.18 r124319 Ubuntu installed into vagrant/virtualbox (version uknown) sudo vagrant up was always working, suddenly it has stopped working... it gets stuck on SSH auth method: private key…
cawecoy
  • 273
  • 3
  • 11
6
votes
3 answers

php56w-common conflicts with older version of php (Centos)

I am trying to update my vagrant box to use PHP 5.6, and I am basically doing the following process on the command line. sudo yum remove php* (remove PHP) wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm (Installs the latest remi…
Zabs
  • 191
  • 2
  • 3
  • 10
6
votes
1 answer

How to make a Cent OS install as similar to an EC2 rhel based instance as possible?

I'm trying to setup vagrant to deploy locally, while we also want to deploy to elasticbeanstalk. So how can I make my local cent OS Vagrant VM as close to the Amazon EMI as possible? My co-worker suggested possibly installing everything under…
6
votes
1 answer

Is it possible to execute the Vagrant Ansible provisioner on a Windows host machine?

It seems that Vagrant doesn't let me automatically provision the Ansible provisioner on Windows using Vmware. I'm not really sure whether Ansible has to be installed on the host machine, (in my case Windows) or on the guest. I tried to…
Hyperfocus
  • 1,177
  • 4
  • 14
  • 23
6
votes
3 answers

Vagrant - access guest from host via hostname

I have vagrant 1.2.2 installed in my development machine; a laptop. I use same laptop in three different environments with different networking settings. My VagrantFile looks like: Vagrant.configure("2") do |config| config.vm.box = "lucid32" …
vulcan raven
  • 215
  • 1
  • 2
  • 10