Hi,
While running a script in guest VM using Invoke-VMscript command, I am getting the following error and stack trace. I have made sure that the Invoke-VMScript command is executed after the VMwareTools are up and running in the guest VM.
Error:
Invoke-VMScript A general system error occurred: vix error codes = (1, 0).
Stack trace:
VMware.VimAutomation.ViCore.Impl.V1.Service.VmGuestServiceImpl.WaitProcessInGuest(GuestProcessManager guestProcessManager, GuestAuthentication guestAuthentication, ManagedObjectReference vmMoRef, Int64 pid)
at VMware.VimAutomation.ViCore.Impl.V1.Service.VmGuestServiceImpl.RunScriptInGuestCore(VirtualMachineInterop vm, GuestProcessManager guestProcessManager, GuestFileManager guestFileManager, GuestAuthentication guestAuthentication, String scriptText, ScriptType scriptType, GuestProcessInfo& processInfo)
at VMware.VimAutomation.ViCore.Impl.V1.Service.VmGuestServiceImpl.RunScriptInGuest(VirtualMachineInterop vm, String scriptText, String guestUserName, SecureString guestPassword, Int32 toolsWaitSeconds, ScriptType scriptType)
at VMware.VimAutomation.ViCore.Impl.V1.Service.VmGuestServiceImpl.<>c__DisplayClass65_0.<RunScriptInGuest>b__0(ClientSideTask <p0>, Object <p1>)
at VMware.VimAutomation.Sdk.Util10.Task.ClientSideTaskImpl.ThreadProc(Object obj)
The script does the following:
1. Unjoins and join the guest VM to a domain
2. Renames hostname of guest VM
Has anyone seen this error and stack trace before? Can you help me get around this issue?
Thanks,
Priya