"Error: [vixDiskLibSample.cpp: 1576] 3 One of the parameters was invalid" error occurred while executing the following command.
root@localhost.localdomain:~# ls -l VMware-vix-disklib-6.7.1-10362358.x86_64.tar.gz
-rwx------ 1 root root 20593857 Nov 29 15:44 VMware-vix-disklib-6.7.1-10362358.x86_64.tar.gz
root@localhost.localdomain:~/vmware-vix-disklib-distrib# cd doc/samples/diskLib/
root@localhost.localdomain:~/vmware-vix-disklib-distrib/doc/samples/diskLib# ls -ltr
total 92
-r--r--r-- 1 root root 90014 Oct 8 11:19 vixDiskLibSample.cpp
-r--r--r-- 1 root root 835 Oct 8 11:19 Makefile
root@localhost.localdomain:~/vmware-vix-disklib-distrib/doc/samples/diskLib# make
g++ -std=c++11 -lpthread -o vix-disklib-sample -I../../../include -L../../../lib64 vixDiskLibSample.cpp -ldl -lz -lsqlite3 -lcurl -lssl -lcrypto -lvixDiskLib
g++ -std=c++11 -lpthread -o vix-mntapi-sample -DFOR_MNTAPI -I../../../include -L../../../lib64 vixDiskLibSample.cpp -ldl -lz -lsqlite3 -lcurl -lssl -lcrypto -lvixDiskLib -lvixMntapi
root@localhost.localdomain:~/vmware-vix-disklib-distrib/doc/samples/diskLib# ./vix-disklib-sample -info -host 192.168.100.10 -user root -password secret "[datastore1] vm01/vm01.vmdk"
Error: [vixDiskLibSample.cpp:1576] 3 One of the parameters was invalid
root@localhost.localdomain:~/vmware-vix-disklib-distrib/doc/samples/diskLib# g++ -dumpversion
4.8.5
root@localhost.localdomain:~/vmware-vix-disklib-distrib/doc/samples/diskLib# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
192.168.100.10 is the host of ESXi.
ESXi version is 6.5.0, 5969303.
I was able to create vddk and obtain information locally.
- ./vix-disklib-sample -create sample.vmdk
- ./vix-disklib-sample -info sample.vmdk
But it will fail for remote host.
Is there anyone who knows what is causing the problem ?
Thanks.
メッセージ編集者: Takayuki Yoshinaka tweak