Search Docs...
⌘ K
Migration ToolArcfra CloudMoveVM Initialization ToolArcfra VMTools

Installing the VM Initialization Tool in the operating system

Prerequisite

The access to the root account has been obtained.

Procedure

The following operations demonstrate how to install the VM Initialization Tool on CentOS Linux 7.5:

  1. Connect to the virtual machine as the root user via SSH.


    ssh root@<VM's IP address>


    Alternatively, you can connect the virtual machine as an ordinary user via SSH and use sudo to execute subsequent installation commands.

  2. Mount the ISO image to the guest operating system.


    mkdir /mnt/<dir_to_mount_iso>

    mount /dev/<cloudinit_iso_cdrom> /mnt/<dir_to_mount_iso>

    • <dir_to_mount_iso>: The directory used to mount the ISO image.

    • <cloudinit_iso_cdrom>: The device name of the CD-ROM where the ISO image is mounted when mounting the VM Initialization Tool ISO image.
      You can use either of the following commands to check the device name:

      • mkdir /mnt/cdrom

      • mount -o loop /dev/sr0 /mnt/cdrom

  3. Execute the installation script.

    bash /mnt/<dir_to_mount_iso>/cloud-init/tools/install_cloud_init.sh

    • If the VM initialization tool or third-party cloud-init program has been installed in the current operating system, follow the prompt to uninstall the existing tool before you continue.

    • If the VM Initialization Tool or third-party cloud-init program is not installed in the current operating system, follow the prompt to complete the installation.

    If the installation is successful, you will see the prompt Installation successful.

    You can also enter the following command, and the VM Initialization Tool or third-party cloud-init program is uninstalled by default. The new VM Initialization Tool is installed successfully.


    bash /mnt/<dir_to_mount_iso>/cloud-init/tools/install_cloud_init.sh --auto-yes