在 Vagrant 中收到这个奇怪的错误,想知道是否有人可以帮忙

发布于 2024-09-26 02:35:58 字数 778 浏览 3 评论 0原文

我正在尝试设置 Vagrant。我正在遵循网站上的指南,目前在指南的配置部分遇到问题(http://vagrantup.com/docs/getting-started/provisioning.html)我已经完全按照它的方式进行操作网站,但我收到此错误,我在 Mac OSX 上,如果它有任何重要的话,

evan@superduper ~/vagrant_guide $ vagrant up
    There was a problem with the configuration of Vagrant. The error message(s)
    are printed below:

    chef:
     * Run list must not be empty.

这也是我的 Vagrant 文件代码,如果这也有帮助的话:

Vagrant::Config.run do |config|
    config.vm.box = "lucid32"

    # Enable the chef solo provisioner
    config.vm.provisioner = :chef_solo

    # Grab the cookbooks from the Vagrant files
    config.chef.recipe_url = "http://files.vagrantup.com/getting_started/cookbooks.tar.gz"
end

有人知道这是什么以及我如何修复它吗?

谢谢杰

I am trying to set up Vagrant. I am following the guide on the web site and currently have trouble with the Provisioning part of the guide (http://vagrantup.com/docs/getting-started/provisioning.html) I have followed this thing to exactly as it is on the site but I am receiving this error, I am on Mac OSX if it's of any important

evan@superduper ~/vagrant_guide $ vagrant up
    There was a problem with the configuration of Vagrant. The error message(s)
    are printed below:

    chef:
     * Run list must not be empty.

Here is my code for the Vagrant file as well if this also helps:

Vagrant::Config.run do |config|
    config.vm.box = "lucid32"

    # Enable the chef solo provisioner
    config.vm.provisioner = :chef_solo

    # Grab the cookbooks from the Vagrant files
    config.chef.recipe_url = "http://files.vagrantup.com/getting_started/cookbooks.tar.gz"
end

Does anyone what this is from and how I can fix it?

Thanks

J

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

岁月无声 2024-10-03 02:35:58

您需要将此行添加到您的 Vagrantfile 中:

config.chef.add_recipe("vagrant_main")

You need to add this line to your Vagrantfile:

config.chef.add_recipe("vagrant_main")
非要怀念 2024-10-03 02:35:58

在 vagrant 0.6.0 及更高版本中,您必须在 Vagrantfile 中添加至少一个配方,因为默认配方列表为空。旧的 Vagfile 必须更新才能使用 0.6.0+

这里是更改

我建议您在更新 vagrant 之前阅读变更日志。该项目是测试版,因此 API 正在快速变化。

作者承诺该 API 将在 1.0 版保持稳定:-)

In vagrant 0.6.0 and above you must add at least one recipe in your Vagrantfile, because the default recipe list is empty. Old Vagfiles have to be updated, to work with 0.6.0+

Here is the change.

I recommend you to read the changelog before updating vagrant. The project is beta, so the API is changing rapidly.

The author promises that the API will be stable at version 1.0 :-)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文