Hi,
I recently upgraded from VMware-Server 2 to Workstation v8 on my Centos 5 machine. My first attempt to isntall v8.0.1 on the machine resulted in a broken Workstation environment. In order to get a working system, I performed an uninstall and re-installed v8.0.1 a second time.
Now, most functions seem to work as expected, including shared VMs. On my old Server 2 setup, I had written some scripts to perform backups on my virtual machines using a weekly cron job. As I expected, many of the commands I relied upon for this in Server 2, do not work anymore.
During further investigation, it appears that commands such as vmware-vim-cmd still exist on the system. Unfortunately, I have not been able to get that command to work correctly. I always get an authentication error of some sort, depending on how I run the command. For example :
[root@vmhost basedir]# vmware-vim-cmd -U root -P <myrootpass> -H localhost -O 443 vmsvc/get.guest
filename: /lib/modules/2.6.23.17/misc/vmmon.ko
supported: external
license: GPL v2
description: VMware Virtual Machine Monitor.
author: VMware, Inc.
srcversion: 8426DA9DBB96624BA8C6BAE
depends:
vermagic: 2.6.23.17 SMP mod_unload
Failed to login: vmodl.fault.SystemError
I'm not entirely sure that the above command is even supposed to work within Workstation v8. I've tried authenticating against port 902 as well, which appears to be opened by a VMware process on the host, but it failes with :
Failed to login: SSL Exception: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number
In an effort to work around the above limitation, I have started to toy with the vmrun command. Even though it appears to work with Workstation, the functionality is more limited than provided by vmware-vim-cmd. A couple things it doesn't seem to do as well is work with the concept of a "Datastore", or querying the state of a registered virtual machine ( ie "Running", "Suspended", etc ).
So, besides my question on the viability of vmware-vim-cmd above, is there any documentation or suggestions on how to best work with VMware Workstaiton 8 and automation through scripting? A cursory glance at the documentation didn't reveal any detailed documentation of the correct API or commands to leverage for these types of tasks.
Thanks in advance,
Karl0272