Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: 4.2.3 - 9901 - SSH public key for Windows guests in public cloud

...

In private cloud datacenters, Abiquo supports guest setup with cloud init or hypervisor tools. In public cloud providers, Abiquo supports cloud init. The Abiquo Chef integration also uses cloud-init.  Guest Guest setup runs the first time you deploy a VM. The hypervisor tools guest setup also runs on Linux VMs in datacenters when you add a NIC. If the guest setup is not successful, the VM deploy or reconfigure will fail and roll back.

...

FunctionalityCloud-initHypervisor tools
Set fully qualified domain name (FQDN)(tick)(tick)
Generate a random password at deploy and optionally send by email and/or SMS to owner(tick)(tick)
Inject network configuration if no DHCP server is available(tick)(error)(error)
Inject SSH keys into guest.(tick)(error)
Configuration drive with environment variables and user-data presented to guest OS on an ISO disk.
See Automate first boot with Configuration drive and cloud-init
(tick)(error)

...

Before you begin, perform the following configuration on the platform.


  1. To configure guest password length and characters, see Abiquo Configuration Properties#guest
  2. To configure password emails, do these steps
    1. Enable password emails in Configuration view, see Configuration View#Security
    2. Optionally enable password display through key button in the UI, see Configure Abiquo UI
    3. Abiquo will mail the password to the VM owner, so on the Abiquo Server, check that you have set the mail properties with the address of the mail server and mail user. See Abiquo Configuration Properties#mail
    4. To customize the email template, see Configure Email Templates
    5. Check that all VM owners have a valid email address
  3. To configure password SMS, do these steps
    1. Optionally customize the SMS email template, see Configure Email Templates
    2. Enter SMS gateway address to enable password SMS in Configuration view, see Configuration View#Security. The platform will send the password email to {{user phone number}}@{{sms gateway}}  
    3. Check that all VM owners have a valid phone number. Check the documentation of your SMS gateway provider for format requirements 
  4. To prevent user access to VMs while waiting for Windows password, set the following abiquo.properties on the Remote Services server
     

    Code Block
    # Time to wait for guest tools to get up and running after power on
    # This value is 15 minutes
    com.abiquo.esxi.experimental.customize.configure.timeoutms=900000 
    # Polling interval for checking if guest tools is up and running after power on 
    # This value is 10 seconds
    com.abiquo.esxi.experimental.customize.configure.periodms=30000 


To prepare a template to generate a random password in the VM, for the first time the it deploys: 

  1. Edit an appropriate template to and select the Guest setup option
  2. Select the Guest initial password checkbox
  3. Set the appropriate username in the template
    • On Linux, enter "root"
    • On Windows, enter "Administrator"

...

The platform does not save the initial password, so on Linux, before deploying an instance template, edit the instance's password to set it to the current VM password. 

Tip

Enter the user SSH public key 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.


Set fully qualified domain name

...