Skip to content

Latest commit

 

History

History

prepare-vm-template

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Build vSphere VM Template for Aria Automation

Install Scripts

Making vm template is very important task for enabling whole AA feature and optimizing provision time.
These install scripts are consider

  • Fastest boot time options (adjust bootloader)
  • cloud-like user environment (garbage throttling)
  • Install VMware Tools (recommended latest version of official VMTools lather than open-source version)
  • Install "vra-init" service and tools such as "vra-ready" (described below)

Scripts Links

Scripts can be done "just run", however recommended executing line by line. because all environments has exceptions.

Admin Task When Day 2 Install/Update Software/Setting In Aria VM Templates

Please clean garbage files such as pre-version packages and temp files for reducing disk space

# rm -rf {{YOUR_GARBAGES}}

[ RHEL / CentOS / LockyOS ]
# yum clean all

[ Debian / Ubuntu ]
# apt autoremove

Be ensure to finish your task through typing such as following via root account

$ vra-ready

"vra-ready" will remove more garbages and power off vm automatically.

vra-init

The "vra-init" service is for "cloud-init" agent which working with AA's static IP feature.
Generally, "cloud-init" agent does not working when "assignment" property is "static" in VM resource of AA's cloud templates.

Reason why.

  • Static IP assignment use vsphere "customization spec".
  • When first boot up, VMtools turn on NICs, its status makes "system-networkd" service to running.
  • "cloud-init" agent service is started after running "system-networkd" service.
  • "customization spec" make vm to reboot for network configurations.
  • "cloud-init" agent service is interrupted by VM reboot. However "cloud-init" status is memorized to already executed in first bootstrap.
  • After reboot, "cloud-init" agent service could not run, because this phase is not first bootstrap.

To Resolve

  • "cloud-init" agent service must be run after rebooting which triggered by "customization spec".
  • "vra-init" service will check current boot status and execute "cloud-init".

"vra-init" Source Scripts