Vagrant 流浪者综合插件在我的Windows 7电脑上不起作用
我想在我的Windows7电脑上使用Vagrant和Chef启动Fedora-20虚拟机,并将其设置为LAMP服务器。我有流浪汉1.6.5。安装了流浪者综合插件1.4.1 我的vagrant文件包含config.omnibus.chef_version=:latest语句,但在运行vagrant up后,不会发生预期的设置。相反Vagrant 流浪者综合插件在我的Windows 7电脑上不起作用,vagrant,chef-solo,Vagrant,Chef Solo,我想在我的Windows7电脑上使用Vagrant和Chef启动Fedora-20虚拟机,并将其设置为LAMP服务器。我有流浪汉1.6.5。安装了流浪者综合插件1.4.1 我的vagrant文件包含config.omnibus.chef_version=:latest语句,但在运行vagrant up后,不会发生预期的设置。相反 ==> default: Running provisioner: chef_solo... The chef binary (either `chef-solo
==> default: Running provisioner: chef_solo...
The chef binary (either `chef-solo` or `chef-client`) was not found on
the VM and is required for chef provisioning. Please verify that chef
is installed and that the binary is available on the PATH.
似乎omnibus插件没有在VM上安装Chef。我还需要做些什么才能让它在我的电脑上正常工作
这是我的流浪汉档案:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "chef/fedora-20"
config.omnibus.chef_version = :latest
config.vm.network "forwarded_port", guest: 80, host: 4567
config.vm.synced_folder "shared-files", "/var/www"
config.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = "chef-recipes/cookbooks"
chef.roles_path = "chef-recipes/roles"
chef.add_role "lamp_stack"
end
end
这是STDOUT:
C:\Users\wbj\f20>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'chef/fedora-20'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'chef/fedora-20' is up to date...
==> default: Setting the name of the VM: f20_default_1413836754304_46591
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 80 => 4567 (adapter 1)
default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /var/www => C:/Users/wbj/f20/shared-files
default: /vagrant => C:/Users/wbj/f20
default: /tmp/vagrant-chef-3/chef-solo-2/roles => C:/Users/wbj/f20/chef-recipes/roles
default: /tmp/vagrant-chef-3/chef-solo-1/cookbooks => C:/Users/wbj/f20/chef-recipes/cookbooks
==> default: Running provisioner: chef_solo...
The chef binary (either `chef-solo` or `chef-client`) was not found on
the VM and is required for chef provisioning. Please verify that chef
is installed and that the binary is available on the PATH.
谢谢大家! 我遇到了这个问题。解决方案是降级到Vagrant 1.6.2,直到Vagrant版本1.7.1发布。这两个版本都解决了我的问题。你能用类似vagrant up-debug>vagrant.log 2>&1和gist/pastebin it的内容获取调试日志吗?你也可以尝试使用一个特定的版本:config.omnibus.chef_version=11.16.4