Highlighted
Contributor
Contributor

Vra8.1 how to init VM name?

Jump to solution

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}

微信图片_20200911134654.png

0 Kudos
1 Solution

Accepted Solutions
Highlighted
VMware Employee
VMware Employee

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.

View solution in original post

0 Kudos
2 Replies
Highlighted
VMware Employee
VMware Employee

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.

View solution in original post

0 Kudos
Highlighted
Contributor
Contributor

thanks

0 Kudos