WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple
You are here: Home / Automation / Automating counting cores & TiBs for new VMware vSphere Foundation (VVF) and VMware Cloud Foundation (VCF) SKUs

Automating counting cores & TiBs for new VMware vSphere Foundation (VVF) and VMware Cloud Foundation (VCF) SKUs

01.03.2024 by William Lam // 44 Comments

Happy New Year! 🥳🎉🥂

At the end of 2023, we announced two new offerings called VMware vSphere Foundation (VVF) and VMware Cloud Foundation (VCF) that drastically simplifies our overall vSphere-based portfolio and licensing model.

To help our users understand the new licensing model which uses both CPU cores and TiB (for vSAN storage sizing), I have created a PowerCLI function (Get-FoundationCoreAndTiBUsage) that will inventory your existing vSphere environment and provide a detailed report on the number of CPU Core and/or TiB license count that would be required whether you are considering the VVF or VCF offering.


For those familiar with my previous versions of the vSphere and vSphere+ core counting scripts, this function works in a very similar manner with the output configurable using either console or outputting it to an excel spreadsheet for further processing. For more details on the calculations, where to download and how to use the PowerCLI function, please see VMware KB 95927.

More from my site

  • Enhancements to VMware Cloud Foundation (VCF) & vSphere Automated Lab Deployment Scripts
  • Downgrading new VMware vSphere Foundation (VVF) or VMware Cloud Foundation (VCF) licenses to 7.x
  • Decoding vSphere (vCenter/ESXi), vSAN & Tanzu License Keys
  • Determining new VMware vSphere Foundation (VVF) & VMware Cloud Foundation (VCF) license usage in vSphere 8.0 Update 2b
  • Updated Inventory & Calculator Scripts for counting Cores/TiBs for VMware Cloud Foundation (VCF) and VMware vSphere Foundation (VVF)

Categories // Automation, VMware Cloud Foundation, VMware vSphere Foundation, VSAN, vSphere Tags // VMware Cloud Foundation, VMware vSphere Foundation, VSAN

