如何在python脚本中运行虚拟机上的应用程序
db_tool = os.path.join(r'C:\Program Files\VMware\VMware VIX\vmrun.exe')
db_name=r"-T esx -h https://10.10.10.10/sdk -u user -p password -gu user -gp password runProgramInGuest '[datastore1] datastore1/datastore1.vmx' -interactive notepad.exe"
p = subprocess.Popen([db_tool, '-T' ,'server', '-h', 'https://10.10.10.10/sdk', '-u', 'user', '-p', 'password', '-gu', 'user', '-gp', 'password', 'runProgramInGuest', '"[datastore1]"', 'datastore1/datastore1.vmx','-interactive' ,'notepad.exe']
p.communicate()
我收到以下错误:无法连接到主机。错误:无法打开VM:" [datastore1]",未知文件后缀