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

vix-perl installation problem

$
0
0

Hi,

I'm trying to install vix-perl module on a Windows server with cygwin as build environment.

I have unzipped the vix-perl tar in a directory and succesfully executed the 'perl Makefile.PL' command.

When I try to execute 'make' I have the following error message:

 

make: *** No rule to make target `libvixAllProducts.so', needed by `subdirs'. Stop.

 

I have not found any documentation about installing vix-perl on Windows server, can someone help me?

Thanks,

   Andrea


VMware Server 2.0 Backups (VIX 1.6.2 only)

$
0
0

Vix_Virtuozo_Suite enables domain-wide cold and hot backups of your guests. Windows and Linux (SAMBA required) Server 2.0.x host OSs are supported.

 

Linked is the current build of Vix_Virtuozo_Suite x86. The installer will install a Windows Service and provide GUI to configure the service options.  Windows x86 and 64bit are supported.

 

All feedback and suggestions are welcome.

 

Service GUI

 

Guest GUI

 

Live Backup Status

 

Subscribe to this thread's email notification to receive updates on bug fixes.

 

Troubleshooting notes:

 

 

  •  

    VIX API 1.6 is required for this software to function.

     

  •  

    VIX_Virtuozo_Service Windows Service must log on as a user with permission to create a custom Event Log as well as have access to protected shares (CIFS) defined throughout the configuration of each host and guest.

     

  •  

    SAMBA is required for VMware hosts running Linux.

     

  •  

    VIX 1.7 is NOT stable to work with Server 2.0!

     

 

 

_Download January 21, 2010 Release_

RevertToSnapshot() fail with VIX_E_FAIL on Windows 7

$
0
0

I have a program written in C# that automates a process that involves a few RevertToSnapshot() calls. I have run this program against Workstation 6.5.0 and 6.5.3 on Vista and XP Hosts with XP SP2 and SP3 Guests without any problems. The problems occur when I try to run this program on a Windows 7 host (32 and 64 bit). On the Windows 7 host I get a VIX_E_FAIL error any time I try to use RevertToSnapshot() and sometimes when I use RunProgramInGuest(). Has anyone else run into these issues on Windows 7? I noticed on the VMware official compatibility guide it does not list Windows 7 as a compatible host OS for any version of Workstation. Could this be the issue?

VIX PERL issues ( C RUNTIME library )

$
0
0

I havent been able to use the Simple perl API . I am having the linking issues with  runtime libraries .

 

************SAMPLE code from the SPI programmer guide*******

use VMWare::Vix::Simple;

use VMware::Vix::API::Constants;

 

my $err = VIX_OK;

my $hostHandle = VIX_INVALID_HANDLE;

 

($err, $hostHandle) = HostConnect(VIX_API_VERSION,

                                  VIX_SERVICEPROVIDER_VMWARE_WORKSTATION,

                                  undef, # hostName

                                  0, # hostPort

                                  undef, # userName

                                  undef, # password

                                  0, # options

                                  VIX_INVALID_HANDLE); # propertyListHandle

 

die "HostConnect() failed, $err ", GetErrorText($err), "\n" if $err != VIX_OK;

\# ...Do everything in your program...

HostDisconnect($hostHandle);

*************

 

i get the followign error when running the above script.

****************

Runtime Error!

Program: C:\Perl\bin\perl.exe

 

R6034

An application has made an attempt to load the C runtime library incorrectly.

Please contact the application's support team for more information.

*****************

and the following stack trace

*****************

Can't load 'C:/Perl/site/lib/auto/VMware/VixBinding/VixBinding.dll' for module VMware::VixBinding: load_file:A

 

dynamic link library (DLL) initialization routine failed at C:/Perl/lib/DynaLoader.pm line 230.

at C:/Perl/site/lib/VMware/Vix/API/API.pm line 13

Compilation failed in require at C:/Perl/site/lib/VMware/Vix/API/API.pm line 13.

BEGIN failed--compilation aborted at C:/Perl/site/lib/VMware/Vix/API/API.pm line 13.

