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

Running vmrun on Linux/Windows with ESX

$
0
0

I know VIX 1.6.2 was just released which now supports ESX 3.5u2+ (I believe).

 

I know there are some blogs floating out there about how to use "vmrun.exe" on Windows to manage your Virtual Machines on ESX. I just installed VIX on both Windows and on our VIMA box. I found that "vmrun" exists on both systems which is great, now I found small discrepancy in running the same exact command on the two hosts and was wondering if I was missing something:

 

Windows host execution:

C:\Program Files\VMware\VMware VIX>vmrun.exe -T -h esx https://a.b.c.d/sdk -u root -p SOME_PASS list
Total running VMs: 1
[san-storage1] TEST-VM/TEST-VM.vmx

 

 

VIMA (Linux) host execution:

 

 

 

vmrun -T esx -h https://a.b.c.d/sdk -u root -p SOME_PASS list

 

 

Nothing is returned and it shows the usage summary, I'm not sure if the syntax is supposed to be different? VIMA can talk to the ESX Host and it's also in VIMA's management.  The ESX Host in question is running latest VMware ESX 3.5u3

I've tried both Types = (server|esx), the results yield the same, works on Windows but not on Linux

 

Any idea what the issue might be?

 

Also on a side note, is there a way we can force the password to be prompted, I've found that if you just do -p or without -p that it'll error out. I'm pretty sure people will agree putting the root password in the page is probably not the best idea, especially in clear text. I'm looking at utilizing VIX to automate some tasks and I would like to either pass in the credentials once or store them in a temp cache like how VIMA / VI Perl Toolkit does its authentication.


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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