vCenter

 View Only
  • 1.  Any disconnect their subscribed vCenter?

    Posted Jul 22, 2024 03:55 PM

    Has anyone ran the script to disconnect their subscribed vCenter from the cloud licensing?

    Did you run into any unexpected issues? Host disconnects? Did any services require a restart?



  • 2.  RE: Any disconnect their subscribed vCenter?

    Posted Jul 25, 2024 03:38 AM

    I did it on 3 vCenters without issues. IIRC no services needed to be restarted or got restarted automatically, but I restarted the vCenter afterwards to be sure everything is clean.
    You have to make sure your gateway VM is off, otherwise the vCenter will get reconnected after reboot!

    if you have vSAN witness hosts in your vCenter, they don't get the OEM license key back automatically. You have to get the OEM key (cat /etc/vmware/vmware.lic) and set it again.

    You have to manually assign licenses and clean up users, roles and permissions. I used this powershell code:
    start https://$vc/ui/app/admin/licensing/licenses #assign vcenter license manually
    get-vmhost -server $vc|set-vmhost -LicenseKey xxxx
    Get-VIPermission -Server $vc|? Principal -match CloudServicesGateway|Remove-VIPermission
    Get-VIRole -Server $vc|? Name -match CloudServicesGateway|Remove-VIRole -Server $vc
    Get-VIPermission -Server $vc|Out-GridView #to check
    start https://$vc/ui/app/admin/permissions #Filter and delete CloudServicesGateway permissions if any still there
    start https://$vc/ui/app/admin/sso-users/users #Filter vsphere.local Users with CloudServicesGateway prefix and delete the user accounts




  • 3.  RE: Any disconnect their subscribed vCenter?

    Posted Jul 25, 2024 07:43 AM

    Thanks a lot Mathias! Good to know you didn't have any issues. I'll check that script out.