Configure guest setup with DHCP
Introduction to guest setup in private cloud
In private cloud datacenters, Abiquo supports guest setup with:
- cloud-init/cloudbase-init
- hypervisor tools, which are VMware guest tools, with the following options for VM IP addresses:
- DHCP
- static IP
Customize the Windows unattend file
For guest tools with Windows, the platform default is to use a Windows unattend file. Guest setup with a Windows unattend file runs the first time you deploy a VM. If the guest setup is not successful, the VM deploy or reconfigure will fail and roll back.
Using the Windows unattend file, Abiquo sets:
- Fully qualified domain name (FQDN)
- Guest password at deploy time
The Abiquo default Windows unattend file also includes these static settings:
- TimeZone with default W. Europe Standard Time
- JoinWorkgroup with default WORKGROUP
To configure a custom Windows unattend file for a datacenter
- Log in to the Remote Services server as an administrator
- Create your own custom unattend file and make the tomcat user the owner of the file
By default Abiquo will replace the following variables:
- $adminPassword
- $domain
- $hostName
Edit the abiquo.properties file and set the location of your custom unattend file. For example:
// Path to Windows unattend file com.abiquo.esxi.experimental.customize.win.unattendfile=/root/windows_unattend.xml
Configure guest initial password
The platform can set an initial password for a VM before it deploys. The administrator can configure this option in a VM template but the user may then edit the VM to change the option.
To configure guest initial passwords, do these steps.
To configure the length and characters, on the Abiquo API edit abiquo.properties and set the abiquo.guest.password.length property.
See Abiquo Configuration Properties#guest- To customize messages, see the following pages.
- To enable guest initial passwords, in Abiquo, go to Configuration view → Security (see Configuration View#Security).
- To enable password emails, select this option
- To enable password SMS, enter SMS gateway address
- In Abiquo, load and configure appropriate VM templates! See Edit VM templates for guest setup
In the Abiquo UI on the VM details panel, the key guest password button enables the user to check the initial guest password. See Display VM initial password
- The VM owner can display their own VM password
- To allow a user to display the initial guest passwords of all VMs they can access, assign the privilege to Display initial virtual machine password
Troubleshooting guest initial password
- Check your mail server configurations
- On the Abiquo API Server in abiquo.properties, check the address of the mail server and the mail user See Abiquo Configuration Properties#mail.
- If you have resellers, check in the reseller enterprise configuration
- Check that all VM owners have a valid email address and phone number
- Check the documentation of your SMS gateway provider for format requirements
Configure default FQDNs for guest setup
Abiquo can set a hostname and fully qualified domain name (FQDN) before the VM is deployed.
If a user enters an FQDN when they configure the VM, this will override the defaults because is the highest priority FQDN
If the user does not enter an FQDN, Abiquo uses the following default:
- Abiquo database ID (on Windows) or the VM_uuid (on Linux, etc); and
- VM network domain name (from VM NIC or VDC default network) or localdomain
To change the default to always generate the automatic VM name from the database ID:
- Login to the Abiquo API Server as administrator
- Edit the abiquo.properties file and set the following 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
After the user deploys the VM, the user can change the FQDN in the VM operating system. In this case, Abiquo will update the FQDN stored in the platform.
Edit VM templates for guest setup
To edit VM templates and prepare them for guest setup
- Load a VM template with support for cloud-init (configuration drive) support OR hypervisor guest tools installed.
- See Add VM Templates to the Apps Library
- If you are using static IP address injection (without DHCP), see Prepare VM templates for guest setup to use static IP injection
- In the Apps library, edit the template and go to Advanced
- Select the appropriate Guest setup option (e.g. Cloud-Init or Hypervisor tools)
- Select Set initial guest password
- For Windows this option is strongly recommended
- To use the guest initial password, set the appropriate User for the template
- On Linux, enter "root"
- On Windows, enter "Administrator"
- Select the correct Operating system and optionally enter the OS version
The user can edit a VM before they deploy it, and change the Guest initial password option.
The platform does not save the initial password or any subsequent passwords. On Linux, before deploying an instance template, edit the instance template's password to set it to the current VM password.
Remember to add the SSH public key to your user before you deploy VMs. Some connections will require the SSH key pair, for example, the remote access connection to Windows VMs in public cloud via RDP.
Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved