vagrant

Curl error 7 on vagrant using guzzle

让人想犯罪 __ 提交于 2019-12-21 23:04:28
问题 I've get an Curl error 7: Failed to connect to site1.local port 8000: Connection refused , when i call it from another local site (site2.local). Both sites run on the same Vagrant box. When i replace the url to an url of an external site (eg. google.com), there is no problem in connecting. Why does vagrant refuse a call from his own? I searched the problem, but couldn't find any solution to this. Is there a way to call to another site on the same server using curl? edit: Vagrantfile: Vagrant

CoreOS Vagrant Virtual box SSH password

女生的网名这么多〃 提交于 2019-12-21 21:34:38
问题 I'm trying to SSH into CoreOS Virtual Box using Putty. I know the username appears in the output when I do Vagrant up but I don't know what the password is. I've also tried overriding it with config.ssh.password settings in Vagrantfile but when I do vagrant up again it comes up with Authentication failure warning and retries endlessly. How do we use Putty to log into this Box instance? 回答1: By default there is no password set for the core user, only key-based authentication. If you'd like to

packaging synced folder with vagrant base box

半城伤御伤魂 提交于 2019-12-21 21:18:48
问题 when packaging a vagrant box, the package.box file does not contain a synced folder /src that has a bunch of repos I downloaded to it during provisioning. What would be the best way to include the synced folder so I can distribute the vm? 回答1: I guess you are using shared folders between your host and your virtual machine. Vagrant package will never package your shared folders because they are not part of the virtual machine, they belongs to your host. The best way to package these files, is

How do I loop vagrant provisioning in multi-machine environments to switch back and forth between machines?

江枫思渺然 提交于 2019-12-21 14:00:23
问题 I have a multi-machine Vagrantfile setting up a 5 node environment. I've been looking around to see what levels of control you have over the order of provisioning, but it's pretty limited: https://docs.vagrantup.com/v2/multi-machine/ I want to provision 5 nodes, then go back to the first node, and run other provisioning steps there. What I mean is that you have a Vagrantfile like this: Vagrant.configure('2') do |config| config.vm.provision some stuff config.vm.define 'node1' do |node1| node1

Vagrant synced folder permission issue with apache

主宰稳场 提交于 2019-12-21 10:13:14
问题 I'm running a Centos6.4 box. Running vagrant up without the synced folder config in Vagrant file is fine. I can access on my host machine via http://localhost:8080 and it displays the Apache page. I could create index.html in /var/www/html folder and it displays fine too. However after adding the line below in the Vagrant file, visiting the page displays 403 Forbidden You don't have permission to access / on this server. error instead: config.vm.synced_folder "./source", "/var/www/html",

Vagrant synced folder permission issue with apache

我与影子孤独终老i 提交于 2019-12-21 10:12:20
问题 I'm running a Centos6.4 box. Running vagrant up without the synced folder config in Vagrant file is fine. I can access on my host machine via http://localhost:8080 and it displays the Apache page. I could create index.html in /var/www/html folder and it displays fine too. However after adding the line below in the Vagrant file, visiting the page displays 403 Forbidden You don't have permission to access / on this server. error instead: config.vm.synced_folder "./source", "/var/www/html",

Cannot mount vagrant synced folder with nfs

 ̄綄美尐妖づ 提交于 2019-12-21 07:56:58
问题 I managed to setting up my Symfony2 project inside a ubuntu vagrant box. But it takes around 20 seconds to load the website through it's webserver. After some research, i came up with using nfs for the sync folder. Here're my setting from Vagrantfile: config.vm.network "private_network", ip: "192.168.56.101" config.vm.synced_folder ".", "/vagrant", :nfs => true, :mount_options => ["dmode=777","fmode=777"] After starting de vagrant box i get the following error ==> default: Mounting NFS shared

where to find config.vm.boot_timeout?

柔情痞子 提交于 2019-12-21 07:37:18
问题 Hi I want to edit the config.vm.boot_timeout in vagrant because I am having problem in booting up the vagrant. where i can find the config.vm.boot_timeout ?and what value should i put ? I am in windows8.1 x86 Thank you in advance. 回答1: You need to run vagrant command to get the location of the vagrant file. And then make changes to the variable config.vm.boot_timeout (Reference) The default value of the variable is 300. You can try changing the default values. Check if you have the latest

Apache fails to start on Vagrant

不打扰是莪最后的温柔 提交于 2019-12-21 07:14:46
问题 In my Vagrant environment I have a guest Ubuntu Virtualbox with a LAMP with default settings. I have my source code on the host machine in the same folder as my Vagrantfile. So on the guest Ubuntu I can access the files in the mounted /vagrant dir like this /vagrant /mysite /index.php /Vagrantfile Now in my Apache config I add a line Alias /mysite /vagrant/mysite After reloading config and restarting apache I can go to localhost:8558/mysite/index.php and it works. The problem is that when I

Map ports so you can access docker running apps from OSX host

烈酒焚心 提交于 2019-12-21 06:07:08
问题 I have been playing with Docker for a while (on OSX via Vagrant) which worked really nice. In order to access my apps running in the docker containers I had to setup Vagrant to use static IPs ("private_network" setup). While this worked well I think the new approach to use boot2docker is a little lighter and more convenient as I can run docker directly in OSX. However, if I run docker with the usual port forwarding I get this error: docker run -p :5672 -p :15672 mikaelhg/docker-rabbitmq 2014