Search Docs...
⌘ K
OverviewDeploymentManagementOperationReference

After creating a virtual machine from the cloudbase-init template, power the virtual machine on and check whether the initial settings such as hostname, IP address, SSH keys, and DNS servers have taken effect. If not, refer to the following steps to check and modify the cloudbase-init configurations on the template.

Procedure

To modify the cloudbase-init configurations, you need to convert the cloudbase-init template into a virtual machine. This conversion can be done through the web console or AOC. The following procedure uses the web console as an example:

  1. Log in to the web console, convert the cloudbase-init template back to a virtual machine, and power it on.

  2. Refer to Step 3: Modifying cloudbase-init configuration files to modify the cloudbase-init configuration.

  3. Reinitialize the cloudbase-init runtime environment:

    Delete the related configurations under the register key HKEY_LOCAL_MACHINE/SOFTWARE/Cloudbase Solutions/Cloudbase-Init/.

    For a Windows system encapsulated with sysprep, you also need to manually re-run sysprep with the following commands:

    cd C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf
    C:\Windows\System32\Sysprep\sysprep.exe /generalize /oobe /shutdown /unattend:Unattend.xml

    Once done, the virtual machine with cloudbase-init will automatically shut down.

  4. Convert the virtual machine with cloudbase-init into a template and create a new virtual machine from it to test whether the initial settings have taken effect.

  5. If the settings are still not effective, repeat step 1-4 until cloudbase-init is configured properly.