PowerCLI

 View Only
  • 1.  general system error occurred: vix error codes = (1, 0)

    Posted Dec 31, 2017 07:03 PM

    Hi, whould appriciate your kind help.

    I am runnign a power cli script with Invoke-VMScript command. It work fine when the target VM connect to standart switch. When I connect it to DVS I get "A general system error occurred: vix error codes" error. In defrent environemnt with defrent VMs it work fine with DVS. All environemnts are 6.5.1 with PowerCLI 6.5.0.

    The script is (the invok part):

    Invoke-VMScript "ping $PingTarget" -vm $EDRC -HostUser $HostUser -HostPassword $HostUserAdminPass -GuestUser $EDRCUser -GuestPassword $EDRCPassword -ScriptType "bat"

    I also got a screenshot of log from putty attched.

    The error:

    Thu 28/12/2017 18:52:47 - Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout

    Thu 28/12/2017 18:52:47 -                                                                                                   Seconds           

    Thu 28/12/2017 18:52:47 - -----    -----------     ------------------- ------------------------  -------------------------- -------------------

    Thu 28/12/2017 18:52:47 - Session  NoProxy         Multiple            Ignore                    False                      300               

    Thu 28/12/2017 18:52:47 - User                                                                                                                

    Thu 28/12/2017 18:52:47 - AllUsers NoProxy         Multiple            Ignore                    False                                        

    Thu 28/12/2017 18:52:47 - Session  NoProxy         Multiple            Ignore                    False                      300               

    Thu 28/12/2017 18:52:47 - User                                                                                                                

    Thu 28/12/2017 18:52:47 - AllUsers NoProxy         Multiple            Ignore                    False                                         

    Thu 28/12/2017 18:52:47 - Session  NoProxy         Multiple            Ignore                    False                      300               

    Thu 28/12/2017 18:52:47 - User                                                                                                                 

    Thu 28/12/2017 18:52:47 - AllUsers NoProxy         Multiple            Ignore                    False                                        

    Thu 28/12/2017 18:52:47 - WARNING:

    Thu 28/12/2017 18:52:47 - The server certificate is not valid.

    Thu 28/12/2017 18:52:47 - IsConnected   : True

    Thu 28/12/2017 18:52:47 - Id            : /VIServer=ozar\administrator@vcdc2p:443/

    Thu 28/12/2017 18:52:47 - ServiceUri    : https://vcdc2p/sdk

    Thu 28/12/2017 18:52:47 - SessionSecret : "15ff7cef0ad59be1c0cbf0ca9d457b68125b4137"

    Thu 28/12/2017 18:52:47 - Name          : VCDC2P

    Thu 28/12/2017 18:52:47 - Port          : 443

    Thu 28/12/2017 18:52:47 - SessionId     : "15ff7cef0ad59be1c0cbf0ca9d457b68125b4137"

    Thu 28/12/2017 18:52:47 - User          : OZAR\Administrator

    Thu 28/12/2017 18:52:47 - Uid           : /VIServer=ozar\administrator@vcdc2p:443/

    Thu 28/12/2017 18:52:47 - Version       : 6.5

    Thu 28/12/2017 18:52:47 - Build         : 5973321

    Thu 28/12/2017 18:52:47 - ProductLine   : vpx

    Thu 28/12/2017 18:52:47 - InstanceUuid  : 70ce191f-2d3d-4822-874b-49f379de8366

    Thu 28/12/2017 18:52:47 - RefCount      : 1

    Thu 28/12/2017 18:52:47 - ExtensionData : VMware.Vim.ServiceInstance

    Thu 28/12/2017 18:52:47 - Client        : VMware.VimAutomation.ViCore.Impl.V1.VimClient

    Thu 28/12/2017 18:52:47 - Test target WINDOWS using EDRC - prn2t

    Thu 28/12/2017 18:52:47 - Copy-VMGuestFile : 12/28/2017 6:51:49 PM Copy-VMGuestFile                          A general system error occurred: vix error codes = (1, 0).

    Thu 28/12/2017 18:52:47 - At C:\Users\administrator.OZAR\AppData\Local\Temp\1\EDR\demiForScreenShot.PS1:23 char:2

    Thu 28/12/2017 18:52:47 - +     Copy-VMGuestFile -Source $TMPdir\ExecPars.exe -Destination c:\EDR ...

    Thu 28/12/2017 18:52:47 - +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Thu 28/12/2017 18:52:47 -     + CategoryInfo          : NotSpecified: (:) [Copy-VMGuestFile], SystemError

    Thu 28/12/2017 18:52:47 -     + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DirectoryExistsInGuest_ViError,VMware.VimAutomation.ViCore.C

    Thu 28/12/2017 18:52:47 -    mdlets.Commands.CopyVMGuestFile

    Thu 28/12/2017 18:52:47 - Invoke-VMScript : 12/28/2017 6:51:51 PM     Invoke-VMScript                              A general system error occurred: vix error codes = (1, 0).

    Thu 28/12/2017 18:52:47 - At C:\Users\administrator.OZAR\AppData\Local\Temp\1\EDR\demiForScreenShot.PS1:47 char:17

    Thu 28/12/2017 18:52:47 - + ...             Invoke-VMScript "ping $PingTarget" -vm $EDRC -HostUser $H ...

    Thu 28/12/2017 18:52:47 - +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Thu 28/12/2017 18:52:47 -     + CategoryInfo          : NotSpecified: (:) [Invoke-VMScript], SystemError

    Thu 28/12/2017 18:52:47 -     + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_RunScriptInGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets

    Thu 28/12/2017 18:52:47 -    .Commands.InvokeVmScript

     

    Thanks



  • 2.  RE: general system error occurred: vix error codes = (1, 0)

    Posted Dec 31, 2017 07:06 PM

    Can you check if there is any additional information in the vmware.log file?

    That's normally in the folder where the VMX file of the VM is located.



  • 3.  RE: general system error occurred: vix error codes = (1, 0)

    Posted Dec 31, 2017 07:29 PM
    In the image attched you can see the part of the log related  from the VMX folder.


  • 4.  RE: general system error occurred: vix error codes = (1, 0)

    Posted Dec 31, 2017 09:18 PM

    Sorry, missed that.

    Looks like there might be an issue with the VMware Tools.

    Did you try rebooting the guest OS?

    Does it keep giving those same errors after a reboot?

    Perhaps try a uninstall/install of VMware Tools.



  • 5.  RE: general system error occurred: vix error codes = (1, 0)

    Posted Jan 01, 2018 12:54 PM

    Hi,

    I get same result with any VM. I rebooted the servers many times any replace the VM tools to the latest.

    The strange thing is, when i connect the target VM to a local VM switch it work fine. When i connec the target VM to a DVS I get this issue.

    What can we do to troubleshoot this?

    Thanks



  • 6.  RE: general system error occurred: vix error codes = (1, 0)

    Posted Jan 01, 2018 01:28 PM

    We had a similar error some time ago, there it was the credentials.
    See invoke-vmscript system error occurred: vix error codes = (1, 0)



  • 7.  RE: general system error occurred: vix error codes = (1, 0)

    Posted Jan 01, 2018 01:31 PM

    I am pretty sure it is not credentials since it work with same user and password for a VM connected to a simple VM Switch. When connecting same VM to DVS I get this error... This is why it is so strange. I created a clean install lab with same setting and there it work fine for simpla VM switch and for DVS. Any IDEA waht to look for?

    Thanks



  • 8.  RE: general system error occurred: vix error codes = (1, 0)

    Posted Jan 01, 2018 02:13 PM

    Not really I'm afraid.

    There are a few you things you might check/try (but these are guesses, so not sure if they will help).

    - is there any network filtering active to/from the VDS (could also be in the guest OS FW)

    - could be that the VSS and VDS have different subnets. Did you try with a VDS portgroup and the VSS subnet?

    - is IPv6 active for the VDS connection?

    - is there a VMKernel defined on the VDS? Can you try if that makes a difference?

    - is there anything in the vpxd logs?

    I would also try to find out why those RPC errors are in the log.

    There could be a general RPC issue