Hello guys,
i am writing api for my vcenter with sdk but i have a problem about ListProcessesInGuest command
is interactiveSession == true => The guest operations agent could not be contacted.
is interactiveSession == false => The operation is not supported on the object.
request data:
array(3) { | |
["_this"]=> | |
array(2) { | |
["_"]=> | |
string(29) "guestOperationsProcessManager" | |
["type"]=> | |
string(19) "GuestProcessManager" | |
} | |
["vm"]=> | |
array(2) { | |
["_"]=> | |
string(6) "vm-212" | |
["type"]=> | |
string(14) "VirtualMachine" | |
} | |
["auth"]=> | |
array(3) { | |
["username"]=> | |
string(4) "root" | |
["password"]=> | |
string(11) "test" | |
["interactiveSession"]=> | |
bool(true) | |
} | |
} | |
so i test invoke-vmscript command in powercli and its working perfectly for this vm what can i do ?
What kind of Guest OS do you have running in that VM?
And InteractiveSession should be set to $false.
Same as I do in my Invoke-VMScriptPlus function.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
centos7
i set to false and response is : The operation is not supported on the object.
i check the vm data and guestOperationsReady is true and guestState is true everything looks good idk why its happening
This is a listed fault for that method.
Can you check the vmware.log if that gives any additional info?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
where is the file
in esxi
in vcenter
in vm ?
In the folder where the VM's files are located
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
i tried but nothing changing on log file size
Perhaps you have to enable debugging.
See KB1007873
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
i checked 3 times logging enabled not about guest process
Strange, and you say that INvoke-VMScript works?
You could try my Invoke-VMScriptPlus with the Verbose switch, that provides more info.
And you can check if that shows up in the vmware.log
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
yes INvoke-VMScript its working
but sdk api is giving error its my code on php
Sorry, I don't know anything about PHP
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
which reasons are giving this error if you tell me i can check them
its log about this function