Compilation failed in require at C:/Perl/site/lib/VMWare/Vix/Simple.pm line 23.

BEGIN failed--compilation aborted at C:/Perl/site/lib/VMWare/Vix/Simple.pm line 23.

Compilation failed in require at vimtest.pl line 1.

BEGIN failed--compilation aborted at vimtest.pl line 1.

 

 

 

*****************how i installed VIX PERL ******************

I already have the c VIX API working . I wanted to switch to perl for various reasons .

 

i ran the following batch file at the command prompt.

C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat

 

then switched to  vix-perl directory on the command prompt ( C:\Program Files\VMware\VMware VIX\vix-perl )

 

>perl makefile.pl

Writing Makefile for VMware::VixBinding

 

 

 

 

>nmake

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

Copyright (C) Microsoft Corporation.  All rights reserved.

 

     cl -c  -I.  -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -

 

DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -MD

 

-Zi -DNDEBUG -O1    -DVERSION=\"0.01\"  -DXS_VERSION=\"0.01\"  "-IC:\Perl\lib\CORE"  -Dbool=char -DHAS_BOOL

 

VixBinding.c

VixBinding.c

VixBinding.xs(100) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s

 

instead. To disable deprecation, use CRTSECURE_NO_WARNINGS. See online help for details.

        C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(74) : see declaration of 'strcpy'

Running Mkbootstrap for VMware::VixBinding ()

     C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 VixBinding.bs

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp vix.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp libeay32.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp ssleay32.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp libxml2.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp zlib1.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp iconv.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp libxml2d.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp iconvd.dll blib\bin

     link -out:blib\arch\auto\VMware\VixBinding\VixBinding.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf  -

 

libpath:"C:\Perl\lib\CORE"  -machine:x86 VixBinding.obj  vix.lib C:\Perl\lib\CORE\perl58.lib oldnames.lib

 

kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 

 

netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib -

 

def:VixBinding.def

   Creating library blib\arch\auto\VMware\VixBinding\VixBinding.lib and object

 

blib\arch\auto\VMware\VixBinding\VixBinding.exp

     C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto\VMware\VixBinding\VixBinding.dll

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp VixBinding.bs blib\arch\auto\VMware\VixBinding\VixBinding.bs

     C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644 blib\arch\auto\VMware\VixBinding\VixBinding.bs

 

 

 

 

>nmake install

 

Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

Copyright (C) Microsoft Corporation.  All rights reserved.

 

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp vix.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp libeay32.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp ssleay32.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp libxml2.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp zlib1.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp iconv.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp libxml2d.dll blib\bin

     C:\Perl\bin\perl.exe -MExtUtils::Command -e cp iconvd.dll blib\bin

     link -out:blib\arch\auto\VMware\VixBinding\VixBinding.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf  -

 

libpath:"C:\Perl\lib\CORE"  -machine:x86 VixBinding.obj  vix.lib C:\Perl\lib\CORE\perl58.lib oldnames.lib

 

kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib 

 

netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib -

 

def:VixBinding.def

   Creating library blib\arch\auto\VMware\VixBinding\VixBinding.lib and object

 

blib\arch\auto\VMware\VixBinding\VixBinding.exp

     C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 755 blib\arch\auto\VMware\VixBinding\VixBinding.dll

Installing C:\Perl\site\lib\auto\VMware\VixBinding\VixBinding.dll

Installing C:\Perl\site\lib\auto\VMware\VixBinding\VixBinding.exp

Installing C:\Perl\site\lib\auto\VMware\VixBinding\VixBinding.lib

Installing C:\Perl\site\lib\auto\VMware\VixBinding\VixBinding.pdb

Files found in blib\arch: installing files in blib\lib into architecture dependent library tree

Appending installation info to C:\Perl\lib/perllocal.pod

 

 

***************************************

 

I have windows XP SP2 .  VS 2005 pro, perl 5.8.8 , workstation 6 and VIX API 1.1 .

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.

