很难理解 Vagrant 想要什么或它是如何工作的(Vagrant on Windows,提供者 vmware_esxi)
Having a hard time to understand what Vagrant wants or how it works (Vagrant on Windows, provider vmware_esxi)
我正在尝试按照此页面上的说明进行操作 https://github.com/josenk/vagrant-vmware-esxi,并且我在 windows 机器 (win 10) 上使用 Vagrant,并且我希望能够在独立的 ESXI6 上部署虚拟机.5 服务器(免费版-演示许可证已过期)。这里没有 VCenter。
我正在使用这个命令行
vagrant up --provider=vmware_esxi
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
#
# 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 站点上 none 被列为 vmware_esxi。从功能上讲,最接近的应该是图像 cdua/ubuntu16 支持的 vmware_ovf。
然而 vagrant 失败了,但它告诉我盒子提供者是 vmware_esxi
更新:
在发帖之前我尝试了下面的方法,你可以再次看到错误
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
看起来像您链接的提供商 supports every vmware
box format except vmware_ovf
, which is the only format provided for the cuda/ubuntu16
box。您可能还需要将 config.vm.box
更改为支持其他格式之一的不同盒子。
您可能会检查 Hashicorp's box index for "vmware" format Ubuntu boxes. (I've had good luck in the past with bento/ubuntu-16.04
,它声称是 vmware_desktop
版本。)
我正在尝试按照此页面上的说明进行操作 https://github.com/josenk/vagrant-vmware-esxi,并且我在 windows 机器 (win 10) 上使用 Vagrant,并且我希望能够在独立的 ESXI6 上部署虚拟机.5 服务器(免费版-演示许可证已过期)。这里没有 VCenter。
我正在使用这个命令行
vagrant up --provider=vmware_esxi
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
#
# 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 站点上 none 被列为 vmware_esxi。从功能上讲,最接近的应该是图像 cdua/ubuntu16 支持的 vmware_ovf。 然而 vagrant 失败了,但它告诉我盒子提供者是 vmware_esxi
更新: 在发帖之前我尝试了下面的方法,你可以再次看到错误
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
看起来像您链接的提供商 supports every vmware
box format except vmware_ovf
, which is the only format provided for the cuda/ubuntu16
box。您可能还需要将 config.vm.box
更改为支持其他格式之一的不同盒子。
您可能会检查 Hashicorp's box index for "vmware" format Ubuntu boxes. (I've had good luck in the past with bento/ubuntu-16.04
,它声称是 vmware_desktop
版本。)