首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >流浪Omnibus插件在我的Windows 7 PC上不起作用

流浪Omnibus插件在我的Windows 7 PC上不起作用
EN

Stack Overflow用户
提问于 2014-10-21 05:01:00
回答 1查看 795关注 0票数 1

我想在我的Windows7 PC上使用Vagrant和Chef启动一个Fedora-20 VM,并将其配置为LAMP服务器。我使用的是Vagrant 1.6.5。并且安装了vagrant-omnibus插件(1.4.1)。

我的Vagrantfile包含"config.omnibus.chef_version = :latest“语句,但是在运行"vagrant up”之后,预期的配置没有发生。相反,

代码语言:javascript
复制
==> 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。我还需要做些什么才能让它在我的PC上正常工作?

这是我的Vagrant文件:

代码语言:javascript
复制
# -*- 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:

代码语言:javascript
复制
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.

谢谢!

EN

回答 1

Stack Overflow用户

发布于 2014-12-13 03:23:04

我遇到了这个问题。解决方案是降级到Vagrant 1.6.2,直到Vagrant版本1.7.1发布。两个版本都为我解决了这个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26474835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档