我找不到如何使用typeKeystrokesInGuest
命令vmrun
工具的文档或示例。
我尝试发送密钥代码,如30
,我尝试发送Some text
,但总是得到Insufficient permissions in the host operating system
。我想,我必须给予正确的许可,但我不知道在哪里,我不知道是否正确地使用了描述的命令。
如果我没记错的话,vmrun使用的VIX API将被弃用。新选项是使用vSphere 6.5 API提供的PutUsbScanCodes方法,并且不依赖于在来宾操作系统上运行的VMware Tools。
有关更多信息,请访问:https://www.virtuallyghetto.com/2017/09/automating-vm-keystrokes-using-the-vsphere-api-powercli.html