내 Windows 7 PC에서 Vagrant와 Chef를 사용하여 Fedora-20 VM을 스핀 업하고 LAMP 서버로 제공하려고합니다. 나는 방랑제 1.6.5를 가지고있다. vagrant-omnibus plugin (1.4.1)이 설치됩니다.내 Windows 7 PC에서 작동하지 않는 Vagrant Omnibus 플러그인
My Vagrant 파일에는 "config.omnibus.chef_version = : latest"문이 포함되어 있지만 "vagrant up"을 실행 한 후에는 예상 된 프로비저닝이 발생하지 않습니다. 대신
==> 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.
옴니버스 플러그인이 Chef를 VM에 설치하지 않은 것 같습니다. 이 작업을 내 PC에서 수행하려면 무엇을해야합니까?
이 내 방랑 파일입니다
# -*- 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 up --debug> vagrant.log 2> & 1' 및 gist/pastebin과 같은 디버그 로그를 얻을 수 있습니까? – tmatilai
특정 버전을 사용해 볼 수도 있습니다 :'config.omnibus.chef_version = "11.16.4"' – tmatilai