I think i am having problems with the the workstation and vix not being the right versions ( compatibility wise ).
I have a virtual machine that was created using 6.0 .
I had some working code in c++ and perl.
now , i upgraded to the latest workstation and vix available for download.
I verified the version of the workstation to be 6.0.1.
The vix i installed is VMware-vix-1.1.0-45731.exe .
now , program gives errors .
i get the following error for the perl script
"VMOpen() failed, 3008 Cannot connect to the virtual machine"
also, the VIX_API_VERSION is 2 , is this right ?
here is the first few lines of the script
############################################################3use VMware::Vix::Simple;
use VMware::Vix::API::Constants;
my $err = VIX_OK;
my $hostHandle = VIX_INVALID_HANDLE;
my $vmHandle = VIX_INVALID_HANDLE;
my $vmxFilePathName = "C:
Documents and Settings
Arun
My Documents
My Virtual Machines
Windows Server 2003 Enterprise x64 Edition
Windows Server 2003 Enterprise x64 Edition.vmx";
print "VIX_API_VERSION = ".VIX_API_VERSION."\n";
($err, $hostHandle) = HostConnect(VIX_API_VERSION,
VIX_SERVICEPROVIDER_VMWARE_WORKSTATION,
undef, # hostName localhost
0, # hostPort
undef, # userName
undef, # password
0, # options
VIX_INVALID_HANDLE); # propertyListHandle
die "HostConnect() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;
die "Virtual Machine file cannot be found $vmxFilePathName\n" if not -e $vmxFilePathName;
($err, $vmHandle) = VMOpen($hostHandle,
$vmxFilePathName);
die "VMOpen() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;