vagrant

Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version

那年仲夏 提交于 2020-01-18 05:30:02
问题 I just downloaded Vagrant and did the settings as well as install virtual box. I just can't start my project (vagrant up). I have a vagrant file and so on. What can I do? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'scotch/box' could not be found. Attempting to find and install ... default: Box Provider: virtualbox default: Box Version: >= 0 The box 'scotch/box' could not be found or could not be accessed in the remote catalog. If this is a

Vagrant box could not be found or could not be accessed in the remote catalog - incompatible curl version

寵の児 提交于 2020-01-18 05:27:32
问题 I just downloaded Vagrant and did the settings as well as install virtual box. I just can't start my project (vagrant up). I have a vagrant file and so on. What can I do? $ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'scotch/box' could not be found. Attempting to find and install ... default: Box Provider: virtualbox default: Box Version: >= 0 The box 'scotch/box' could not be found or could not be accessed in the remote catalog. If this is a

How to forward a port to vagrant guest if this port already listened by host machine

做~自己de王妃 提交于 2020-01-17 07:02:18
问题 For example I have an app which run vagrant machines dynamically and expect some info from them will be sent through http to specific host machine port. So, my app listening specified port (http server) and I can't forward that port: C:\node-vagrant-test-task>vagrant reload ==> default: Clearing any previously set forwarded ports... Vagrant cannot forward the specified ports on this VM, since they would collide with some other application that is already listening on these ports. The

vagrant up command return errors

扶醉桌前 提交于 2020-01-16 20:19:27
问题 I am setting up a fast hadoop cluster development envirment with vagrant, but met error when "vagrant up". I have tried "vagrant plugin install vagrant-centos7_fix", but no luck. followings are these errors: C:/zjsw/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:70:in `block in <class:Response>': undefined method `downcase' for nil:NilClass (NoMethodError) from C:/zjsw/HashiCorp/Vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:68:in

Laravel环境配置之安装Homestead

烂漫一生 提交于 2020-01-16 05:35:40
laravel requirements: PHP >= 5.5.9 (机器上yum安装的是 5.3.3 ) OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension Laravel Homestead是一个官方的、预封装的Vagrant“箱子”,它提供给你一个奇妙的开发环境而不需要你在本机上安装PHP、HHVM、web服务器和其它的服务器软件。不用再担心搞乱你的操作系统!Vagrant箱子是完全可支配的。如果出现故障,你可以在几分种内完成销毁和重建箱子! Homestead能运行在所有的Windows、Mac或Linux系统上,它包含了Nginx、PHP 5.6、MySQL、Postgres、Redis、Memcached和你开发神奇的Laravel应用程序需要的所有其它软件。 后面的所有命令都是在 Git Bash 里面执行,并不是在 Windows 的命令提示符里面执行,这是新手很容易犯的一个错误,切记,一定要在 Git Bash 里面执行命令。 安装Homestead Vagrant Box : vagrant box add laravel/homestead 进入 Windows 的 home 目录cd ~执行git clone https:/

Laravel Homestead (Windows)

醉酒当歌 提交于 2020-01-16 05:06:15
问题 Today I have been trying to install the Laravel library together with Laravel Homestead.. But I can't seem to get it working. The first thing, Laravel documentation tells you to do: composer global require "laravel/homestead=~2.0" , but it didn't work. So I searched the internet some and found: composer global require "laravel/homestead=~3.0" , which actually worked. But now when I try to run the homestead command in my command line, it gives me this: http://prntscr.com/9perhj, that's the

Authentication failure when using vagrant up with a barebones custom package

こ雲淡風輕ζ 提交于 2020-01-15 11:04:50
问题 I'm new to Vagrant, so I'm taking baby steps to make sure that I understand the process. I want to ensure that I can create a custom package before I start doing any serious development in the virtual machine. For now, I have simply used the official ubuntu/xenial64 Vagrant box, and provisioned it so that nginx is installed. You can find my step-by-step guide to this here. My customized box works fine. I use vagrant package --output nginx.box and then vagrant box add nginx nginx.box to add my

Is it possible to define what happens prior to vagrant destroy?

一个人想着一个人 提交于 2020-01-15 06:50:33
问题 I have a Vagrantfile that clones the required cookbook repos on vagrant up . The problem is, it also does this on vagrant destroy . Is there a way to define 'pre-construction' and 'pre-destruction' commands or does the Vagrantfile just get run in totality each time vagrant is invoked regardless of the parameters? 回答1: I don't know about a destroy hook, but you can detect first time and post-destoy actions in the Vagrantfile by checking the existence of the machine ID: File.exists?(".vagrant

Vagrant VMs on Multiple Physical Machines

别说谁变了你拦得住时间么 提交于 2020-01-15 05:42:06
问题 I see that Vagrant has an AWS plugin that supports using Vagrant to provision and run multiple ec2 instances. Does this functionality exist outside of AWS? Usage Example: Currently I have 5 VMs on a single machine - this was straightforward to setup and manage via the VagrantFile. I have access now to another 3 machines and want to manage these with 2 VMs on one machine and a single VM on each additional machine. All machines are connected on a private network via a switch and a public wifi

Vagrant & Chef: uninitialized constant Chef::Resource::LWRPBase

落爺英雄遲暮 提交于 2020-01-15 04:39:08
问题 I get this error when i try to run "vagrant provision": Running chef-solo... stdin: is not a tty [2014-05-15T12:21:41+00:00] INFO: *** Chef 10.14.2 *** [2014-05-15T12:21:41+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[vim]", "recipe[git]", "recipe[mysql::server]", "recipe[apache2]", "recipe[php]", "recipe[vhosts]", "recipe[apache2::mod_php5]", "recipe[php::module_mysql]", "recipe[php::module_apc]", "recipe[php::module_curl]", "recipe[phpmyadmin]",