Comments

  1. *protectedB.C. says

    01/03/2024 at 10:53 am

    Thanks William for creating the CLI function, screenshot looks great!

    Reply
  2. *protectedOl says

    01/03/2024 at 11:21 am

    Thanks for that function!
    I get the vsan capacity output for the DB Cluster, but why does the ML cluster needs over 3 times the amount of vsan TiB licensed?
    Just an error in the screenshot?

    Reply
    • William Lam says

      01/03/2024 at 2:15 pm

      This is explained in the KB with the minimum TiB per CPU socket

      Reply
    • *protectedJason B. says

      01/03/2024 at 2:27 pm

      regardless of vsan usage, 8 TB minimum per socket must be licensed. So an 8 socket cluster needs 64 (8 * 8 )TB of licensed capacity even if only 19 is used.

      Reply
  3. *protectedDavid says

    01/09/2024 at 1:46 pm

    Would love to see some clear examples of counting the storage in VVF, what cores are counted, what specifically is or is not aggregated, and what is the resulting add-on purchase. Specifically an example where they buy more cores than are on the vSAN hosts, so we can see what happens to the 100 GiB from each kind of workload and how it applies against the total vSAN allocation.

    Reply
  4. *protectedGabrie van Zanten says

    01/23/2024 at 1:02 am

    In the KB there is no mention on how often cores are measured. Is that information public already? Would core measurement been done per hour, day or month? Or maybe a monthly highwatermark?

    Reply
    • William Lam says

      01/23/2024 at 12:01 pm

      As of right now, the behavior is exactly same as you see it in the product. You have a pool of capacity, which is then assigned/consumed. If you don't have sufficient capacity, you might default to eval and once that expires, then hosts will disconnect (again, existing behaviors)

      Reply
      • *protectedrogers says

        01/30/2024 at 9:03 am

        I would like confirmation on the hour / day / month aspect please. If I put a host in maintenance mode for a week in a month, do I still get charged for those cores for the whole month? Similarly if I add a host to the cluster for a day, do I get charged for those extra cores for the whole month?

        Reply
        • William Lam says

          01/30/2024 at 10:04 am

          Hosts managed by vCenter will consuming licensing, this has been case since introduction of vCenter Server

          Reply
          • *protectedrogers says

            01/30/2024 at 12:54 pm

            RAM usage was measured in 30 minute intervals I believe. RAM usage went up and down during the month and one only got charged for what you used. Am trying to ascertain if cores present in the cluster are measured in the same way in the new charge-by-core licence model. Obviously cores are a lot less likely to change, but if they do I want to know how I calculate that month's licensing cost. Do you know please?

          • William Lam says

            01/30/2024 at 8:14 pm

            The new subscription offers are prepaid commits, you’ll need to purchase what you’ll plan to use. If you’ve got more questions, I recommend connecting with your account team who can assist further

  5. *protectedPhil says

    02/08/2024 at 8:57 am

    The script seems to have vanished from the kb article

    Reply
    • William Lam says

      02/08/2024 at 9:07 am

      Hey Phil - We're aware of the issue. I've already relayed this internally and maybe due to some updates that'll be going out with an updated version of the script. If you can wait, I'd check back next week

      Reply
      • *protectedPhil says

        02/09/2024 at 4:00 am

        It's back attached to the KB. Thanks

        Reply
  6. *protected/BR says

    02/08/2024 at 9:11 am

    I promise I searched high and low for a download link to the script in KB95927, but it's nowhere to be found. Was the psm1 removed from the KB page, maybe?

    Reply
    • William Lam says

      02/08/2024 at 10:33 am

      We're aware of the issue. I've already relayed this internally and maybe due to some updates that'll be going out with an updated version of the script. If you can wait, I'd check back next week

      Reply
  7. *protectedBhavesh Parmar says

    02/08/2024 at 5:10 pm

    Hi William

    Can you please provide a script to calculate the foundationandtib?

    Reply
  8. *protectedJoe L. says

    02/09/2024 at 9:48 am

    Hello, William. Now that the script is available I have been running it against my cluster from one of the esxi hosts and get the below error. PLease advise.

    Get-AdvancedSetting: 2/9/2024 7:57:14 AM Get-AdvancedSetting Could not find VIObject with name 'server-name'

    Reply
    • William Lam says

      02/11/2024 at 6:20 pm

      What version are you running? Is that the only ESXi host w/issues?

      Reply
      • *protectedJoe L says

        02/12/2024 at 5:59 am

        All of the hosts in the cluster return the same error. This is the version of Hypervisor we're using: VMware ESXi, 6.7.0, 19997733.

        Reply
        • *protectedJoe L says

          02/12/2024 at 6:05 am

          I am also seeing this:
          Value cannot be found for the mandatory parameter Entity

          Reply
          • William Lam says

            02/12/2024 at 9:52 am

            Ah, 6.7! That's been EOL'ed for awhile 🙂

            So the issue is with checking for an ESXi Advanced Setting which lets us know if the host is vSAN Witness OVA Appliance. If you're not using vSAN, quick workaround is to remove the following condition check "(Get-AdvancedSetting -Entity $vmhost.name Misc.vsanWitnessVirtualAppliance).Value -eq 0" from L229/234, this should allow you to use the function w/o any issues

  9. *protectedJoe L. says

    02/12/2024 at 12:22 pm

    I will try that. Thank you, William.

    Reply
    • *protectedJoe L. says

      02/20/2024 at 2:11 pm

      Hello, William. When I run either deployment type switch I get the following error. If I run the script without the deployment type switch I get the core counts, but not the storage counts. Any advice?

      PS C:\Program Files\WindowsPowerShell\Modules\FoundationCoreAndTiBUsage> Get-FoundationCoreAndTiBUsage -DeploymentType VCF
      Get-FoundationCoreAndTiBUsage : A parameter cannot be found that matches parameter name 'DeploymentType'.
      At line:1 char:31
      + Get-FoundationCoreAndTiBUsage -DeploymentType VCF
      + ~~~~~~~~~~~~~~~
      + CategoryInfo : InvalidArgument: (:) [Get-FoundationCoreAndTiBUsage], ParameterBindingException
      + FullyQualifiedErrorId : NamedParameterNotFound,Get-FoundationCoreAndTiBUsage

      Reply
      • William Lam says

        02/20/2024 at 4:15 pm

        Based on the message, it seems like you may not have latest version of module or it’s been imported, can you confirm you’ve got latest? You can open it up and look for “DeployementType”, that would explain why it’s not working 🙂

        Reply
  10. *protectedFisz says

    02/19/2024 at 4:14 am

    Any changes to vSphere essentials?

    Reply
    • William Lam says

      02/19/2024 at 9:54 am

      No

      Reply
  11. *protectedybasiy says

    03/04/2024 at 8:58 am

    KB95927 is updated. There is no mention of it now:
    8 TiBs is the minimum requirement to be purchased per CPU/physical processor for hosts in a vSAN cluster

    Reply
  12. *protectedjpsierz says

    06/26/2024 at 2:36 pm

    I can't download the power shell script to count the Core. Getting 504 Error. Tried many laptops and same error.

    Reply
    • *protectedDaniel Pelletier says

      06/27/2024 at 6:48 am

      I Cannot Download it Either It gives me a 504 on my corporate network, via 5G and via my Home network.. is there any other place we can get the package ?

      Reply
      • William Lam says

        06/27/2024 at 7:20 am

        I've shared the feedback internally w/support team regarding the download issue, which I'm also observing

        Reply
        • *protectedDaniel Pelletier says

          06/27/2024 at 10:01 am

          Thanks Sir ! I really appreciate it !

          Reply
  13. *protectedDaniel Pelletier says

    06/27/2024 at 10:32 am

    Working now 🙂 Thanks again ! and have a nice day !

    Reply
  14. *protectedRalf Gross says

    11/11/2024 at 3:40 am

    I get 2 different errors for the vSAN part (latest version just downloaded)

    Querying all ESXi hosts, this may take several minutes...

    Querying all ESXi hosts, this may take several minutes...
    Method invocation failed because [VMware.Vsan.Views.VsanVcClusterConfigSystem] does not contain a method named 'VsanClusterGetClaimedCapacity'.
    At D:\VMware_Skripte\VVF inventory\FoundationCoreAndTiBUsage.psm1:343 char:12
    + $claimedCapacity = $VsanVcClusterConfig.VsanClusterGetClai ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

    Failed to calculate total disk capacity for cluster xxxx. Contact Global Support team for assistance.

    Method invocation failed because [VMware.Vsan.Views.VsanVcClusterConfigSystem] does not contain a method named 'VsanClusterGetClaimedCapacity'.
    At D:\VMware_Skripte\VVF inventory\FoundationCoreAndTiBUsage.psm1:343 char:12
    + $claimedCapacity = $VsanVcClusterConfig.VsanClusterGetClai ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : MethodNotFound

    The vSAN capacity for cluster xxxxx cannot be determined because of the stale PDL devices in this cluster. Contact Global Support team for assistance.

    ...
    Total Required VVF Compute Licenses: 4840
    Total Required vSAN Add-on Licenses: ERROR

    Reply
    • *protectedRalf Gross says

      11/11/2024 at 4:34 am

      Regarding the PDL message... Skyline Health is 100%, no error or warning in any cluster regarding PDL

      Reply
      • William Lam says

        11/11/2024 at 8:22 am

        As suggested by the script, please contact Broadcom Support, they'll be able to help troubleshoot further

        Reply
        • *protectedRalf Gross says

          11/11/2024 at 8:48 am

          Thx and I understand, but I won't go that route

          Reply
  15. *protectedLucas says

    11/19/2024 at 3:44 am

    I am facing the same issue too! On vCenter 8.0u3d and vSAN 8.

    InvalidOperation: Method invocation failed because [VMware.Vsan.Views.VsanVcClusterConfigSystem] does not contain a method named 'VsanClusterGetClaimedCapacity'.
    The vSAN capacity for cluster *cluster-name* cannot be determined because of the stale PDL devices in this cluster. Contact Global Support team for assistance.

    Reply
    • William Lam says

      11/19/2024 at 4:51 am

      You need PowerCLI 13.3 or newer

      Reply
      • *protectedRalf says

        11/19/2024 at 10:51 pm

        That worked, I'm pretty certain last week there was an older version mentioned as requirement.. Maybe the reason for the article update last week.

        Reply
      • *protectedLucas says

        11/20/2024 at 1:47 pm

        Wokring now! However, they are still using the vSAN 100GB per core for VVF instead of the new 250GB per core 🙁

        Thanks for replying

        Reply
  16. *protectedMartin says

    01/28/2025 at 5:02 am

    3rd column in the FoundationCoreAndTiBUsage.psm script output should not be a NUM_CPU_CORES but NUM_CPU_SOCKETS

    Reply
    • William Lam says

      01/28/2025 at 6:26 am

      Please refer to the VMware KB as the script has been updated since the publication of this blog post and is the official source of truth

      Reply
  17. *protectedMariomas says

    02/19/2025 at 12:13 pm

    Hi William,
    I tried to download the script but all I get is the following on the PSM1 file:
    successsuccess

    Any idea how I can get the actual script?

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • VCF 9.0 Hardware Considerations 05/30/2025
  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025
  • Quick Tip - Validating Broadcom Download Token  05/01/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025

 

Loading Comments...