Installing Cloudbase-Init


Procedure

  1. On the Windows Start menu, choose Control Panel > Programs > Programs and Features to check whether Cloudbase-Init is installed.

  • If yes, go to step 16.

  • If no, go to step 2.

Check whether the OS is a Windows desktop version:

  • If yes, go to step 3.

  • If no and the OS is Windows Server, go to step 4.

Perform the following operations to ensure that the administrator account is enabled (Windows 7 is used as an example):

  1. Click Start and choose Control Panel > System and Security > Administrative Tools.

  2. Double-click Computer Management.

  3. Choose System Tools > Local Users and Groups > Users.

  4. Right-click Administrator and select Properties.

  5. Ensure that Account is disabled is not selected.

Download the Cloudbase-Init installation package.

Download the appropriate version of Cloudbase-Init installation package based on the OS bit version from the Cloudbase-Init official website http://www.cloudbase.it/cloud-init-for-windows-instances/.

Cloudbase-Init has two versions: stable and beta.

To obtain the stable version, visit the following paths:

To obtain the beta version, visit the following paths:

Double-click the Cloudbase-Init installation package.

Click Next.

Select I accept the terms in the License Agreement, and click Next.

Retain the default path and click Next.

In the Configuration options window, enter Administrator for Username, select COM1 for Serial port for logging, and ensure that Run Cloudbase-Init service as LocalSystem is not selected. Figure 1 shows the parameters to be specified.

Figure 1 Configuring parameters
en-us_image_0087083593.png

icon-note.gif NOTE:

The version number in the figure is for reference only. Use the latest version.

Click Next.

Click Install.

In the Files in Use dialog box, select Close the application and attempt to restart them and click OK.

Check whether the OS is a Windows desktop version:

  • If yes, go to step 15.

  • If no, go to step 14.

In the Completed the Cloudbase-Init Setup Wizard window, ensure that neither option is selected.

Figure 2 Completing the Cloudbase-Init installation
en-us_image_0085074510.png

icon-note.gif NOTE:

The version number in the figure is for reference only. Use the latest version.

Click Finish.

Add configuration item netbios_host_name_compatibility=false to the last row in the C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf file. This will allow the host name to contain a maximum of 63 characters.

icon-note.gif NOTE:

The length of NetBIOS is limited by Windows and can contain at most 15 characters.

Enable the agent to access the OpenStack data source by adding configuration item metadata_services=cloudbaseinit.metadata.services.httpservice.HttpService to the cloudbase-init.conf configuration file in the C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\ directory.

(Optional) When the Cloudbase-Init version is 0.9.12 or later, you can customize the length of the password. To set the password length, change the value of user_password_length in the configuration file C:\Program Files\Cloudbase Solutions\Cloudbase-Init\conf\cloudbase-init.conf.