我在 macos m2 中安装了 vagrant、wmvare fusion。但是当我运行 vagrant up 时,它返回以下错误:
执行用于控制 VMware 计算机的实用程序 vmrun 时发生错误。命令和输出如下:
命令:["-T", "player", "list", {:notify=>[:stdout, :stderr]}]
Stdout:指定的主机类型“player”无效错误:不支持该操作
Stderr:
我怎么解决这个问题 ?
这是我的 Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "bytesguy/ubuntu-server-20.04-arm64"
config.vm.box_version = "1.0.0"
config.vm.network "private_network", type: "dhcp"
config.vm.network "public_network", bridge: "en1: Wi-Fi (AirPort)"
config.vm.provider "vmware_desktop" do |vmware|
vmware.gui = true
vmware.cpus = 2
vmware.vmx["ethernet0.virtualdev"] = "vmxnet3"
vmware.ssh_info_public = true
vmware.linked_clone = false
vmware.allowlist_verified = true
end
end
答案1
安装 vagrant-vmware-desktop 版本 3.0.1 而不是 3.0.2:
vagrant plugin uninstall vagrant-vmware-desktop
vagrant plugin install vagrant-vmware-desktop --plugin-version 3.0.1