是否可以在不打开 VMWare 应用程序(和其他 windows)的情况下启动 VMWare Fusion 虚拟机?

Is it possible to power-on a VMWare Fusion virtual machine without opening the VMWare application (and other windows)?

我总是通过 SSH 连接到我的虚拟机,并且在完成 VM 设置后不使用 VMWare 的虚拟机 window/terminal。我发现总是打开 VMWare Fusion 应用程序以及 VM window 很烦人,因此,我希望能够从我的终端静默启动 VM 并仅通过终端执行所有其他操作。

我看到 this page on the VMWare website 谈到使用以下命令启动 VM:

/Applications/VMware\ Fusion.app/Contents/Library/vmrun start full/path/of/your/virtual/machine/bundle

这是朝着正确方向迈出的一步,因为我不需要单击任何东西来启动我的 VM,但是,它仍然会在 windows 中打开应用程序和 VM。

当我使用 Virtual Box 时,我记得可以使用如下命令执行此操作:

VBoxManage startvm "VM name" --type headless

对于 VMWare 是否有类似的命令允许我 运行 我的 VM 无头?

你可以试试:

vmrun start full/path/of/your/virtual/machine/bundle nogui