Rename a virtual appliance

Posted by : on

Category : daily


I have come across this scenario several times and would like to share how I resolved it.

I have downloaded and put into production a handful of linux virtual appliances from VMware’s Virtual Appliance Library. Due to company naming standards, these virtual appliances had to be renamed. I spent several hours trying to figure out how to do this. Unfortunately, many Virtual Appliance’s web GUI(s) are usually not helpful in this area. Most normal linux hostname editing is reset when the VM is rebooted.

For those people that build virtual appliances who have added the ability to rename the host within the GUI - THANK YOU for making this task easier.

The following instructions are for those Linux Virtual Appliances that do not have a way to rename the hostname of the machine within the GUI.
1) Within the commandline of the VM.

#nano /etc/init.d/vaos set hostname variable to “preferredhostname”

2) Save, Exit, and Reboot


About Sam Aaron
Sam Aaron

Father, Husband, Geek. Workaholic.

Email : mail@micronauts.us

Website : http://micronauts.us

About Sam Aaron

Father. Husband. Geek. Workaholic. US Marine Corps Veteran.

Sam Aaron is a Senior Consultant in the Professional Services Organization for Entelligence, bringing over a decade of expertise in enterprise cloud automation and infrastructure. Sam has spent almost eleven years at VMware leading cloud automation initiatives using VCF Automation (formerly Aria Automation & vRA) and designing scalable, multi-tenant environments with VMware Cloud Director (vCD).

Sam holds multiple certifications including VCF-Architect 2024, VCIX-CMA, and dual VCPs (DCV & CMA), and is a recognized contributor to VMware’s certification exams. As a VMware Hands-On Lab (HOL) Captain and content author from 2015-2025, Sam played a key role in educating and mentoring the global VMware community. He helped to create and develop the automation challenge and troubleshooting labs for VMworld and global virtual forums.

When Sam is not working, he has several hobbies, among these are 3D printing Star Wars robots and turning them into animatronics.

Launched in April 2010, micronauts is Sam's online presence. Here, he has been blogging and sharing knowledge with the virtualization community. This blog acts as a central repository to retain the resolutions and other trivial knowledge that Sam has discovered.

** No information provided here was reviewed or endorsed by VMware by Broadcom, Microsoft, or anyone else for that matter. All information here are opinions based on Sam's personal experience. Use this knowledge at your own risk. **

Star
Useful Links