How can use VixVM_RunProgramInGuest vix library in python?

…衆ロ難τιáo~ 提交于 2019-12-11 17:08:54

问题


Hi I want use RunProgramInGuest function in python for running application in vm_ware workstation but I can't Because I don't know the reference. I want the simple code for the function thanks in advance.


回答1:


You might find vix useful (can be found @ https://github.com/naim94a/vix or with pip install vix). This library wraps the VIX API in a safe way (RAII) and is object oriented.

import vix

host = vix.VixHost()
host.connect()

vm = host.open_vm("C:\\Virtual Machines\\MyVM.vmx")
vm.login(username="GuestUserName", password="GuestPassword")

vm.proc_run("C:\\GuestExecutable.exe")

Of course, if you would like to wrap the calls yourself the official documentation can be found here: https://www.vmware.com/support/developer/vix-api/vix115_reference/index2.html



来源:https://stackoverflow.com/questions/47514341/how-can-use-vixvm-runprograminguest-vix-library-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!