Menu
InformatiWeb Pro
  • Index
  • System admin
  • Virtualization

Login

Registration Password lost ?
FR
  • Windows Server
    • WMS 2012
    • WS2012 R2
    • WS2016
  • Citrix
    • Citrix NetScaler Gateway
    • Citrix XenApp / XenDesktop
    • Citrix XenServer
  • VMware
    • VMware ESXi
    • VMware vSphere
    • VMware Workstation
  • Microsoft
    • Hyper-V
  • RAID
    • Adaptec SmartRAID
  • UPS
    • APC Back-UPS Pro
  • InformatiWeb Pro
  • Virtualization
  • VMware
  • Disable vSphere Client web interface timeout on VMware vSphere 6.7
  • VMware
  • VMware vCenter Server (VCSA), VMware vSphere
  • 05 April 2024 at 07:51 UTC
  • InformatiWeb

Disable vSphere Client web interface timeout on VMware vSphere 6.7

By default, the VMware vSphere Client in VMware vCenter Server and VCSA is configured so that your session expires after 2 hours.
However, in the case of a lab (test environment), it may be interesting to extend or deactivate this expiration time to avoid reconnecting too often.

Note: the file to modify is the same whether you are using the Windows version of VMware vCenter Server or the virtual appliance (VCSA).
However, the method to modify the file is not the same since the operating system is not the same.

  1. Disable vCenter Server web client timeout on VCSA
  2. Disable vCenter Server web client timeout on Windows Server

1. Disable vCenter Server web client timeout on VCSA

If you're using VCSA, which you probably are since the Windows version has been deprecated since version 6.7.

To begin, enable SSH access in the “VCSA” appliance settings.
If necessary, refer to our tutorial: VMware vSphere 6.7 - Enable SSH protocol on VCSA.

Then, connect by SSH to VCSA using PuTTY.

By default, you will be in the VCSA appliance shell.

Plain Text

Command>

To modify the necessary file, you must therefore use the "shell" command to access the Linux Shell.

Plain Text

shell

Plain Text

Shell access is granted to root

Go to the “/etc/vmware/vsphere-client” folder.

Bash

cd /etc/vmware/vsphere-client

Edit the "webclient.properties" file found there using the "vi" text editor which is already pre-installed.

Bash

vi webclient.properties

This is displayed.

Find the "session.timeout" property in this file using the "/" command in "vi", then press Enter.
Which give :

Plain Text

/session.timeout

As you can see, by default, the web client session expires after 120 minutes (= 2 hours).

Press "i" to enter "Insert" mode and specify "0" as the value to disable the session timeout for the web client.

Press "Esc", type the command ":wq" to save the changes and press Enter.

Now that the web client configuration file has been modified, restart the "vsphere-client" service for the change to take effect.

Batch

service-control --restart vsphere-client

Wait a little (around 30 seconds), then this will appear:

Plain Text

Successfully restarted service vsphere-client

2. Disable vCenter Server web client timeout on Windows Server

If you are using the Windows (Server) version of VMware vCenter Server, simply edit the "C:\ProgramData\VMware\vCenterServer\cfg\vsphere-client\webclient.properties" file with notepad.

In this file, look for the “session.timeout” property.
As you can see in the comment just above this property, by default the session for the web client expires after 120 minutes (2 hours).
To disable this timeout, specify 0 as the value and save the file.

Then, for this change to take effect, you will need to restart the "vsphere-client" service.
However, this service is not visible from the usual Windows console (Server).

To restart this "vsphere-client" service, you will need to open a command prompt (cmd.exe) and move to the folder: C:\Program Files\VMware\vCenter Server\bin.

Batch

cd C:\Program Files\VMware\vCenter Server\bin

Then use the command below to restart the service mentioned above.

Batch

service-control --restart vsphere-client

Wait 30 seconds and this will appear in Command Prompt.

Plain Text

Successfully restarted service vsphere-client

Source : Configure the vSphere Web Client Timeout Value - VMware Docs.

Share this tutorial

Partager
Tweet

To see also

  • VMware ESXi 6.7 - Convert a Hyper-V virtual machine to a VMware VM

    VMware 11/4/2022

    VMware ESXi 6.7 - Convert a Hyper-V virtual machine to a VMware VM

  • VMware ESXi 7.0 / 6.7 - DCUI console presentation

    VMware 6/8/2022

    VMware ESXi 7.0 / 6.7 - DCUI console presentation

  • VMware vSphere 6.7 - Create a cluster and enable EVC mode

    VMware 2/19/2025

    VMware vSphere 6.7 - Create a cluster and enable EVC mode

  • VMware vSphere 6.7 - Enable the dark color theme

    VMware 4/11/2024

    VMware vSphere 6.7 - Enable the dark color theme

Comments

You must be logged in to post a comment

Share your opinion

Pinned content

  • Software (System admin)
  • Linux softwares
  • Our programs
  • Terms and conditions
  • Share your opinion

Contact

  • Guest book
  • Technical support
  • Contact

® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.

Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.