Automation

 View Only
Expand all | Collapse all

connect-vrserver doesn't work

  • 1.  connect-vrserver doesn't work

    Posted Aug 22, 2024 05:05 AM
    Edited by LucD Aug 22, 2024 05:34 AM

    Hi folks,

    i'm trying to connect to a Replication appliance (both via FQDN or IP) installed on a remote vSphere (there is a firewall but the port 443 is opened) but i get the below error on PowerShell.

    PS C:\Users\user> Connect-VrServer -Server VRRemoteAppliance -User "vruser" -Password "mypassword"
    Connect-VrServer : 
    In riga:1 car:1
    + Connect-VrServer -Server VRRemoteAppliance
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Connect-VrServer], ApiException
        + FullyQualifiedErrorId : VMware.Binding.OpenApi.Client.ApiException,VMware.Sdk.Vr.ConnectVrServer

    I've also one Replication installed on my local site, the error is the same.

    Am i missing something, do i need to set something else on firewall or application side?

    Thanks in advance.
    Fab



  • 2.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 05:14 AM

    Did you check the ports in KB312798?



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 3.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 06:38 AM

    Yes, i opened all traffic both sides but the problem persists.




  • 4.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 06:43 AM

    Any more details when you add the -Verbose switch?



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 5.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 07:48 AM

    The same result with -verbose option




  • 6.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 07:49 AM

    You mean no additional output?



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 7.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 08:52 AM

    Yes, no more than this ("IgnoreInvalidCertificate" skippable):

    PS C:\Users\fabrizio.fiscella> Connect-VrServer -Server VRRemoteAppliance -User "vruser" -Password "mypassword" 
    DETTAGLIATO: 'IgnoreInvalidCertificate' not specified. Trying to retrieve and use VMware.Powercli 'InvalidCertificateAction' setting.
    DETTAGLIATO: InvalidCertificateAction: Ignore
    Connect-VrServer : 
    In riga:1 car:1
    + Connect-VrServer -Server VRRemoteAppliance -debug
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Connect-VrServer], ApiException
        + FullyQualifiedErrorId : VMware.Binding.OpenApi.Client.ApiException,VMware.Sdk.Vr.ConnectVrServer

    I also tried all users and password i know on local and remote server but with no result.




  • 8.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 09:06 AM

    Try adding the -IgnoreInvalidCertificate switch



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 9.  RE: connect-vrserver doesn't work

    Posted Aug 22, 2024 01:13 PM
    Edited by LucD Aug 23, 2024 02:39 AM

    Done.

    Nothing changed.

    One step back.

    In my vSphere VC1 (let's say on IP 10.0.0.1) i have the appliance Replication VR1 installed (IP 10.0.0.10).

    I paired it with a remote replication VR2 (let's say 10.10.10.20) on remote vSphere VC2 (10.10.10.10) over the internet and over a firewall.

    Now i use my pc (10.0.0.2) to connect to vCenter VC1 via PowerShell and use PowerCLI to modify VM's portgroup and send the Invoke-VMscript's commands to execute some instructions inside the Guest OS (both Windows and Linux), and all is working fine.

    To monitor the Replication's status of the VM migrating from VC2 to VC1 (percentage, MB/GB, last sync duration...) i would run some commands.

    Now, i'll be gratefull if you would explain the correct way to to this job.

    May i have to connect from my pc (10.0.0.2) to the remote Replication VC2 (10.10.10.20) or directly to VC2 (10.10.10.10)?
    More, with what user do i have to connect (obviously the one registered on the remote vCenter)?

    Thanks a lot for the patience and the support.




  • 10.  RE: connect-vrserver doesn't work

    Posted Aug 26, 2024 01:41 PM

    Any suggestion?




  • 11.  RE: connect-vrserver doesn't work

    Posted Aug 27, 2024 04:32 AM

    I'm afraid I don't have enough practical experience with VR to help you there.



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------