Default vCenter Server timeouts may be insufficient for lengthy operations, such as large snapshot deletions or migrations. This article provides instructions on how to adjust these settings to prevent premature timeouts.
You may encounter one or more of the following issues:
Operation failed since another task is in progress.Alarm Host connection state on esx.example.com sent e-mail to [email protected].VMware vSphere ESXi
VMware vCenter Server
vCenter Server has a default 15 minute timeout for any task. For tasks that take longer than 15 minutes, you can configure the timeout values by editing the vpxd.cfg file and the vpxa.cfg file of the source and destination ESXi host.
To change the timeout value in the vCenter Server, update vpxd.cfg on vCenter.
cp vpxd.cfg vpxd.cfg.backup
vpxd.cfg file in a text editor using below command.vi /etc/vmware-vpx/vpxd.cfg
<config>...<task><timeout>10800</timeout></task>...</config>10800 can be changed based on your requirements. This example uses 10800 seconds, or 3 hours.vpxd.cfg file:<config>...<vmomi><soapStubAdapter><blockingTimeoutSeconds>10800</blockingTimeoutSeconds></soapStubAdapter></vmomi>...</config>10800 can be changed based on your requirements. This example uses 10800 seconds, or 3 hours.Esc + : + wq! to save and exit vpxd.cfg file.service-control --stop vmware-vpxd && service-control --start vmware-vpxdvi /etc/vmware/vpxa/vpxa.cfgvpxa.cfg file:<config>...<task><timeout>10800</timeout></task>...</config>To increase the SOAP layer blocking call timeout, add these values in the vpxa.cfg file:<config>...<vmomi><soapStubAdapter><blockingTimeoutSeconds>10800</blockingTimeoutSeconds></soapStubAdapter></vmomi>...</config>
Note: The value 10800 can be changed based on your requirements. This example uses 10800 seconds or 3 hours.
Configure the timeout value for the time that vCenter Server waits to capture the virtual machine's ID at ESXi destination. Add a new configurable parameter in the vpxa.cfg file:<config>...<vpxa>...<vmotion><vmIdAcquireTimeout>600</vmIdAcquireTimeout></vmotion>...</vpxa>...</config>
Note: The value 600 can be changed based on your requirements. This example uses 600 seconds or 10 minutes.
6. Press Esc + : + wq! to save and exit vpxa.cfg file.
7. Restart the vpxa service on the ESXi host. For more information, see Restarting the Management agents on an ESXi or ESX host.
Export the current vpxa configuration as a json file.
Make the changes needed on the json file.
Import the changed from the json file back into the config store
Restart the vpxa service.
Note: The host_ip and server_ip which contain the current ESXi management IP address and the vCenter Server IP address, are not part of the vpxa service configuration in the config store but are instead stored in the vpxa solution user configuration.
Note: To run the below commands, please login to the ESXi Host (CLI) through SSH using the root account. For more information, see Using ESXi Shell in ESXi 5.x, 6.x and 7.x (311213)
/bin/configstorecli config current get -c esx -g services -k vpxa/bin/configstorecli config current get -c esx -g services -k vpxa -outfile tmp.jsoncp tmp.json tmp.json.bakvi /tmp.json"task": { ... "timeout": 10800, }, "vmacore": { ... "soap": { "session_timeout": 10800 }, "vmotion":{ "vm_id_acquire_timeout": 600esc :wq!/bin/configstorecli config current set -c esx -g services -k vpxa -infile tmp.jsonSet: completed successfully/etc/init.d/vpxa restart/bin/configstorecli config current get -c esx -g services -k vpxa -outfile tmp_current.json