You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Vagrant中vmrun指定-T player报错,需切换为-T fusion的配置求助

Vagrant中vmrun指定-T player报错,需切换为-T fusion的配置求助

嗨,我之前也碰到过一模一样的问题,给你几个实用的解决方法,你可以挨个试试:

  • 直接修改Vagrantfile配置
    打开你的Vagrantfile,找到vmware provider的配置块(如果没有就新增),添加vmrun_options参数指定-T fusion:

    config.vm.provider "vmware_fusion" do |v|
      v.vmrun_options = "-T fusion"
    end
    

    保存后重启Vagrant,它调用vmrun时就会自动用-T fusion代替默认的-T player了。

  • 通过环境变量临时设置
    如果你不想改动Vagrantfile,可以在启动Vagrant前,在终端里设置环境变量:

    export VAGRANT_VMWARE_VMRUN_OPTIONS="-T fusion"
    

    之后再执行vagrant up,Vagrant会读取这个环境变量来调整vmrun的参数。

  • 检查并更新Vagrant插件
    有时候版本不匹配也会导致默认参数错误,你可以先确认是否安装了vagrant-vmware-fusion插件,没装的话先安装:

    vagrant plugin install vagrant-vmware-fusion
    

    然后更新插件到最新版本:

    vagrant plugin update vagrant-vmware-fusion
    

    更新后再尝试启动虚拟机,说不定默认就会使用正确的参数了。

备注:内容来源于stack exchange,提问作者windrider

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 12:18:04