Find the sample source in this directory:
/usr/share/doc/vmware-vix-disklib/samples/diskLib
You can copy vixDiskLibSample.cpp and its Makefile to a directory where you have write permission, or switch user to root. On some Linux systems you need to add #include statements for <stdio.h> and <string.h> after the #else clause on line 15. Type the make command to compile. Run the application: