我想vagrant up --provider=vmware_workstation
。但是,发生了错误。
$ vagrant --version
Vagrant 1.8.7
$ vagrant plugin install vagrant-vmware-workstation
Installed the plugin 'vagrant-vmware-workstation (4.0.14)'!
$ vagrant plugin license vagrant-vmware-workstation C:/license.lic
Installing license for 'vagrant-vmware-workstation'...
The license for 'vagrant-vmware-workstation' was successfully installed!
$ vagrant up --provider=vmware_workstation
Bringing machine 'default' up with 'vmware_workstation' provider...
This provider only works with VMware Workstation 9.x, 10.x, 11.x, and
12.x. You have Workstation ''. Please install the proper
version of VMware Workstation and try again.
我使用了这个Vagrantfile:
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "vmware_precise64"
config.vm.provider "vmware_workstation" do |v|
v.gui = true
end
end
我使用此版本的VMware:
答案 0 :(得分:1)
您没有安装VMware Workstation(Pro),Vagrant会报告错误。
您正在使用免费的VMware Workstation Player not supported:
我可以使用VMWARE WORKSTATION PLAYER吗?
Vagrant VMware Workstation插件的某些功能将与VMware Player一起使用,但它不受官方支持。 Vagrant通过VMware API与VMware交互,某些版本的VMware Workstation Player不支持这些API。如有疑问,请购买VMware Workstation Pro以使用集成支持的所有功能。