如何使用VMWare工具“vmrun”截屏?
我目前正在使用 vmrun-Tool 来控制 VMWare 虚拟机。 我在 Windows 7 x64 上使用 VMWareWorkstation 7.0.0/7.0.1 和 VMWarePlayer 3.0.0。
我只想截取每个已启动的虚拟机的屏幕截图。
列出已启动的虚拟机非常简单且有效! (vmrun list)
但是 captureScreen 命令不起作用。 我尝试了几个命令行选项。
例如:
vmrun -T ws captureScreen %VMPATH% %OUTPUTPATH%
我没有收到错误消息,但控制台被阻止(并且命令永远不会完成)。
我还尝试包含 -gu USERNAME
和 -gp PASSWORD
,但它会导致同样的问题。
I'm currently working with the vmrun-Tool, to control VMWare Virtual Machines.
I'm using VMWareWorkstation 7.0.0/7.0.1 and VMWarePlayer 3.0.0 on Windows 7 x64.
I simply want to take a screenshot of each virtual machine which is powered on.
Listing the power-on virtual machines is quite simply and works!
(vmrun list)
But the captureScreen command doesn't work.
I have tried several commandline options.
For example:
vmrun -T ws captureScreen %VMPATH% %OUTPUTPATH%
I get no error message, but the console is blocked (and the command never finishes).
I have also tried to include -gu USERNAME
and -gp PASSWORD
, but it results in the same problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
确保用于“-gu”和“-gp”的用户/密码是来宾操作系统而非主机的有效用户名和密码。
我遇到了和你一样的麻烦,因为我使用“root”和“root_pwd”作为我的用户/密码,然后我意识到它必须是来宾内部的密码。
另外,%OUTPATH% 必须是 png。 captureScreen 命令以 PNG 格式输出。
Be sure the user/pass that you use for '-gu' and '-gp' are a valid username and password for the guest OS not the host.
I had the same trouble as you because I was using "root" and "root_pwd" for my user/pass, then I realized it had to be a pasword inside the guest.
Also, the %OUTPATH% needs to be a png. The captureScreen command outputs in PNG.
我尝试通过 VMWare Player 3.1 运行问题中的语句,结果成功了。我想我也可能使用新的 VMWare Workstation (7.1)。
I tried to run the statement in my questition via VMWare Player 3.1 and it worked. I guess I might also work using the new VMWare Workstation (7.1).