Anyone using VB6 ?

$
0
0

 

Hi,

 

 

I'm trying to start VMWare via VixCOM and VB6, but am receiving the typical-to-vb6 error of "Method 'Wait' on object 'IJob' failed" and not a lot more information.

 

 

Has anyone else had any success with VB6?

 

 

 

 

 

Many thanks,

 

 

Jenk

 

 

VMware server 2.0 - Insufficient permissions in host operating system

$
0
0

Hi all.

 

I have been struggling with this issue for weeks now. It seems apparent that I'm having file permissions issue, but can't seem to pinpoint it. Any help would be greatly appreciated!

 

The issue is that I can reset a VM on my linux host from the webapp, but not using the vmrun command:

 

vmrun -T server -h https://localhost:8333/sdk -u vmuser -p 'vmuser' reset "[standard] lab/lab-01/Windows XP Professional.vmx"
Error: Insufficient permissions in host operating system

 

 

I have double checked my permissions and it seems the vmuser has access to all files under the lab directory. I have also looked at the log files in /tmp/vmware-<user>/vix-<pid>.log and they seem to be the same whether the command succeeds (using super user account) or fails (with this limited account). Are there any more detailed logs I can check where my specific file permissions issues are?

 

Thanks in advance for your help!

VIX_E_HOST_USER_PERMISSIONS and VIX_E_VM_NOT_RUNNING errors on VixVM_PowerOn and VixVM_PowerOff

$
0
0

 

I'm doing stress testing of automation of spin-up and tear-down of many virtual machines on an ESX4u1 system using the vix libraries.  I've noticed the following behaviors that I was hoping someone at VmWare might be able to shed some light on.

 

 

I occasionally get a VIX_E_HOST_USER_PERMISSIONS error on VixVM_PowerOn (although the machine does actually power on successfully).

 

 

I also occasionally get a VIX_E_VM_NOT_RUNNING error on VixVM_PowerOff [hard poweroff, not graceful shutdown) (although the machine is currently powered on and running).

 

 

I've noticed that the more machines I have running concurrently, the more exacerbated the problem is.  E.g. with 5 machines running, I may get the error once every 100 power-on/power-off cycles.  With 10 machines running, I get the error once every 20 power-on/power-off cycles.  With 20 machines running I get the error once every 10 or so.

 

 

I've also noticed that the power-off errors seems to occur when there is very little time (< 1 second) between the power-on and the power-off cycle.  VixVM_PowerOn has returned success, I've waited for VmWare Tools to come up, and then immediately shut it down.  This leads me to believe that there is possibly some lag time in the bookkeeping on the ESX system.

 

 

The power on error is still a mystery to me since that error doesn't make any sense... I would expect that kind of error with a VixHost_Connect(), but not with VixVM_PowerOn.

 

 

Any light to be shed by someone at VmWare or others in the user community that have seen things like this woud be greatly appreciated.

 

 

Cheers,

 

 

Pete

 

 


Programming VIX in Python

$
0
0

Hello:

 

I need to program some funtions with VIX API but I need do it in python. For this purpose I need to import dll, etc to python... and call vix functions from a python script...

 

someone can helps me??

 

thanks!

VIX API using VBScript and snapshot properties

$
0
0

 

Is it possible to get a snapshot name using VBScript?

 

 

I have been able to get a snapshot object using GetRootSnapShot or GetChild but I am trying to the name name of the snapshot.

 

 

Thanks,

 

 

Problem linking against latest version of VixAllProducts.lib

$
0
0

I've researched various posts but none of the suggested workarounds seem to work. I am using VS 2010, linking against this library works fine in 1.10.3.

Does anyone have any pointers? By the way, I get the same errors when I am trying to compile the samples. So it's nothing specific to my project setup.

 

Here's the output:

 

