[PowerCLI]The request channel timed out attempting to send after 00:05:00

1. 问题

     | 10/16/2021 2:04:54 AM    Move-VM         The request channel timed out attempting to send after 00:05:00. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.            
Move-VM:                                                                                                                                                    
Line |                                                                                                                                                      
   8 |      Move-VM -VM $vm -Datastore $myDatastore1 -DiskStorageFormat Thin                                                                                
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                

2. 解决方案

# 默认值300
PS /root> Get-PowerCLIConfiguration               

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout
                                                                                                  Seconds
-----    -----------     ------------------- ------------------------  -------------------------- -------------------
Session  UseSystemProxy  Multiple            Ignore                    True                       300
User                     Multiple                                                                 
AllUsers                                     Ignore         


# 修改默认值
PS /root> Set-PowerCLIConfiguration -WebOperationTimeoutSeconds -1

Perform operation?
Performing operation 'Update PowerCLI configuration.'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): 

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout
                                                                                                  Seconds
-----    -----------     ------------------- ------------------------  -------------------------- -------------------
Session  UseSystemProxy  Multiple            Ignore                    True                       -1
User                     Multiple                                                                 -1
AllUsers                 Multiple            Ignore                                        

END

posted @ 2021-10-16 08:16  LeoShi2020  阅读(380)  评论(0编辑  收藏  举报