vagrantfile

vagrant synced folders not working real-time on virtualbox

你离开我真会死。 提交于 2019-11-30 14:22:15
问题 my synced folders are not working properly, they are synced one-time at start but when I make changes on the host machine, vagrant is not syncing it real-time. First some details on my system: OS: Linux Mint 18 Sarah Virtualbox version: 5.0.24-dfsg-0ubuntu1.16.04.1 Vagrant version: 1.9.0 vagrant-hostmanager (1.8.5) vagrant-share (1.1.6) vagrant-vbguest (0.13.0) Before we start discussing, I am not using newest version of Virtualbox since it is not in the repository and a simple vagrant up

Download vagrant box file locally from atlas and configuring it

孤街醉人 提交于 2019-11-30 06:12:08
问题 I want to download a vagrant box file from Atlas for using it later locally with my vagrant file. How can I do this, and how can I configure it? 回答1: To download a file you have to add version and provider in the URL. For example for downloading trusty64 First you need its URL which is https://app.vagrantup.com/ubuntu/boxes/trusty64/ then you have to add version and provider afterwards, for our example the download URL would be. https://app.vagrantup.com/ubuntu/boxes/trusty64/versions

Vagrant port forwarding for Mysql

无人久伴 提交于 2019-11-29 01:39:44
I am trying to setup port forwarding in Vagrantfile to connect to guest mysqld from host system, but get reading initial communication packet error. Host: Yosemite, Guest: Trusty, vagrant 1.7.4 Vagrantfile(host): config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.network "forwarded_port", guest: 3306, host: 3309 my.ini(guest): bind-address = 127.0.0.1 8080 forwarding works like a charm. mysql -h127.0.0.1 -uroot -p from guest also works. mysql -h127.0.0.1 -P 3309 -uroot -p from host results with reading initial communication packet error. When I telnet from host, the connection

Changing Vagrantfile causes “vagrant ssh” to prompt for a password?

一个人想着一个人 提交于 2019-11-28 23:11:13
I've been playing around with setting up an environment using Vagrant, and I'm having an issue with the vagrant ssh command. When I change the path of the mounted share folder in the Vagrantfile, and do a vagrant reload , I'm no longer able to vagrant ssh without it asking me for a password. This was my original configuration for a mounted share, which works: config.vm.synced_folder "./", "/home/vagrant/shared" This is what I was trying to change to and it doesn't work after vagrant reload (asks me for password): config.vm.synced_folder "./", "/home/vagrant" Everything else in the file

Download vagrant box file locally from atlas and configuring it

最后都变了- 提交于 2019-11-28 15:03:07
I want to download a vagrant box file from Atlas for using it later locally with my vagrant file. How can I do this, and how can I configure it? To download a file you have to add version and provider in the URL. For example for downloading trusty64 First you need its URL which is https://app.vagrantup.com/ubuntu/boxes/trusty64/ then you have to add version and provider afterwards, for our example the download URL would be. https://app.vagrantup.com/ubuntu/boxes/trusty64/versions/20180206.0.0/providers/virtualbox.box Then you have to add it locally from your vagrant file. To add it locally to

Can't ssh to vagrant VMs using the insecure private key (vagrant 1.7.2)

本秂侑毒 提交于 2019-11-28 03:41:01
I have a cluster of 3 VMs. Here is the Vagrantfile: # -*- mode: ruby -*- # vi: set ft=ruby : hosts = { "host0" => "192.168.33.10", "host1" => "192.168.33.11", "host2" => "192.168.33.12" } Vagrant.configure("2") do |config| config.vm.box = "precise64" config.vm.box_url = "http://files.vagrantup.com/precise64.box" config.ssh.private_key_path = File.expand_path('~/.vagrant.d/insecure_private_key') hosts.each do |name, ip| config.vm.define name do |machine| machine.vm.hostname = "%s.example.org" % name machine.vm.network :private_network, ip: ip machine.vm.provider "virtualbox" do |v| v.name =

Vagrant port forwarding for Mysql

心已入冬 提交于 2019-11-27 16:09:06
问题 I am trying to setup port forwarding in Vagrantfile to connect to guest mysqld from host system, but get reading initial communication packet error. Host: Yosemite, Guest: Trusty, vagrant 1.7.4 Vagrantfile(host): config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.network "forwarded_port", guest: 3306, host: 3309 my.ini(guest): bind-address = 127.0.0.1 8080 forwarding works like a charm. mysql -h127.0.0.1 -uroot -p from guest also works. mysql -h127.0.0.1 -P 3309 -uroot -p

Windows CRLF to Unix LF Issues in Vagrant

痴心易碎 提交于 2019-11-27 13:46:59
问题 I'm working on provisioning a few VMs using Vagrant . Here's the situation: Host : Windows 7 (64-bit) Guest : Ubuntu 14.04 (64-bit) I am having an issue getting the CRLF line endings to convert to LFs. This is causing the bash scripts in the shared folder to fail within the guest machine (see below). vagrant@vagrant-host:/vagrant/bin$ sudo bash build-ubuntu-14.04.1-c make.sh build-ubuntu-14.04.1-cmake.sh: line 5: $'\r': command not found build-ubuntu-14.04.1-cmake.sh: line 19: $'\r': command

Symbolic links and synced folders in Vagrant

柔情痞子 提交于 2019-11-27 10:05:51
I want to use Vagrant to provide a common development environment to my team. The hosts are completely different: Some use OS X, some Linux, and some Windows. Some use VMware, some use VirtualBox. Inside of the VM we want to run Linux. So far, everything is fine. Now our idea was that each developer shall be able use the IDE of their choice, and hence we have introduced a synced folder that shares the source code between the host and the VM. This basically, works as well … except for symbolic links. Inside of our source code we actually do have a few symbolic links, which is not a problem

How to change Vagrant 'default' machine name?

你说的曾经没有我的故事 提交于 2019-11-26 21:09:33
Where does the name 'default' come from when launching a vagrant box? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... Is there a way to set this? odigity I found the multiple options confusing, so I decided to test all of them to see exactly what they do. I'm using VirtualBox 4.2.16-r86992 and Vagrant 1.3.3. I created a directory called nametest and ran vagrant init precise64 http://files.vagrantup.com/precise64.box to generate a default Vagrantfile. Then I opened the VirtualBox GUI so I could see what names the boxes I create would show up as. Default Vagrantfile