Closed ghost closed 7 years ago
+1
I'm sorry to hear that caused an error! Unfortunately, that command is doing nothing more than making a SOAP call. There isn't anything rbvmomi can do to prevent this. I'll see if I can find someone that can answer why that may be happening, but I can't imagine this being fixed from within rbvmomi.
It appears this may be an issue in VMware Tools and there isn't anything we can do on the RbVmomi side to handle this. Hopefully, there will be a fix for this soon and this won't be a problem for you anymore. I'm going to go ahead and close this since we can't do anything on our end. Thanks for reporting!
There is a workaround, it should work if you define username like this : username: "WINDOWS_hostname\User",
PD.- change WINDOWS_hostname for the real windows configured hostname as per needed.
Hello. We are having problems using rbvmomi function (StartProgramInGuest) to run simple commands on an VM, the problems occur after updating the version of VMwareTools. It is happening only on Windows guests.
When we use this method with older version of the tools everything works correctly, but afterwards we get an "Invalid Argument" error.
Here is the code we are using:
When we use the script with the VMwareTools version 9.0.12 everything work fine, but after updating (to 10.0.9) we get this error:
We have tried the same attempt with pyvmomi and we are getting the same error (We will open another issue on their git project).
Maybe it is due to any change on the SDK on the communication between vCenter and VMwareTools agent. Thanks advance. Best regards.