VMware vCloud

 View Only
  • 1.  PC and vcenter 8.0 connection failed after 30m without activity (pyVmomi). How to increase this TO

    Posted Dec 28, 2022 04:20 PM

    Hello,

    A python script (from a PC) open a connection with vcenter (SmartConnectNoSSL), task have different duration but I discover and I am able to reproduce the next script like 

    loop x=15, x=x+10, x<240 : connect / wait for x minutes /get info / disconnect

    Works well if x stay below than 30 minutes

    I try to manage different timeout in /etc/vmware-vpx/vpx.cfg or in gui of the vcenter without any success.

    Could you help me to solve this problem.

    Best regards,

    Olivier



  • 2.  RE: PC and vcenter 8.0 connection failed after 30m without activity (pyVmomi). How to increase this TO

    Posted Dec 29, 2022 08:48 AM

    I found an excellent post from William Lam in order to list timeouts and how to change then.

    https://williamlam.com/2022/10/vsphere-session-timeout-overview.html

    In my case the in /etc*/vmware-vpx/vpxd.cfg

    <soap>
    <sessionTimeout>30</sessionTimeout>
    <maxSessionCount>1000</maxSessionCount>
    </soap>

    Regards,