1>VixAllProducts.lib(utrace.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(icuplug.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_ext.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_cnv.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(utf_impl.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(vmstdio.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_lmb.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv2022.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(uenum.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(uarrsort.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnvlat1.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnvisci.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnvscsu.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnvhz.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_u8.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_u32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_u16.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnvbocu.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(wmi.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(uinit.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(udataswp.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_u7.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(panic.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(panicUser.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(fileLockPrimitive.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(dictll.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_io.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnvmbcs.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_cb.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ustrfmt.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(uinvchar.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ustring.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_bld.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ustr_cnv.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(umapfile.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(cstring.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(wintz.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(locmap.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucln_cmn.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(cmemory.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(umutex.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucmndata.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(wmiInfo.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(localeWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(udatamem.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(uhash.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(poll.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(bsd_output_shared.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(logFixed.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(sha1.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv_err.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(coreDumpWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(fileLockWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(dictionary.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(codesetOld.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(udata.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(putil.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ucnv.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(machineID.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(uuid.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(msg.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(timeutil.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(win32util.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(msgfmt.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(errWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(base64.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ulStats.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ul.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ulCondVar.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(unicodeSimpleTransforms.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(bsd_vsnwprintf.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ulRW.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(escape.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(strutil.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(codesetBase.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(unicodeSimpleCaseFolding.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(dynbuf.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(bsd_vsnprintf.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(pollDefault.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(hashTable.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(hostname.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(rateconv.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(fileIO.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ulExcl.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(vixConfig.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(preference.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(codeset.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(unicodeSimpleTypes.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(util.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(fileIOWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(file.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(url.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(fileWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(hostinfo.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(msgList.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(err.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(posixWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(random.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(win32util_misc.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(util_misc.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(stubs.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(utilTempWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(unicodeCommon.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(win32uRegistry.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(ulRec.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(loglevel_tools.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(utilMem.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(configUL.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(productState.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(unicodeSimpleBase.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(hostinfoWin32.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(unicodeSimpleOperations.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(win32u.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(str.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(vixWrapper.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(log.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(vixLibLoad.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR
1>VixAllProducts.lib(vthreadBase.obj) : error LNK2001: unresolved external symbol __forceCRTManifestCUR

VIX / vmrun.exe command to get current snapshot name (or a way to build my own)?

$
0
0

I need to get the current snapshot name, so that I can revert to it later. Here's the process:

1. Power on

2. do something (run a program in guest)

3. shut down

4. snapshot(name)

--at this point, I need to revert to the snapshot I started from.

 

there doesn't seem to be anything built in, do I have to build this myself? Any quick (even if hacky) ways to do this? Such as parsing a file?

Problems using vmrun on ESX3.5

$
0
0

Hopefully a quick question because I'm missing something obvious.

 

I am running vmrun version 1.12.1 against an ESX 3.5 Server and am getting partial sucess.

 

If I run:

 

vmrun -T ESX -h http://{ip Address}/sdk -u root list

 

I am prompted for the password then it lists the VM's running as follows.

 

Total running VMs: 3

[ha-datacenter/server:storage2] Client/Client.vmx

""                          ""                     ""

""                          ""                     ""

 

But when I try to list the snapshots using:

 

vmrun -T ESX http://{ip Address}/sdk -u root listSnapshots "[ha-datacenter/server:storage2] Client/Client.vmx"

or

vmrun -T ESX http://{ip Address}/sdk -u root listSnapshots "[server:storage2] Client/Client.vmx"

 

I get the following error.

 

Error: Cannot open VM: [server:storage2] Client/Client.vmx, There was an error in communication.

 

Thanks,

vim-cmd vmsvc/snapshot.removeall command took about 20 mins to finish

$
0
0

Experts,

 

I am using command line tool vim-cmd to control my Vsphere clients' snapshots.

Because I can not use vim-cmd to identify one snapshot by name, need to provide Index and Level, which I dont have. But I can always use 0 0 pair for the root snapshot.

So, I am using only one snapshot and using snapshot.removeall to remove the root snapshot.

But sometimes vmsvc/snapshot.removeall command took too much time to execute, I dont know why, anyone who can direct me? Or I should choose remove but not remove all?

 

 

 

 

Thanks!

Tyler

VixError 22002: The specified version was not found.

$
0
0

Greetings,

 

I'm trying to use the latest VMWare Player and VIX tools to build an automated testing framework. However, when I call VixHost_Connect, all I get is:

 

VixError 22002: The specified version was not found.

 

I'm not sure what exactly it is referring to?

 

Here is what I have installed:

 

$ vmware-installer -l

Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: cannot open shared object file: No such file or directory

Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory

Product Name         Product Version    

==================== ====================

vmware-player        6.0.0.1295980      

vmware-vix           1.12.2.1031769

 

Cheers,

 

Peter.


How should the path to the remote vm looks like?

$
0
0

I;m trying to crate my Vm snapshot running on the remote server.
Tha path in the vsphere menu looks like this:


    • ServerName.domain.com




        1. datacenterX








            1. somename.domain.com












                  1. XXX ( resource pool)














                        1. YYY ( resource pool)
















                                  1. ZZZ ( resource pool)


















                                          1. VMS




















                                                      1. Mymachine














                                            • So  how should I put the path on the OpenVm parameter?


                                              in the api reference I only found sample about local vms:

                                              Set job = host.OpenVM("C:\VMs\winxpprowithsp2\winxpprowithsp2.vmx", Nothing)

                                              There was an error in communication

                                              $
                                              0
                                              0

                                              ESX version: 3.5 U4

                                              VIX version: latest

                                               

                                              Command run:

                                              C:\Program Files (x86)\VMware\VMware VIX>vmrun -T esx -h https://172.17.235.10/sdk -u serveruser -p serverpass -gu administrator -gp guestpass runProgramInGuest "[shared2] APDNA1101/APDNA1101.vmx" c:\windows\notepad.exe
                                              Error: Cannot open VM: [shared2] APDNA1101/APDNA1101.vmx, There was an error in communication=

                                               

                                              We are having a problem connecting to an ESX 3.5 U4 server with VIX. Snapshot is reverted ok, image powers up ok, but cannot connect to the guest image with VIX. We can copy files to the image without issue however. Any ideas what could be wrong here?

                                              ListProcessesInGuest doesn't display command line in 64bit VM

                                              $
                                              0
                                              0

                                              Hello all,

                                               

                                              I don't know if there's a reason or it's a bug, but If I run

                                               

                                                 > vmrun -T ws -gu guestUser -gp guestPassword listProcessesInGuest VM.vmx
                                              32bit VM will display the command line and 64bit VM will only display the name of the executable.

                                               

                                              Example:

                                               

                                              > vmrun -T ws -gu guestUser -gp guestPassword listProcessesInGuest 32bitVM.vmx

                                               

                                              Process list: 24

                                              pid=0, owner=N\S, cmd=[System Process]

                                              pid=4, owner=N\S, cmd=System

                                              pid=552, owner=NT AUTHORITY\SYSTEM, cmd=\SystemRoot\System32\smss.exe

                                              pid=616, owner=N\S, cmd=csrss.exe

                                              pid=640, owner=NT AUTHORITY\SYSTEM, cmd=winlogon.exe

                                              pid=684, owner=NT AUTHORITY\SYSTEM, cmd=C:\WINDOWS\system32\services.exe

                                              pid=696, owner=NT AUTHORITY\SYSTEM, cmd=C:\WINDOWS\system32\lsass.exe

                                              pid=872, owner=NT AUTHORITY\SYSTEM, cmd="C:\Program Files\VMware\VMware Tools\vmacthlp.exe"

                                              pid=888, owner=NT AUTHORITY\SYSTEM, cmd=C:\WINDOWS\system32\svchost -k DcomLaunch

                                              pid=960, owner=N\N, cmd=svchost.exe

                                              pid=1056, owner=NT AUTHORITY\SYSTEM, cmd=C:\WINDOWS\System32\svchost.exe -k netsvcs

                                              pid=1172, owner=N\N, cmd=svchost.exe

                                              pid=1252, owner=N\L, cmd=svchost.exe

                                              pid=1396, owner=NT AUTHORITY\SYSTEM, cmd=C:\WINDOWS\system32\spoolsv.exe

                                              pid=1536, owner=N\L, cmd=svchost.exe

                                              pid=1692, owner=NT AUTHORITY\SYSTEM, cmd="C:\Program Files\VMware\VMware Tools\vmtoolsd.exe"

                                              pid=1852, owner=NT AUTHORITY\SYSTEM, cmd="C:\Program Files\VMware\VMware Tools\VMUpgradeHelper.exe" /service

                                              [...]

                                               

                                              > vmrun -T ws -gu guestUser -gp guestPassword listProcessesInGuest 64bitVM.vmx

                                               

                                              Process list: 178
                                              pid=0, owner=, cmd=[System Process]
                                              pid=4, owner=N\S, cmd=System
                                              pid=276, owner=N\S, cmd=smss.exe
                                              pid=376, owner=N\S, cmd=csrss.exe
                                              pid=408, owner=N\S, cmd=wininit.exe
                                              pid=436, owner=N\S, cmd=csrss.exe
                                              pid=480, owner=N\S, cmd=winlogon.exe
                                              pid=528, owner=N\S, cmd=services.exe
                                              pid=536, owner=N\S, cmd=lsass.exe
                                              pid=544, owner=N\S, cmd=lsm.exe
                                              pid=640, owner=N\S, cmd=svchost.exe
                                              pid=720, owner=N\N, cmd=svchost.exe
                                              pid=812, owner=N\L, cmd=svchost.exe
                                              pid=848, owner=N\S, cmd=svchost.exe
                                              pid=884, owner=N\S, cmd=svchost.exe
                                              pid=256, owner=N\L, cmd=svchost.exe
                                              pid=540, owner=N\N, cmd=svchost.exe
                                              pid=1176, owner=N\S, cmd=spoolsv.exe
                                              pid=1204, owner=N\L, cmd=svchost.exe
                                              pid=1340, owner=N\L, cmd=svchost.exe
                                              pid=1452, owner=N\S, cmd=vmtoolsd.exe
                                              pid=1544, owner=N\S, cmd=VMUpgradeHelper.exe
                                              pid=920, owner=N\S, cmd=svchost.exe

                                              [...]

                                               

                                               

                                              Thanks in advance for your help,

                                               

                                              Sebastien

                                              Cannot execute VIX API command on a Powered On Virtual Machine - vCenter

                                              $
                                              0
                                              0

                                              I cannot execute any VIX API vmrun command once the Virtual Machine is powered on.

                                               

                                              The setup is a vCenter server with a number of esx hosts.  I can list all virtual machines, and power the machines on, but once the machine is powered on, every vmrun command fails with the error "Cannot open VM: [datastore] VMname/vmname.vmx, There was an error in communication"

                                               

                                              When executing the vmrun 'start' command from a command prompt, the command does start the Virtual Machine, but it does not return control immediately.  Instead it hangs for a few minutes before returning with the above error.  In other words it appears that as soon as a Virtual Machine is powered on, the vmrun command cannot communicate with the guest VM.  When powered off, I am able to run many vmrun commands such as revertToSnapshot, snapshot, etc.

                                               

                                              I tried to execute the vmrun command against the specific esx host and this was successful.  Unfortunately, this is not a great option as the Virtual Machines could reside on any number of esx hosts.

                                               

                                              Has anyone experienced this?  I'm hoping for a solution other than placing groups of vm's that I need to control via VIX on a particular esx host.

                                               

                                              Thanks,

                                               

                                              Joe Yankel

                                              vifs --get internal error

                                              $
                                              0
                                              0

                                              Hi,

                                               

                                              I'm getting an internal error 500 from

                                               

                                              # vifs --server srv2 --username root --password *** -g "[SATA-RAID5] ISO/CentOS-6.2-x86_64-minimal.iso" ./x

                                              GET https://srv2/folder/ISO/CentOS-6.2-x86_64-minimal.iso?dsName=SATA-RAID5 unsuccessful : 500 Internal Server Error

                                               

                                              It worked at first, but stopped working some time after I deleted the VM that was using the image. I have rebooted the host

                                              to no avail. I can retrieve the file from another host in the cluster.

                                               

                                              Does anyone have a clue to what is going on here? The host is using vSpere 5.0. Logs below. It says "Error creating Reader: FileIO error : Failed to lock file",

                                              but I don't know how to unlock.

                                               

                                              -- robin

                                               

                                              2013-06-07T22:14:34.563Z [69DDBB90 verbose 'Locale' opID=HB-host-413@75-f3d8feaa-a5] Default resource used for 'counter.virtualDisk.busResets.summary' expected in module 'perf'.

                                              2013-06-07T22:14:41.990Z [69E5DB90 verbose 'SoapAdapter'] Responded to service state request

                                              2013-06-07T22:14:43.236Z [69E1CB90 verbose 'Proxysvc Req00019'] New proxy client SSL(TCP(local=10.1.2.75:443, peer=10.1.2.76:57162))

                                              2013-06-07T22:14:43.262Z [69681B90 verbose 'Locale' opID=HB-host-413@77-b8d3397a-5c] Default resource used for 'counter.virtualDisk.commandsAborted.label' expected in module 'perf'.

                                              2013-06-07T22:14:43.262Z [69681B90 verbose 'Locale' opID=HB-host-413@77-b8d3397a-5c] Default resource used for 'counter.virtualDisk.commandsAborted.summary' expected in module 'perf'.

                                              2013-06-07T22:14:43.262Z [69681B90 verbose 'Locale' opID=HB-host-413@77-b8d3397a-5c] Default resource used for 'counter.virtualDisk.busResets.label' expected in module 'perf'.

                                              2013-06-07T22:14:43.262Z [69681B90 verbose 'Locale' opID=HB-host-413@77-b8d3397a-5c] Default resource used for 'counter.virtualDisk.busResets.summary' expected in module 'perf'.

                                              2013-06-07T22:14:43.288Z [69E1CB90 verbose 'ha-license-manager' opID=HB-host-413@77-b8d3397a-5c] Load: Loading existing file: /etc/vmware/license.cfg

                                              2013-06-07T22:14:43.303Z [69E1CB90 verbose 'Default' opID=HB-host-413@77-b8d3397a-5c] ha-license-manager:Validate -> Valid license detected for "VMware ESX Server 5.0" (lastError=0, desc.IsValid:Yes)

                                              2013-06-07T22:14:52.466Z [FFE9FAD0 verbose 'Proxysvc Req00020'] New proxy client SSL(TCP(local=10.1.2.75:443, peer=10.1.2.196:50316))

                                              2013-06-07T22:14:52.667Z [696C2B90 verbose 'Proxysvc Req00021'] New proxy client SSL(TCP(local=10.1.2.75:443, peer=10.1.2.196:50321))

                                              pam_per_user: create_subrequest_handle(): doing map lookup for user "root"

                                              pam_per_user: create_subrequest_handle(): creating new subrequest (user="root", service="system-auth-generic")

                                              Accepted password for user root from 10.1.2.196

                                              2013-06-07T22:14:52.785Z [69AC2B90 info 'Vimsvc'] [Auth]: User root

                                              2013-06-07T22:14:52.785Z [69AC2B90 info 'ha-eventmgr'] Event 120 : User root@10.1.2.196 logged in

                                              2013-06-07T22:14:52.884Z [FFE9FAD0 info 'TaskManager'] Task Created : haTask--vim.SearchIndex.findByInventoryPath-91916343

                                              2013-06-07T22:14:52.884Z [69DDBB90 verbose 'SearchIndex'] FindByInventoryPath: inventoryPath = ha-datacenter

                                              2013-06-07T22:14:52.884Z [69DDBB90 verbose 'SearchIndex'] GetMatchingChild: node = <null>, childName = ha-datacenter

                                              2013-06-07T22:14:52.884Z [69DDBB90 verbose 'SearchIndex'] RefToNamedManagedEntity: ref = vim.Datacenter:ha-datacenter, name = ha-datacenter

                                              2013-06-07T22:14:52.884Z [69DDBB90 verbose 'SearchIndex'] RefNamedManagedEntity: result = vim.Datacenter:ha-datacenter

                                              2013-06-07T22:14:52.884Z [69DDBB90 verbose 'SearchIndex'] GetMatchingChild: returning child = [N4Solo17HaFixedDatacenterE:0x57098f4]

                                              2013-06-07T22:14:52.884Z [69DDBB90 verbose 'SearchIndex'] FindByInventoryPath returning vim.Datacenter:ha-datacenter

                                              2013-06-07T22:14:52.884Z [69DDBB90 info 'TaskManager'] Task Completed : haTask--vim.SearchIndex.findByInventoryPath-91916343 Status success

                                              2013-06-07T22:14:52.886Z [69A81B90 verbose 'DatastoreBrowser'] 4f702519-ed59a094-6804-d4bed9ed50ab-datastorebrowser::Search Path = [SATA-RAID5]ISO Spec = (vim.host.DatastoreBrowser.SearchSpec) {

                                              -->    dynamicType = <unset>,

                                              -->    query = (vim.host.DatastoreBrowser.Query) [

                                              -->       (vim.host.DatastoreBrowser.FolderQuery) {

                                              -->          dynamicType = <unset>,

                                              -->       },

                                              -->       (vim.host.DatastoreBrowser.Query) {

                                              -->          dynamicType = <unset>,

                                              -->       }

                                              -->    ],

                                              -->    details = (vim.host.DatastoreBrowser.FileInfo.Details) {

                                              -->       dynamicType = <unset>,

                                              -->       fileType = true,

                                              -->       fileSize = false,

                                              -->       modification = false,

                                              -->       fileOwner = false,

                                              -->    },

                                              -->    searchCaseInsensitive = <unset>,

                                              -->    matchPattern = (string) [

                                              -->       "CentOS-6\.2-x86_64-minimal\.iso"

                                              -->    ],

                                              -->    sortFoldersFirst = <unset>,

                                              --> }

                                              2013-06-07T22:14:52.887Z [69A81B90 verbose 'DatastoreBrowser'] 4f702519-ed59a094-6804-d4bed9ed50ab-datastorebrowser::SearchInt

                                              2013-06-07T22:14:52.887Z [69A81B90 verbose 'DatastoreBrowser'] 4f702519-ed59a094-6804-d4bed9ed50ab-datastorebrowser::GetLocalpathFromDatastorepath

                                              2013-06-07T22:14:52.889Z [69A81B90 verbose 'DatastoreBrowser'] 4f702519-ed59a094-6804-d4bed9ed50ab-datastorebrowser::Verify

                                              2013-06-07T22:14:56.899Z [FFE9FAD0 warning 'HTTP server /folder'] Error creating Reader: FileIO error : Failed to lock file  : /vmfs/volumes/4f702519-ed59a094-6804-d4bed9ed50ab/ISO/CentOS-6.2-x86_64-mini

                                              mal.iso

                                              2013-06-07T22:14:56.899Z [FFE9FAD0 verbose 'HttpSvc.HTTPService'] HTTP Response: Complete (processed 0 bytes)

                                              2013-06-07T22:14:56.899Z [FFE9FAD0 verbose 'HttpSvc.HTTPService'] User agent is 'VI Perl'

                                              2013-06-07T22:14:56.899Z [FFE9FAD0 verbose 'HTTP server /folder'] Sent InternalServerError response for GET /folder/ISO/CentOS-6.2-x86_64-minimal.iso?dsName=SATA-RAID5

                                              Viewing all 34639 articles
                                              Browse latest View live


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