• Skip to primary navigation
  • Skip to content

www.open902.com

My own Knowledge Base made public ..

  • Home
  • vRealize Automation 7
    • vRA & vRB 7.2
      • Installation
        • vRA 7.2 – Installation
        • vRA 7.2 – Unattended Enterprise Install
        • vRA 7.2 – Unattended Install Answer File Generator
        • vRB 7.2 – Installation
      • Configuration
        • vRA 7.2 – Initial Configuration
        • vRA 7.2 – Endpoints and AD Integration
        • vRA 7.2 – Fabric and Business Groups
        • vRA 7.2 – Reservations, Reservation Policies and Network Profiles
        • vRA 7.2 – Blueprints and Entitlements
        • vRA 7.2 – Email Config and Approval Policies
      • Advanced Configuration
        • vRA 7.2 – Guest Agent and Software Components
        • vRA 7.2 – Custom Property RegEx
        • vRA 7.2 – Make IP in Network Profile unavailable for deployments
      • Integrations
        • vRA 7.2 – Azure Integration
        • vRA 7.2 – vRB 7.2 Configuration
        • vRB Cloud without vRA by using vIDM
    • vRA 7.0 & 7.1
      • Installation & Configuration
        • vRealize Automation 7 – Simple install
        • vRealize Automation 7 – Enterprise install
        • Upgrade vRealize Automation 7.0 to 7.0.1
        • vRA7 – Initial Configuration
        • vRA7 – Endpoint
        • vRA7 – Business Groups
        • vRA7 – AD Integration
        • vRA7 – Fabric Group
        • vRA7 – Network Profile
        • vRA7 – Reservations
        • vRA7 – IaaS Blueprint
        • vRA7 – Mail and Approvals
      • Advanced Configuration
        • vRA7 – Customize Hostname, VLAN and IP during deployment
        • vRA7 – Custom Property Relationships using Actions
        • vRA7 – vRealize Orchestrator 7
        • vRA7 – VAMI Certificate
        • vRA7 – Gugent on Linux
        • vRA7 – Gugent on Windows
        • vRA7 – Import Unmanaged Virtual Machines from vSphere
      • Integrations
        • vRA7 – NSX 6 Integration
        • Ubiquiti EdgeRouter X, NSX and vRealize Automation in network kinda harmony
        • vRA7 – vRealize Business Standard
        • vRealize Business for Cloud – Change Time zone
        • vRB Cloud without vRA by using vIDM
      • Troubleshooting
        • vRA7 – Delete stuck ‘In Progress’ Deployments
        • vRA 7 – Remove Stuck Approval Process
        • Remove Orphaned Network Profiles
        • vRA7 – Remove Stuck or Orphaned Managed Machines
  • vRA / vCAC 6
    • Installation
      • 1. Requirements
      • 2. Identity Appliance
      • 3. vCAC Appliance
      • 4. IaaS Server
    • Configuration
      • 5. Add a Tenant
      • 6. Agents & Endpoints
      • 7. Resource Allocations
      • 8. Blueprints
      • 9. Services & Catalogs
      • 10. Entitlements & Test
    • Advanced Configuration
      • Enable vCenter Orchestrator in vCAC
      • Configure External vCenter Orchestrator for vCAC
      • vCAC – Create Active Directory Endpoint & Test
      • vCAC – Refresh Inventory
      • vCAC – SMTP Settings
  • NSX
    • Ubiquiti EdgeRouter X, NSX and vRA7 Configuration
    • NSX 6 Integration into vRA7
    • NSX Authentication in Web Client using Sub-Domain users
  • vCloud Director 8.x
    • Install vCloud Director 8.0 for SP
    • NSX 6.2 for vCloud Director 8.0 SP
    • Configure vCloud Director 8.0 for SP – PVDC
    • Configure vCloud Director 8.0 for SP – Organization
    • vCloud Director 8.0 with NSX 6.2 – Final Testing
  • vCloud Director 5.x
    • 1. Installation of vCD 5.5
    • 2. vShield Manager
    • 3. VXLAN Configuration
    • 4. Initial vCloud Config
    • 5. Create a Provider vDC
    • 6.External Network
    • 7. Organization VDC
    • 8. vShield Edge & Organization Network
    • 9. Final Testing
    • 10. Installing an additional vCloud cell
    • Upgrade 1.5 > 5.5
      • 1. vCloud Director Binaries
      • 2. vShield Manager
      • 3. Final Touches
  • Lego NUC vSAN Cluster
  • Vembu
  • About Me

