我安装了Vagrant,Vagrant init工作正常.当我现在运行Vagrant时,我收到此错误:
The executable 'cygpath' Vagrant is trying to run was not
found in the %PATH% variable. This is an error. Please verify
this software is installed and on the path.
Run Code Online (Sandbox Code Playgroud)
我使用cygwin作为终端,我有Windows 8,我已经C:\cygwin64\bin在我的PATH中添加了一些变量.
我的问题是,当我指定了我的cygwin bin的路径时,为什么会收到此错误消息?
谢谢!
在我的Vagrantfile中,我有一个像这样的配置器:
config.vm.provision "reset", type: "shell", run: "always" do |s|
s.privileged = false
s.inline = "bash /path/to/my/reset/script.sh"
end
Run Code Online (Sandbox Code Playgroud)
通常情况下配置流浪汉,它运行正常.但我想做的是设置一个只在我手动调用时运行的配置器.所以,如果我有以下配置者:
config.vm.provision "otherScript", type: "shell", run: "manual" do |s|
s.privileged = false
s.inline = "bash /path/to/my/other/script.sh"
end
Run Code Online (Sandbox Code Playgroud)
我会用它来运行它vagrant provision --provision-with otherScript.我已经可以与其他供应商一起做了.但我无法找到一种方法来做到这一点,当我做的事情,vagrant provision它跳过任何运行设置manual.除了我可以"永远"使用之外,我在与之相关的文档中找不到任何内容.
我考虑过使用像fabric或者调用(python 3)这样的东西但是我必须在团队中的所有计算机上进行设置.我可以使用脚本设置,但我认为如果可能,这可能会更容易.
有没有办法实现这个目标?设置只在我手动调用它时才运行的配置器?
在我的Windows 7上我使用:
我有一个带有一些PHP软件(piwik)的ubuntu vagrant box,它在特定的CLI命令上执行一些涉及文件的处理.我已经测量了命令完成从guest(ubuntu)到主机(win7)的各种类型共享所需的时间:
config.vm.network "private_network", type: "dhcp"和config.vm.synced_folder "piwik", "/web-pub/piwik", :nfs => true, :mount_options => ['actimeo=2'])./tmp,这是不共享的.我确认在不同的任务上按比例相似的数字(例如drush cc all在香草drupal 7安装上).
你知道如何让共享文件夹的速度超过5秒吗?我想避免基于rsync的解决方案.
我尝试了以下操作来同步从主机到客户机的多个文件夹.但只有一个文件夹正在同步,后一个文件夹.
config.vm.synced_folder "host/site1", "/var/www/site1"
config.vm.synced_folder "host/site2", "/var/www/site2"
Run Code Online (Sandbox Code Playgroud) 我有一个奇怪的问题vagrant ssh。类似的问题,例如Vagrant 在 SSH 密钥更新后要求输入密码,或(vagrant & ssh) 需要密码,或Vagrant ssh 身份验证失败对我没有帮助。
所以,剧情。
我有一台运行 Ubuntu 14.04.3 的虚拟机。所有设置都是根据这篇文章进行的:https : //blog.engineyard.com/2014/building-a-vagrant-box。
注意:我可以使用带有 vagrant 的 insecure_private_key(转换为 *.ppk)的 Putty ssh 到这个虚拟机,它位于“C:/Users/Gino/.vagrant.d/insecure_private_key。密码没有被提示。
然后我打包了这个虚拟机,用这个包初始化 vagrant 并运行vagrant up. 我收到“ Warning: Authentication failure. Retrying...”错误。但是尽管如此我可以vagrant ssh到这台机器,但它要求我输入密码。如果我尝试ssh使用带有必要密钥的 Putty(如第一段中所示),它也会要求我输入密码。
我vagrant halt编辑了这台机器,在 VirtualBox VM 的列表中找到它并手动运行它。之后,我尝试ssh使用具有相同密钥的 Putty 访问这台机器并成功 - 我可以在没有任何密码的情况下登录。
的结果vagrant ssh-config,如果需要:
h:\VagrantBoxes\main-server32>vagrant ssh-config
Host default
HostName 127.0.0.1
User vagrant
Port 2222 …Run Code Online (Sandbox Code Playgroud) 找不到功能'nfs_mount'.这是用户永远不会看到的内部错误.请报告错误.
Cmd
C:\var\www\cc-dev-env>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine …Run Code Online (Sandbox Code Playgroud) 我一直在尝试从Windows上的Homestead文件夹中启动流浪汉,但一直在显示
bash:vagrant:找不到命令
我想这是在Windows上配置命令的问题
请问,这可以做些什么?提前致谢!
我在我的系统上安装了vagrant 1.9.6和oracle虚拟盒5.1.22.当我跑出流浪汉并尝试在GIT bash上切换到vagrant ssh时,它会挂在那里,没有任何东西让它对我有用.
您好,我正在尝试安装 vagrant 插件,但在 mingW64 中出现以下错误
$ vagrant plugin install vagrant-winnfsd
Installing the 'vagrant-winnfsd' plugin. This can take a few minutes...
Vagrant failed to load a configured plugin source. This can be caused
by a variety of issues including: transient connectivity issues, proxy
filtering rejecting access to a configured plugin source, or a configured
plugin source not responding correctly. Please review the error message
below to help resolve the issue:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
Source: https://rubygems.org/
Run Code Online (Sandbox Code Playgroud)
我位于防火墙后面,必须手动通过公司证书。我更新了我的 …
我在我的Windows 10机器笔记本电脑上安装了PyCharm Professional 2017.3.2,并将其配置为使用运行conda环境的Vagrant Ubuntu 16.04服务器(Virtualbox)VM作为远程解释器.我能够使用这个环境执行Python脚本,但数字不会显示.例如,尽管命令没有呈现图形,但https://www.jetbrains.com/help/pycharm/scientific-mode-tutorial.html中的示例返回退出代码0 plt.show().没有报告错误.
给出的后端matplotlib.get_backend()是module://backend_interagg.我已经看到提到DISPLAY在VM上设置或安装Xorg,但这似乎是在后端使用QT时来自较旧的帖子.任何人都可以建议如何使用最近的设置显示情节?
vagrant-windows ×10
vagrant ×8
vagrantfile ×2
virtualbox ×2
cygwin ×1
filesystems ×1
matplotlib ×1
nfs ×1
pycharm ×1
ruby ×1
ssh ×1
ubuntu ×1
vagrant-ssh ×1