All Posts

I want to create a new template from an old template using vmware REST API or Ansible code, is that possible? Is it possible to rename a VM or template using the vmware API?
Hello, I am facing an issue while trying to import a .vmdk file using the VMware API and Go functions in my ESXi 8.0 environment. During the import process, I receive the following errors: 2023-06... See more...
Hello, I am facing an issue while trying to import a .vmdk file using the VMware API and Go functions in my ESXi 8.0 environment. During the import process, I receive the following errors: 2023-06-08T09:35:35.775Z In(182) vmkernel: cpu5:2108767 opID=8861b2d)VmMemXfer: vm 2108767: 2473: Could not find MemXferFS region for /vmfs/volumes/64803a69-9b7d3f75-bc78-e43d1a249ab0/cecoco-ova-base_3.0.0/cecoco-ova-base_3.0.0.vmx 2023-06-08T09:35:35.784Z In(182) vmkernel: cpu5:2108767 opID=8861b2d)VmMemXfer: vm 2108767: 2459: Evicting VM with path:/vmfs/volumes/64803a69-9b7d3f75-bc78-e43d1a249ab0/cecoco-ova-base_3.0.0/cecoco-ova-base_3.0.0.vmx 2023-06-08T09:35:35.784Z In(182) vmkernel: cpu5:2108767 opID=8861b2d)VmMemXfer: 210: Creating crypto hash 2023-06-08T09:35:35.784Z In(182) vmkernel: cpu5:2108767 opID=8861b2d)VmMemXfer: vm 2108767: 2473: Could not find MemXferFS region for /vmfs/volumes/64803a69-9b7d3f75-bc78-e43d1a249ab0/cecoco-ova-base_3.0.0/cecoco-ova-base_3.0.0.vmx   The error is being generated when executing the following Go functions: importSpec, err := manager.CreateImportSpec(ctx, string(ovfDescriptor), resourcePool, datastore, *cisp) ... lea, err := resourcePool.ImportVApp(ctx, importSpec.ImportSpec, nil, nil) ... I have verified that the ESXi host and the .ovf file are correctly configured, as I am able to create VMs using the UI. However, the problem persists when I attempt the import via the API. Any insights into what might be causing this problem and how to resolve it would be greatly appreciated. Best regards.  
Hi, I am using the VMWARE REST APIs to connect to my cluster, modify VMs, get host info etc. I would like to get existing DRS(affinity/anti affinity) rules for my hosts/vms & disable it. I prefer t... See more...
Hi, I am using the VMWARE REST APIs to connect to my cluster, modify VMs, get host info etc. I would like to get existing DRS(affinity/anti affinity) rules for my hosts/vms & disable it. I prefer to use REST APIs over PowerCLI mode. Thanks, Sagar
I discovered the API explorer part of our vCenter and I have had some success pulling information about VM’s. What I’m really interested in is the Metrics and Data Points API’s. I haven’t had much lu... See more...
I discovered the API explorer part of our vCenter and I have had some success pulling information about VM’s. What I’m really interested in is the Metrics and Data Points API’s. I haven’t had much luck with getting useful information out of them. Under the Metrics portion I can pull the list of the available metrics but when I use the data part to actually get the data I get empty returns. This is the result for not specifying any metrics on the data API. It’s just empty. curl -X GET 'https://{myvcenter}/api/stats/data/dp?metric=cpu.capacity.usage' -H 'vmware-api-session-id: {mysessionid}' This is the entirety of the response.  What am I doing wrong?  {myvcenter} and {mysessionid} are just place holders for the real information.  I  VstatsDataDataPointsResult        { "data_points":  [ ] [   ] } 
Hi, trying to build some project using C++ and VIX API on Windows. As it is told in API reference I'm using '/MTd /NODEFAULTLIB:libcmtd.lib' flags, but anyway I get errors on build. By the way, th... See more...
Hi, trying to build some project using C++ and VIX API on Windows. As it is told in API reference I'm using '/MTd /NODEFAULTLIB:libcmtd.lib' flags, but anyway I get errors on build. By the way, the release build is working great. There is my CMake project code: cmake_minimum_required(VERSION 3.15 FATAL_ERROR) project(virtualmachine LANGUAGES CXX) # Static file linking set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:libcmtd.lib") set(VIX_API_BIN "C:/Program Files (x86)/VMware/VMware VIX") # Check that VIX API is installed if (NOT EXISTS ${VIX_API_BIN}) message(FATAL_ERROR "VMware VIX API is not installed.") endif () # Include VIX API include_directories(${VIX_API_BIN}) add_executable(${PROJECT_NAME} main.cpp virtual_machine.h virtual_machine_exception.h vmware_virtual_machine.cpp vmware_virtual_machine.h ) set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES CXX_EXTENSIONS NO ) # Link additional libraries target_link_libraries(${PROJECT_NAME} PRIVATE "${VIX_API_BIN}/Vix64AllProductsd.lib" # VIX API ws2_32 # WinSock2 )   May be someone tried to link it with C++ code and know what may be a problem? There are the build errors: C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _invalid_parameter C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _invalid_parameter C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\main.cpp.obj : error LNK2001: unresolved external symbol _invalid_parameter C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\vmware_virtual_machine.cpp.obj : error LNK2001: unresolved external symbol _invalid_parameter C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol _invalid_parameter C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _invalid_parameter C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xwcsxfrm.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(StlLCMapStringA.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\main.cpp.obj : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(filesystem.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol _free_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xwcsxfrm.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(StlLCMapStringA.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\main.cpp.obj : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale0.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(filesystem.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol _malloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _CrtDbgReport C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _CrtDbgReport C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\main.cpp.obj : error LNK2001: unresolved external symbol _CrtDbgReport C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\vmware_virtual_machine.cpp.obj : error LNK2001: unresolved external symbol _CrtDbgReport C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(cerr.obj) : error LNK2001: unresolved external symbol _CrtDbgReport C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _CrtDbgReport C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol _calloc_dbg referenced in function _Getctype C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale.obj) : error LNK2001: unresolved external symbol _calloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(wlocale.obj) : error LNK2001: unresolved external symbol _calloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xlocale.obj) : error LNK2001: unresolved external symbol _calloc_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol _wcsdup_dbg referenced in function _Getctype C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xstrcoll.obj) : error LNK2001: unresolved external symbol _wcsdup_dbg C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(locale.obj) : error LNK2019: unresolved external symbol _realloc_dbg referenced in function "private: static void __cdecl std::locale::_Locimp::_Locimp_Addfac(class std::locale::_Locimp *,class std::locale::facet *,unsigned __int64)" (?_Locimp_Addfac@_Locimp@locale@std@@CAXPEAV123@PEAVfacet@23@_K@Z) C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(StlLCMapStringA.obj) : error LNK2019: unresolved external symbol _CrtDbgReportW referenced in function _freea_crt C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(xmbtowc.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\libcpmtd.lib(StlCompareStringA.obj) : error LNK2001: unresolved external symbol _CrtDbgReportW C:\Users\User\Desktop\virtualmachine\out\build\x64-Debug\virtualmachine.exe : fatal error LNK1120: 8 unresolved externals
Recently upgrading VMWare Workstation 15 Pro to VMWare Workstation 16.2 Pro, loading NTFS using VixMntapi_MountVolume failed and return error number is 1 but if loading NTFS in read-only is successfu... See more...
Recently upgrading VMWare Workstation 15 Pro to VMWare Workstation 16.2 Pro, loading NTFS using VixMntapi_MountVolume failed and return error number is 1 but if loading NTFS in read-only is successful how is this problem solved?This problem is good in previous versions
Hi,   Is there any API to set root password during VM cloning from template using this API method "cloneVM_Task"? With Windows we can set it but with Linux did not find any way. Please help Thanks
I am just putting out there and hope that someone can put to rest an issue we seem to face. We have recently converted from the forbidden VMRun to PowerCLI and this has allowed us to upgrade from vSp... See more...
I am just putting out there and hope that someone can put to rest an issue we seem to face. We have recently converted from the forbidden VMRun to PowerCLI and this has allowed us to upgrade from vSphere/ESXi 6.0 to 7.0. It has been a hard and long process to de-bundle a lot from VMRun as we are a heavy user of the API's of vSphere more than the UI, as we develop software on it and mainly use it to test builds. So far, most things in the migration have gone well. However, there is one item that we have had to put in a large scale waste work around to overcome. It is causing API drama's as we have to do a lot of queries get the information we want. When running program in guest, we used to invoke it and then wait until it's finished and read its exit code all from the command line in one line. PowerCLI seems to behave in fire and forget, so we have to poll the VM running services to wait for our process to exit and then do some magic to pull down the exit code. Is this all there is? Does anyone else know of a hidden secret we dont? Looking at the MOB, I can't see anything we can pass to make it behave any differently. If anyone can help or point me to anything, that would be great.
Hi I need the CLI or REST API to get the PAN VM info from NSX environment where both are configured under the same vCenter server. Can we get Palo Alto VM info such as publisher name, product detai... See more...
Hi I need the CLI or REST API to get the PAN VM info from NSX environment where both are configured under the same vCenter server. Can we get Palo Alto VM info such as publisher name, product details and mac address from the NSX using CLI or REST API ? At least, I will be glad if someone can tell me where to find/view these details on NSX vm. Thanks, Harikrishna
@aadesh04  Are you really still using VMware Server 2.0? It was discontinued more than 10 years ago...
how to back up  VMware Server 2.0?   https://jiofilocalhtml.co.in/ https://19216881.link/ https://router-network.uno/
+ adding vmware tools version  [2020-03-24T12:05:02.742Z] [ message] [vmsvc] Log caching is enabled with maxCacheEntries=4096. [2020-03-24T12:05:02.742Z] [ message] [vmtoolsd] Tools Version:... See more...
+ adding vmware tools version  [2020-03-24T12:05:02.742Z] [ message] [vmsvc] Log caching is enabled with maxCacheEntries=4096. [2020-03-24T12:05:02.742Z] [ message] [vmtoolsd] Tools Version: 10.3.5.7752 (build-10430147) [2020-03-24T12:05:02.789Z] [ message] [vmtoolsd] Plugin 'hgfsServer' initialized. [2020-03-24T12:05:02.789Z] [ message] [vmtoolsd] Plugin 'hgfsUsability' initialized. [2020-03-24T12:05:02.789Z] [ message] [vix] VixTools_Initialize: Toolsd running as user 'SYSTEM' [2020-03-24T12:05:02.789Z] [ message] [vix] QueryVGAuthConfig: vgauth usage is: 1
we are trying to use a domain authentication to read a environment variable from the guest vm. the user never logged in guest vm. looks like vmware was calling LoadUserProfile which internally tr... See more...
we are trying to use a domain authentication to read a environment variable from the guest vm. the user never logged in guest vm. looks like vmware was calling LoadUserProfile which internally try to create temporary user profiles  folders. we see bunch of folders under C:\user\Temp.* after calling this api couple of times we can't read the env anymore. because windows reaches temporary profiler folder limit i guess. Can some one help to see why vmware is not calling unloaduserprofile all the times? [2020-04-05T20:32:08.383Z] [ warning] [VCGA] VGAuthImpersonateImpl: failed to load profile for user 'admin\svc_actifiosky2' [2020-04-05T20:32:08.383Z] [ warning] [vix] VixToolsTranslateVGAuthError: error code 0x1 has no translation [2020-04-05T20:32:08.383Z] [ warning] [vix] VixToolsImpersonateUser: impersonation failed (1) [2020-04-05T20:32:08.383Z] [ message] [vix] VixToolsReadEnvVariables: opcode 187 returning 1 [2020-04-06T20:31:58.046Z] [ message] [vix] VixTools_ProcessVixCommand: command 187 [2020-04-06T20:31:58.077Z] [ warning] [VCGA] [function VGAuthLoadUserProfile, file d:/build/ob/bora-10402285/bora-vmsoft/vgauth/lib/impersonateWin32.c, line 114], NetUserGetInfo() failed with error 2221 for user 'admin\svc_actifiosky2' [2020-04-06T20:31:58.092Z] [ warning] [VCGA] [function VGAuthLoadUserProfile, file d:/build/ob/bora-10402285/bora-vmsoft/vgauth/lib/impersonateWin32.c, line 119], LoadUserProfile() failed for user 'admin\svc_actifiosky2', [Win32 Error = 2] The system cannot find the file specified. [2020-04-06T20:31:58.092Z] [ warning] [VCGA] VGAuthImpersonateImpl: failed to load profile for user 'admin\svc_actifiosky2' [2020-04-06T20:31:58.092Z] [ warning] [vix] VixToolsTranslateVGAuthError: error code 0x1 has no translation [2020-04-06T20:31:58.092Z] [ warning] [vix] VixToolsImpersonateUser: impersonation failed (1) [2020-04-06T20:31:58.108Z] [ message] [vix] VixToolsReadEnvVariables: opcode 187 returning 1
could you try the below work-arounds, -> 1: Work around 1: cd /usr/lib/vmware-tools/lib32/libconf or /usr/lib/vmware-tools/lib64/libconf mkdir lib cp gtk-2.0 lib/ logout and login a... See more...
could you try the below work-arounds, -> 1: Work around 1: cd /usr/lib/vmware-tools/lib32/libconf or /usr/lib/vmware-tools/lib64/libconf mkdir lib cp gtk-2.0 lib/ logout and login again or kill vmtoolsd process and then start vmtoolsd by running this command: /usr/lib/sbin64/vmtoolsd -n vmusr --blockFd 3 & Note: We manually created /usr/lib/vmware-tools/lib32{lib64}/libconf/lib.When uninstalling the Tools by running /usr/bin/vmware-uninstall-tools.pl, /usr/lib/vmware-tools/lib32{lib64}/libconf/lib will not be removed. Manually remove /usr/lib/vmware-tools for a clean uninstall. -> 2: Work around 2: Uninstall the tools by running /usr/bin/vmware-uninstall-tools.pl cd vmware-tools-distrib from uncompressed tools tarball cd lib/lib32/libconf or lib/lib64/libconf mkdir lib cp gtk-2.0 lib/ Install the tools by running the command: vmware-tools-distrib/vmware-install.pl Notes: In this case, uninstalling tools in future does not require any additional steps. The following message may still be seen in the messages log: [Gtk] gtk_disable_setlocale() must be called before gtk_init()
Hi could some one give me a clue how to fix this? I trying install VMware-VIX-1.15.4-4352439.x86_64.bundle on my Debian 10. I have installed VMware Workstation 15.5.1 build-15018445. During inst... See more...
Hi could some one give me a clue how to fix this? I trying install VMware-VIX-1.15.4-4352439.x86_64.bundle on my Debian 10. I have installed VMware Workstation 15.5.1 build-15018445. During installation I gets such errors: pretender@ThinkPad:~/Downloads$ sudo sh VMware-VIX-1.15.4-4352439.x86_64.bundle Extracting VMware Installer...done. (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "adwaita", /usr/share/themes/Bubble-Dark-Blue/gtk-2.0/main.rc:1090: error: unexpected identifier `direction', expected character `}' /usr/share/themes/Bubble-Dark-Blue/gtk-2.0/apps.rc:91: error: unexpected identifier `direction', expected character `}' (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (vmware-installer.py:22570): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", Gtk-Message: Failed to load module "atk-bridge": /usr/lib/x86_64-linux-gnu/libatspi.so.0: undefined symbol: g_type_class_adjust_private_offset Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory Traceback (most recent call last):   File "/tmp/tmphultezw2.vmis.env", line 132, in <module>     exec(fileObj.read(), mod.__dict__)   File "<string>", line 265     except OSError, e:                   ^ SyntaxError: invalid syntax
vExpert: Christophe Decanini​ Hello, i have an issue where vRo can create directories in VM guests but is unable to copy file to guest. Error is below org.apache.http.conn.ConnectTimeoutExcepti... See more...
vExpert: Christophe Decanini​ Hello, i have an issue where vRo can create directories in VM guests but is unable to copy file to guest. Error is below org.apache.http.conn.ConnectTimeoutException: Connect to x.x.x.x:443 [/x.x.x.x] failed: Read timed out (Workflow:Copy file from vCO to guest / Scriptable task (item1)12)'​ vRO server is on a separate network than vCenters and ESXis, in order to connect and perform tasks against the vCenters i had to add the NATed IPs in vRO /etc/hosts file, but if i do the same for the ESXI hosts it doesn't use the NATed IPs, the Copy file to guest workflow uses the "real" IPs, so i suspect it gets the IPs from the vCenters. Is there any workaround that can be done so that vRo knows that it needs to use the ESXi host NATed IPs ?
Hi All i'm starting to use the VIX api, and i'm getting 22003 error message this is the code NOTE: * i am running this code using VS 2017 , .net 4.72 the VC is 6.5 For vSphere, the VIX AP... See more...
Hi All i'm starting to use the VIX api, and i'm getting 22003 error message this is the code NOTE: * i am running this code using VS 2017 , .net 4.72 the VC is 6.5 For vSphere, the VIX API was deprecated in 2012, as announced in the VIX 1.11 Release Notes. VIX 1.14 was the last supported release for vSphere. VIX is no longer supported with in 6.5 and VMware Tools 10.1.0 and later. https://stackoverflow.com/questions/54868060/vmware-esxi-6-7-guest-os-password VixError err; char *vmxPath; VixHandle hostHandle = VIX_INVALID_HANDLE; VixHandle jobHandle = VIX_INVALID_HANDLE; VixHandle vmHandle = VIX_INVALID_HANDLE; jobHandle = VixHost_Connect(VIX_API_VERSION, //VIX_SERVICEPROVIDER_DEFAULT, VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, "THE_VC_IP_ADDRESS", // *hostName, 0, // hostPort, "root", // *userName, "THE_VC_PASSWORD", // *password, 0, // options, VIX_INVALID_HANDLE, // propertyListHandle, NULL, // *callbackProc, NULL); // *clientData); err = VixJob_Wait(jobHandle, VIX_PROPERTY_JOB_RESULT_HANDLE, &hostHandle, VIX_PROPERTY_NONE); am i missing something  ?
i've experianced the same issue , but i think there is somthing that i am missing here these are the steps that i've done : 1 . install the vmware vix API over my local machine (nothing speci... See more...
i've experianced the same issue , but i think there is somthing that i am missing here these are the steps that i've done : 1 . install the vmware vix API over my local machine (nothing special here) got only some asseblies and several code example 2. created a c++ project over VS2017  i've used the VixAllProductsDyn.dll 2.1 - project complies and runs without but VixHost_Connect failes to connect with error code 22003 this is the code sample VixError err; char *vmxPath; VixHandle hostHandle = VIX_INVALID_HANDLE; VixHandle jobHandle = VIX_INVALID_HANDLE; VixHandle vmHandle = VIX_INVALID_HANDLE; jobHandle = VixHost_Connect(VIX_API_VERSION, //VIX_SERVICEPROVIDER_DEFAULT, VIX_SERVICEPROVIDER_VMWARE_VI_SERVER, "THE_VC_IP_ADDRESS", // *hostName, 0, // hostPort, "THE_VC_USER_NAME", // *userName, "THE_VC_PASSWORD", // *password, 0, // options, VIX_INVALID_HANDLE, // propertyListHandle, NULL, // *callbackProc, NULL); // *clientData); err = VixJob_Wait(jobHandle, VIX_PROPERTY_JOB_RESULT_HANDLE, &hostHandle, VIX_PROPERTY_NONE); if (VIX_FAILED(err)) { std::cout << "connection failed " << err; } i dont believe i need to install the VIX over my VC am i missing somthing ?
That'd be my guess, although it has quite a bit to go.
Intersting.   What do you think the replacement API for Workstation will be in the long term?  The new REST API?