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
4
votes
2 answers

Vagrant with VMware ESXi Provider

I am attempting to work with Vagrant and the vagrant-vsphere plugin to deploy machines to my VMware ESXi server. Has anyone had any luck in getting this to work? I realize that vagrant-vsphere is still 0.0.1 though and there are bound to be…
Adam
  • 81
  • 1
  • 2
  • 3
4
votes
0 answers

virtualbox to qemu but results in no bootable device qemu

I use vagrant to create my development vm. I exported the vmdk to vdi, and then convert the vdi to img. cd virtualbox_dir/test_vm VBoxManage clonehd test_vm.vmdk raw.vdi 0% ..... 100% qemu-img convert raw.vdi raw.img virsh create testvm.xml But I…
Daniel Huger
  • 223
  • 4
  • 10
4
votes
3 answers

Running `apt-get upgrade` with Chef Solo

I'm using Chef Solo to provision a Vagrant VM based on Opscode's "Bento" box for Ubuntu 12.04. When it's done provisioning and I SSH in for the first time, the MOTD tells me there are packages and security updates. I then run sudo apt-get upgrade…
Jimmy
  • 193
  • 2
  • 6
4
votes
1 answer

SSH 'connection reset' when attempting multiple simultaneous outbound connections to the same host

I have a script that executes a Rake remote task which executes once for each of two roles. Both roles are users on the same Vagrant instance. So essentially the task is opening two SSH connections to the same VM in parallel and executing some…
yixu34
  • 43
  • 4
4
votes
2 answers

why do Vagrant docs suggest using public IP address 33.33.33.10 for local VMs?

I'm following a tutorial to set up vagrant (a tool to build and configure portable virtual machine images), and it seems that vagrant documentation suggests using IPv4 address 33.33.33.10 to configure a new box. That is a publicly routed IP adress,…
Gert
  • 143
  • 5
4
votes
2 answers

How to have Chef use a different ip?

I'm using a bridged network on a vagrant VM with chef-client. knife node show test1-vagrant shows an ip address of 10.0.2.15, which is eth0. eth1 is 192.168.1.5, which is what DHCP gave it. How can i get chef thinking the ip address is…
Ron Garrity
  • 393
  • 1
  • 3
  • 5
4
votes
3 answers

Vagrant / puppet workflow

I'm new to puppet and vagrant, but I'm developing my own Puppet manifests intended to set up a vagrant box. That is, the puppet manifest is in my Vagrant directory on the host machine, and vagrant is invoking puppet -- there is no puppet server. The…
slim
  • 183
  • 6
3
votes
1 answer

"initdb: encoding mismatch" when running gitlab-ctl reconfigure

I am installing Gitlab-ce Omnibus in a Vagrant box (Debian 18.04 LTS). In my provisioning script, I run gitlab-ctl reconfigure. I get an error: initdb: encoding mismatch Console output: default: * execute[/opt/gitlab/embedded/bin/initdb -D…
Amedee Van Gasse
  • 328
  • 3
  • 18
3
votes
2 answers

Test Kitchen not detecting winrm and uses SSH for windows guest

I'm new to test kitchen with windows I'm testing chef recipes on a windows machine using Test Kitchen with Vagrant (virtualbox) I have win-2012-r2 box that works fine with Vagrant (both winrm and rdp works) But, when using the same with kitchen, it…
Shan
  • 153
  • 1
  • 1
  • 8
3
votes
0 answers

In Vagrant, how can I use synced folders with multi-machine?

I don't know how Vagrant synced folders are implemented, and the documentation doesn't really say, so I'm not sure if this is something that's workable. I have a web app that I run under Vagrant, and it logs to myapp.log -- on the guest, it's…
Manny
  • 31
  • 1
3
votes
1 answer

Install virt-sysprep on Ubuntu 14.04

I'm using vagrant with vagrant-libvirt and I want to create a package via the command-line: vagrant package --output ubuntu14-base.box I've got an error around virt-sysprep being absent (confirm after a search in the system). I tried install those…
3
votes
1 answer

Can I install Azure SDK over command line?

I am attempting to use Vagrant to provision a Windows Server box for an integrated development environment. This environment depends on the Azure SDK. Is there a way for me to write a script that I can use when provisioning this box to download and…
3
votes
1 answer

Vagrant provision : shell script install mariadb-server on Debian prompt error

I'm looking for provisioning a Debian 8.2 Virtualbox VM with MariaDB 10. I use the following : sudo export DEBIAN_FRONTEND=noninteractive sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password password $ROOTDBPWD" sudo…
3
votes
1 answer

Ansible hangs on git clone

I am trying to setup a task that clones a repo in a vagrant box. I have setup agent forwarding properly, added the repo server in ~/.ssh/known_hosts, and have validated I can log in as vagrant user and clone the repo without being asked for…
stefgosselin
  • 257
  • 1
  • 4
  • 14
3
votes
0 answers

uWSGI won't start via Upstart, but starts ok from the console

I'm trying to make uWSGI run on boot using Upstart on a Vagrant box. So I've created /etc/init/uwsgi.conf with the following contents: # simple uWSGI script description "uwsgi tiny instance" start on runlevel [2345] stop on runlevel [06] …
Eugene Yarmash
  • 2,433
  • 5
  • 34
  • 54