Migration ToolArcfra CloudMoveVM Initialization ToolArcfra VMTools
  • Operation

The operation and maintenance of cloudbase-init

Disabling cloudbase-init

After initialization, to prevent the virtual machine from initializing again during restart, refer to the following two methods to disable cloudbase-init.

Method 1: Run the script disable_cloudbase_init.bat as an administrator in the cloudbase-init > tools directory to disable cloudbase-init.

Method 2: Click Control Panel > Administrative Tools > Services in sequence, right-click the cloudbase-init service, select Properties, change the startup type of the service to Disabled, and click Save.

Cloning a cloudbase-init virtual machine

The cloudbase-init data is private to each virtual machine and will not be replicated by cloning. Therefore, when cloning a virtual machine with cloudbase-init, the cloned virtual machine will not have the same initial configurations. Consequently, it is recommended to uninstall cloudbase-init from Guest OS before cloning the virtual machine.

Cleaning the cloudbase-init instance

If you need to recreate a virtual machine that has been initialized by cloudbase-init as a cloudbase-init template, you need to clean the current cloudbase-init instance to restore the cloudbase-init initializer to its initial state. Refer to the following two methods to clean up the cloudbase-init instance that has already been executed:

  • Delete the relevant registry entries of cloudbase-init to clean the cloudbase-init instance. The registry entries are located at HKEY_LOCAL_MACHINE\SOFTWARE\Cloudbase Solutions.

  • Refer to the Installing cloudbase-init in the operating system section, run the script clean_cloudbase_init.bat as an administrator to clean the instance.

After cleaning the cloudbase-init instance, you can shut down the virtual machine, and then convert it to a template used for creating new cloudbase-init virtual machines.

Uninstalling cloudbase-init

If you have manually disabled cloudbase-init after completing the initialization configuration, it is not necessary to uninstall cloudbase-init before using the virtual machine. If cloudbase-init has not been manually disabled, it can be uninstalled by clicking Control Panel > Programs (Uninstall a program).