VMware Aria Automation Tools

 View Only
  • 1.  Vra8.1 how to init VM name?

    Posted Sep 11, 2020 05:53 AM

    Hi:

         blueprint how to init vm name? i try it but not take effect. and how to change the VM displayname in the vsphere?

         and how to generate multiple VM? i try use count, but not take effect.

    this is my code,

    inputs:

      hostname:

        type: string

        title: hostname

      count:

        type: integer

        default: 1

        maximum: 2

        minimum: 1

        description: VM count

    resources:

      Cloud_vSphere_Network_1:

        type: Cloud.vSphere.Network

        properties:

          networkType: existing

          constraints:

            - tag: 'policyPath:/infra/segments/vlan101-seg'

      Cloud_vSphere_Machine_1:

        type: Cloud.vSphere.Machine

        properties:

          image: centos7-init

          cpuCount: 1

          count: '${input.count}'

          totalMemoryMB: 1024

          networks:

            - network: '${resource.Cloud_vSphere_Network_1.id}'

          cloudConfig: |

            #cloud-config:

            hostname: ${input.hostname}



  • 2.  RE: Vra8.1 how to init VM name?
    Best Answer

    Broadcom Employee
    Posted Sep 18, 2020 01:14 PM

    Hi woshijinyun1,

    Regarding VM naming, did you see this? How to customize the names of deployed resources using vRealize Automation Cloud Assembly

    Here also you will find a lot of info https://vmguru.com/2020/03/create-custom-names-with-vrealize-automation-8/

    AFAIK, cloudconfig will not set the VMname in vSphere, cloudconfig will change the name within the VM OS. Did you review the logs within the guest OS deployed?

    Regards,

    Leandro.



  • 3.  RE: Vra8.1 how to init VM name?

    Posted Sep 21, 2020 03:19 AM

    thanks



  • 4.  RE: Vra8.1 how to init VM name?

    Posted Apr 01, 2021 11:30 AM

    Hi @Inairn,

    So there's no possibility to customize the server name "visually" in vSphere that was deployed from vRA?

    Thank you



  • 5.  RE: Vra8.1 how to init VM name?

    Posted Apr 01, 2021 12:19 PM

    You need to rename in Compute Allocation phase with an EBS.

    This can be done with ABX, there is a sample workflow you can reuse when creating a new action:

    xian__0-1617279370880.png

    Make sure to set the EBS to "blocking".

    The same can be done with vRO if you prefer legacy workflows:

    xian__1-1617279483991.png     xian__2-1617279506139.png

     



  • 6.  RE: Vra8.1 how to init VM name?

    Posted Apr 01, 2021 01:08 PM

    Thank you  

    I'm new to the entire vRealize suite, so I don't completely understand you're talking about.

    But thanks for putting me on the right track. I'll need to do more research on this.