Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Error: A file was not found

$
0
0

 

I just downloaded and installed VIX. Now I would like to start and stop a vm on a server version 1.0.

 

 

I tried the powerOn.vbs: after I replaced:

 

 

Set job = lib.Connect(VixCOM.Constants.VIX_API_VERSION, VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_SERVER, Empty, 0, Empty, Empty, 0, Nothing, Nothing)

 

 

to

Set job = lib.Connect(1, VixCOM.Constants.VIX_SERVICEPROVIDER_VMWARE_SERVER, "dnsNameOfServer", "902", "username", "password", 0, Nothing, Nothing)

 

 

the connection seams to work.

 

 

But I always get the message: "Error: A file was not found"

 

 

So  I tried around with the path from host.Open()

 

 

 

Set job = host.OpenVM("C:\Virtual Machines\Bare\WinXPProDEBare01\winxppro.vmx", Nothing)  does not work

 

 

Set job = host.OpenVM("C:
Virtual\ Machines
Bare
WinXPProDEBare01
winxppro.vmx", Nothing)  does not work

 

 

Set job = host.OpenVM("
dnsNameOfServer\Virtual Machines\Bare\WinXPProDEBare01\winxppro.vmx", Nothing)  does not work

 

 

Set job = host.OpenVM("

dnsNameOfServer
Virtual\ Machines
Bare
WinXPProDEBare01
winxppro.vmx", Nothing) does not work

 

 

please help

 

 

Bast

 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>