我已经在我的 Mac 上安装了 vagrant 和 virtual box。我创建了一个 Windows10 虚拟机,并使用 winrm 进行了配置。
我可以通过 vagrant 在 Windows VM 上运行命令。但是我无法在 VM 上看到任何 GUI。
例如,如果我在 Windows VM 中打开命令提示符并发出命令“start chrome.exe”,它会启动 chrome 浏览器并显示浏览器 ui。但是,如果我通过 winrm 键入相同的命令vagrant winrm -c "start chrome.exe"
,它会启动浏览器,但 ui 不会显示在 VM 中。如果我通过 shell 配置程序运行命令,则会发生同样的问题。
有什么办法,我可以从 vagrant 运行命令,并且应用程序将在 VM 中以 GUI 模式启动?