[VMware] vCSA 6.5 / 6.7 login Web Client no timeout

  • for Flash-Base
    step01 # vi /etc/vmware/vsphere-client/webclient.properties
    step02 找到將其改為0 > session.timeout = 0
    step03 # service-control –stop vsphere-client && service-control –start vsphere-client
  • for HTML5
    step01. # vi /etc/vmware/vsphere-ui/webclient.properties
    step02. 找到將其改為0 > session.timeout = 0
    step03. service-control –stop vsphere-ui && service-control –start vsphere-ui


    Reference :
    1. Increasing the VMware vSphere Web Client session timeout period (2040626)

[VMware] vCSA 6.5.x how to remove orphaned virtual machine

** ready PowerCLI 6.5 U1 or above **

在管理VM時發現有二台vCSA(orphaned)孤立狀況且無法使用GUI delete or remove .

orphaned-vm-001.jpg

Workaround > use PowerCLI

step01. open PowerCLI

step02.
%:\> Connect-VIserver -Server 10.10.10.200 -User {account} -Password {password}

step03.
%:\> Get-VM | select name | findstr /i “VMware vCenter Server Appliance*"

step04.
%:\> Remove-VM “VMware vCenter Server Appliance (1)"
%:\> Remove-VM “VMware vCenter Server Appliance"

Done.


(未實驗過)
vim-cmd /vmsvc/getallvms // get vmid

vim-cmd /vmsvc/unregister <Vmid>


Reference :

  1. VMware Cmdlet Reference
  2. HEX64 – How To Remove Invalid VMs From ESXi Using CLI
  3. VMware KB:1011468 – Deleting an orphaned virtual machine when the Remove option is not available
  4. ALTARO – How to deal with orphaned virtual machines