here is the code of the sample (adapted to my case (IP, ...) there are some printf to help the debug :
code comme from : /usr/share/doc/vmware-vix/VMwareVix/samples/powerOn.c
I launched it with this command line :
./powerOn [standard] XP_Pro_64/XP_PRo_64.vmx
and it returns me :
ERROR : The virtual machine cannot be found
for the guest log, i had nothing because there is still no interaction with it.
On the server logs : /var/log/vmware/hostd.log
[2009-01-19 09:33:07.420 'PropertyProvider' 1075181904 verbose] RecordOp ASSIGN: info, haTask--vmodl.query.PropertyCollector.Filter.destroy-148
[2009-01-19 09:33:07.426 'PropertyProvider' 1079327056 verbose] RecordOp ASSIGN: info, haTask--vmodl.query.PropertyCollector.Filter.destroy-149
[2009-01-19 09:33:07.430 'PropertyProvider' 1077594448 verbose] RecordOp ASSIGN: info, haTask--vmodl.query.PropertyCollector.Filter.destroy-150
[2009-01-19 09:33:07.433 'PropertyProvider' 1077016912 verbose] RecordOp ASSIGN: info, haTask--vmodl.query.PropertyCollector.Filter.destroy-151
[2009-01-19 09:33:07.436 'PropertyProvider' 1092327760 verbose] RecordOp ASSIGN: info, haTask--vmodl.query.PropertyCollector.Filter.destroy-152
[2009-01-19 09:33:07.441 'PropertyProvider' 1104898384 verbose] RecordOp ASSIGN: info, haTask--vmodl.query.PropertyCollector.Filter.destroy-153
[2009-01-19 09:33:07.443 'PropertyProvider' 1079327056 verbose] RecordOp ASSIGN: info, haTask--vmodl.query.PropertyCollector.Filter.destroy-154
[2009-01-19 09:33:07.558 'PropertyProvider' 1092327760 verbose] RecordOp ASSIGN: info, haTask-16-vim.EnvironmentBrowser.queryConfigOption-155
[2009-01-19 09:33:07.868 'PropertyProvider' 1102231888 verbose] RecordOp ASSIGN: info, haTask-16-vim.EnvironmentBrowser.queryConfigTarget-156
[2009-01-19 09:33:26.363 'ha-eventmgr' 1104898384 info] Event 28 : User root@127.0.0.1 logged in
[2009-01-19 09:33:26.363 'PropertyProvider' 1104898384 verbose] RecordOp ASSIGN: latestEvent, ha-eventmgr
[2009-01-19 09:33:26.364 'PropertyProvider' 1104898384 verbose] RecordOp ADD: sessionList, ha-sessionmgr
[2009-01-19 09:33:26.449 'TaskManager' 1083140432 info] Task Created : haTask--vim.SearchIndex.findByDatastorePath-157
[2009-01-19 09:33:26.449 'PropertyProvider' 1083140432 verbose] RecordOp ADD: recentTask, ha-taskmgr
[2009-01-19 09:33:26.450 'TaskManager' 1083140432 info] Task Completed : haTask--vim.SearchIndex.findByDatastorePath-157
[2009-01-19 09:33:26.450 'PropertyProvider' 1083140432 verbose] RecordOp ASSIGN: info, haTask--vim.SearchIndex.findByDatastorePath-157
[2009-01-19 09:33:26.494 'PropertyProvider' 1077016912 verbose] RecordOp REMOVE: sessionList, ha-sessionmgr
[2009-01-19 09:33:26.494 'ha-eventmgr' 1077016912 info] Event 29 : User root logged out
[2009-01-19 09:33:26.494 'PropertyProvider' 1077016912 verbose] RecordOp ASSIGN: latestEvent, ha-eventmgr
[2009-01-19 09:33:26.494 'PropertyProvider' 1077016912 verbose] RecordOp ASSIGN: info, haTask--vim.SessionManager.logout-158
[2009-01-19 09:34:28.845 'PropertyProvider' 1092327760 verbose] RecordOp REMOVE: recentTask, ha-taskmgr