VMware Aria Automation Tools

 View Only
  • 1.  On how to set Windows VM boot disk size in a cloud template and how to resize it.

    Posted Jun 06, 2024 07:48 AM

    Dear all,

    I hope you are fine.

    A basic cloud template is used to deploy a Windows VM and allows user to set boot disk capacity as shown in the image below:

    Let's suppose that the Windows image used in cloud template has a 80GB disk and a user requested a VM with 100 GB for boot disk.

    Once the deployment is completed, we can use Disk management to see that disk 0 has 100 GB but there are two partitions, one with 80 GB (which comes from the original Windows image) and the second one with 20 GB as shown below:

    Is there a cloud template parameter or configuration that can be used to extend the 80GB partition to use the 20GB unallocated during deployment?

    Best regards

    Antonio



  • 2.  RE: On how to set Windows VM boot disk size in a cloud template and how to resize it.

    Posted Jun 07, 2024 01:37 AM

    If there is, I would like to know also.

    We have a deployment that requires a larger Boot Volume than the template defines. I have an ABX Action that increases the size of the disk prior to deployment. Then we call a run once script in the customisation spec that uses diskpart to see if there is an unallocated partition and if so, extends the boot volume.

    You will need to modify your VM Template though to get rid of that Recovery Partition or at least move it.

    Cheers




  • 3.  RE: On how to set Windows VM boot disk size in a cloud template and how to resize it.

    Posted Jun 10, 2024 01:12 AM

    Dear @dwilde, 

    I hope you are fine.

    Thank you very much for your comments and suggestions. I will test that.

    Best regards

    Antonio




  • 4.  RE: On how to set Windows VM boot disk size in a cloud template and how to resize it.

    Posted Jun 07, 2024 06:27 AM

    Hi Antonio,

    I believe you need to fix your VM template first. We had the same situation and Windows Admins did something to recreate or simply move that Recovery partition before C drive, like this:




  • 5.  RE: On how to set Windows VM boot disk size in a cloud template and how to resize it.

    Posted Jun 10, 2024 01:14 AM

    Dear @Enter123,

    I hope you are doing fine.

    Thank you very much for your suggestion. I will check that with my colleagues!

    Best regards

    Antonio




  • 6.  RE: On how to set Windows VM boot disk size in a cloud template and how to resize it.

    Posted Jun 11, 2024 09:10 AM

    You can use this in your WIndow template Blueprint YAML:

    - Under 'inputs' section; if you want to give user ability to request multiple disk in the same request:-

    disks:
        type: array
        minItems: 0
        maxItems: 10
        items:
          type: object
          properties:
            size:
              type: integer
              title: Size (GB)
              minSize: 1
              maxSize: 9000  #Max Partation size

    - Under 'Properties' section:

          storage:
            constraints:
              - tag: Storage:${input.storageType}

    - For Initializing & formating RAW disk >>> It's recommended to use guest script to do disk initialization & formatting, by creating subscription at 'compute.power.on' stage to call Cloudbase-init script to this task.