首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >很难理解Vagrant想要什么或者它是如何工作的(Vagrant,provider vmware_esxi)

问很难理解Vagrant想要什么或者它是如何工作的(Vagrant,provider vmware_esxi)
EN

Stack Overflow用户
提问于 2018-12-02 23:32:08
回答 1查看 588关注 0票数 0

我试图遵循这个页面的说明,https://github.com/josenk/vagrant-vmware-esxi,我在windows机器上使用Vagrant (win 10),我希望能够在一个独立的ESXI6.5服务器上部署am (免费版本-演示许可证过期)。这里没有VCenter。

我正在使用这个命令行

流浪向上--提供者=vmware_esxi

代码语言:javascript
复制
root@110.10.10.10 password:
Bringing machine 'default' up with 'vmware_esxi' provider...
==> default: Box 'cdua/ubuntu16' could not be found. Attempting to find and install...
    default: Box Provider: vmware_esxi, vmware, vmware_desktop, vmware_fusion, vmware_workstation
    default: Box Version: 16.04
==> default: Loading metadata for box 'cdua/ubuntu16'
    default: URL: https://vagrantcloud.com/cdua/ubuntu16
The box you're attempting to add doesn't support the provider
you requested. Please find an alternate box or use an alternate
provider. Double-check your requested provider to verify you didn't
simply misspell it.

If you're adding a box from HashiCorp's Vagrant Cloud, make sure the box is
released.

Name: cdua/ubuntu16
Address: https://vagrantcloud.com/cdua/ubuntu16
Requested provider: ["vmware_esxi", "vmware", "vmware_desktop", "vmware_fusion", "vmware_workstation"]

这是我的Vagrantfile文件

代码语言:javascript
复制
    #
#  Fully documented Vagrantfile available
#  in the wiki:  https://github.com/josenk/vagrant-vmware-esxi/wiki
Vagrant.configure('2') do |config|

  config.vm.box = "cdua/ubuntu16"
  config.vm.box_version = "16.04"
  config.vm.synced_folder('.', '/vagrant', type: 'nfs', disabled: true)
  config.vm.network 'private_network', type: "dhcp"
  config.vm.network "public_network", auto_config: false

  config.vm.provider :vmware_esxi do |esxi|
    esxi.esxi_hostname = '10.10.10.10'
    esxi.esxi_username = 'root'
    esxi.esxi_password = 'prompt:'
    esxi.esxi_virtual_network = ['Production','VM Network']
    esxi.guest_name = 'VagrantTestVM'
  end
end

我不明白流浪汉想要我做什么。就我所能看到的google/read,我可以看到提供者是用来上传VM的插件。当涉及到VMWare时,有几种类型的提供者,并且在hashicorp站点上,没有一个被列为vmware_esxi。从功能上讲,最接近的应该是映像cdua/ubuntu16 16支持的vmware_ovf。不过,流浪汉失败了,但它告诉我,盒子提供者是vmware_esxi。

更新:在这里发布之前,我尝试了下面的内容,因为您可以再次看到错误

代码语言:javascript
复制
  vagrant up --provider=vmware_esxi

root@10.10.10.10 password:
Bringing machine 'default' up with 'vmware_esxi' provider...
==> default: Box 'generic/ubuntu1710' could not be found. Attempting to find and install...
default: Box Provider: vmware_esxi, vmware, vmware_desktop, vmware_fusion, vmware_workstation
default: Box Version: >= 0
==> default: Loading metadata for box 'generic/ubuntu1710'
default: URL: https://vagrantcloud.com/generic/ubuntu1710
==> default: Adding box 'generic/ubuntu1710' (v1.8.50) for provider: vmware
default: Downloading: https://vagrantcloud.com/generic/boxes/ubuntu1710/versions/1.8.50/providers/vmware.box
default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
default: Progress: 100% (Rate: 3286k/s, Estimated time remaining: --:--:--)
The box you attempted to add doesn't match the provider you specified.

Provider expected: vmware
Provider of box: vmware_desktop
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-12-03 00:30:28

它看起来像是链接了vmware_ovf的提供者,也就是盒。您可能也需要将config.vm.box更改为支持其他格式之一的不同框。

你可以检查一下用于"vmware“格式Ubuntu框的Hashicorp框索引。(我过去在bento/ubuntu-16.04上很幸运,它声称自己构建了vmware_desktop。)

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

https://stackoverflow.com/questions/53585659

复制
相关文章

相似问题

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