vRA7 – Gugent on Linux

Here I presume your Linux VM-To-Be-Template has at least VMware Tools installed.

First, I check if I can reach my vRealize Automation 7 appliance using ping

vra7_config_gugent_204

Now download the prep script from your vRA appliance using

wget https://vRealize_VA_Hostname_fqdn:5480/service/software/download/prepare_vra_template.sh

You may have to append

–no-check-certificate

Note: WordPress might display it incorrectly – it is ‘dash dash no dash check dash certificate’

In my environment I have my own CA but my Linux servers aren’t joined to AD to the cert cannot be verified

vra7_config_gugent_205

Now make the script executable

vra7_config_gugent_206

Now execute the script. As this is for vRA – I here select ‘vSphere’ as Cloud Provider

vra7_config_gugent_208

Go through the prompts ensuring they reflect your environment

Here I have just a minimal installation with two servers

  • vra7-prod-vra.vspherelab.co.uk
    • vRA Appliance
  • vra7-prod-iaas.vspherelab.co.uk
    • IaaS Windows Server

Also this server is a fresh minimal CentOS build – there is no Java installed, so I will select this, too.

I select NOT to check the certificate. The Linux server is not joined to my domain and the certificates are coming from my internal CA – so I need to ignore that

vra7_config_gugent_210

Confirm your selections

vra7_config_gugent_211

Watch progress bars for the install of Java ..

vra7_config_gugent_212

.. the Gugent (Guest Agent)

vra7_config_gugent_213

.. software agent (for App Services)

vra7_config_gugent_214

.. and check that the agent registers successfully with the Manager Service on the IaaS server.

vra7_config_gugent_215

The install should hopefully complete successfully

vra7_config_gugent_216

The install SHOULD have pulled the proper certificate down from your IaaS server.

You can, to make sure, either check the content of

/usr/share/gugent/cert.pem

or simply upload your certificate to the same location ‘to make sure’

Here you can see that I renamed the cert.pem to cert.pem_old and uploaded my certificate rui.pem as cert.pem

vra7_config_gugent_217

Before we can shut down the server, we still need to prepare the server for customization. This is a procedure you have to do in any case, vRA or not vRA, but for the sake of completion I just going to show it anyway.

First of, delete permanent udev rules

vra7_config_gugent_218

Remove the MAC address (HWADDR) and UUID from your network script. Here it is called ifcfg-eno16780032

Yours might be different. Older CentOS distros will call it ifcfg-eth0 etc.

vra7_config_gugent_219

Now shutdown the server

vra7_config_gugent_220

Ensure the VM is set to RedHat 7 rather than CentOS 7 – otherwise Guest Customization might not work properly

vra7_config_gugent_221

Before creating a Blueprint, ensure that the data collection is up to date. Either wait for the schedule or run a collection manually

vra7_config_gugent_222

You can find my article how to create a Blueprint HERE. Here you can see that I created a bunch of Gugent related Custom Properties

You can find an explanation what each property does HERE but essentially you can see the most important one

  • VirtualMachine.Sofware0.ScriptPath

vra7_config_gugent_225

You can see that the script I want to run after provisioning is called

  • /home/date.sh

All it does is getting the current date and copies it into a file called

  • /home/date.txt

vra7_config_gugent_228

Now deploy a VM from this template. Once finished, you should be able to see above script output (or whatever you have configured)

vra7_config_gugent_226

To get more details and to ensure the agent is working, have a look in the log

  • /usr/share/gugent/GuestAgent.log

You should see something similar

vra7_config_gugent_227

That’s it – you now installed, configured and tested the Guest Agent for vRA (Gugent) on a Linux Clone 🙂

  • vRA7 Gugent on Windows
  • vRA7 Gugent on Linux

 

Copyright © 2019 · Genesis Sample on Genesis Framework · WordPress · Log in