Set VM hostname with VMware Guest Customizations

Abiquo 3.10 introduced VM configuration automation with features such as set a hostname. More recent versions of Abiquo can set a fully qualified domain name (FQDN) before the VM is deployed, with one of the following options (in order of priority):

  1. The FQDN that the user manually enters for the VM
  2. A hostname based on the Abiquo database ID, plus VM network domain name (from VM NIC or VDC default VLAN), or localdomain (automatic)
  3. A hostname that is the VM_uuid (or Abiquo database ID on Windows), plus VM network domain name, or localdomain (automatic)

To choose the automatic hostname, set the following Abiquo API server property.

// Generate VM name from database ID. If false use VM_uuid on Linux and VM_database ID on Windows 
abiquo.api.experimental.hostname13charsFromVirtualMachineDatabaseId=true

The user can define the FQDN when creating a VM using the API. The user can edit the VM and change the FQDN before they deploy the VM, and the API will validate the FQDN.

After deploy, the user must change the FQDN directly in the operating system of the VM, and Abiquo updates the FQDN in the platform. 

For more information, see Guest setup.

Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved