简体   繁体   English

VMWare vix api-无法登录到Vitual机器

[英]VMWare vix api - not logging in into Vitual machine

While powering up the virtual machine: 在启动虚拟机时:

var virtualMachine = host.Open("myVM.vmx");
virtualMachine.PowerOn();
virtualMachine.LoginInGuest("Administrator", "myPass");

everything gets stuck in the log in screen of the VM. 一切都卡在VM的登录屏幕中。 Is it possible somehow to start up the VM, and have the GUI loaded and ready, because automated tests require the GUI of the application to be present so the tests can fire off. 是否可能以某种方式启动VM并加载并准备好GUI,因为自动化测试要求存在应用程序的GUI,以便可以启动测试。

pass VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT to LoginInGuest. 将VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT传递给LoginInGuest。

See the remarks: https://www.vmware.com/support/developer/vix-api/vix17_reference/lang/com/functions/RunProgramInGuest.html 请参阅以下备注: https : //www.vmware.com/support/developer/vix-api/vix17_reference/lang/com/functions/RunProgramInGuest.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM