### Windows Agent Installation Command Example Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=azure-agent-installation This command is used to install the IBM Live Migration Service agent on a Windows machine via the command line. It requires administrator privileges and should be pasted into a CMD window after downloading the agent installer. ```plaintext installer_win.exe --token= ``` -------------------------------- ### Install Required Packages for Agent Installation (Linux) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting Installs essential packages like make, openssl, wget, curl, gcc, and build-essential if the agent installation fails. These are typically needed to resolve installation issues. The `which` command is used to verify their presence. ```bash sudo apt-get install make openssl wget curl gcc build-essential which ``` -------------------------------- ### Install Agent on Windows with Storage Pools Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=azure-agent-installation This command installs an agent on a Windows server with storage pools, specifying individual physical disks for replication. The `--no-prompt` flag enables non-interactive installation, `--force-volumes` ensures volume processing, and `-t ` provides the installation token. The `--drives` argument lists the physical disk names to replicate. ```batch installer_windows.exe --no-prompt --force-volumes -t --drives="\\?\DISK NAME,\\?\DISK NAME,\\?\ DISK NAME,\\?\DISK NAME" ``` ```batch installer_windows.exe --no-prompt --force-volumes -t --drives="\\?\PhysicalDisk1,\\?\PhysicalDisk2,\\?\ PhysicalDisk3,\\?\PhysicalDisk4" ``` -------------------------------- ### Silent Install Windows with Token Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=azure-agent-installation Executes a silent installation on Windows using an installation token. Requires the installer_win.exe and a valid installation token. ```bash installer_win.exe --no-prompt -t ``` -------------------------------- ### Unattended Installation of IBM Live Migration Service Agent on Linux Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=faq This snippet illustrates how to conduct an unattended installation of the IBM Live Migration Service agent on a Linux system. It includes example usage with options for username, password, and specifying devices. ```shell sudo python installer_linux.py --no-prompt -t INSTALLATION_TOKEN ``` ```shell Usage: cloudendure_installer [options] Options: -u USERNAME, --username=USERNAME -p PASSWORD, --password=PASSWORD --no-prompt --devices=DEVICES Devices to protect --no-replication ``` -------------------------------- ### Manually Start Agent on Windows Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting This outlines the steps to manually start the CloudEndure agent service on a Windows source machine through the Services administrative tool. It involves navigating to Services, locating 'CloudEndureService', and selecting the 'Start' option. ```powershell Start-Service -Name "CloudEndureService" ``` -------------------------------- ### Run Installer with Root Privileges (Linux) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting Resolves the 'You need to have root privileges to run this script' error by running the installer script either directly as the root user or by prefixing the command with `sudo`. ```bash sudo python installer_linux.py ``` -------------------------------- ### Silent Agent Installation on Linux (with Token) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=azure-agent-installation This command performs a silent installation of the agent on Linux using an installation token. The `--no-prompt` flag enables unattended installation, and `-t ` provides the authentication token. ```bash sudo python installer_linux.py --no-prompt -t ``` -------------------------------- ### Silent Install Windows with Credentials Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=azure-agent-installation Executes a silent installation on Windows using account credentials. Requires the installer_win.exe, and will prompt for a username and password. ```bash installer_win.exe --no-prompt -u USERNAME -p PASSWORD ``` -------------------------------- ### Manually Start Agent on Linux Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting This command manually starts the CloudEndure agent on a Linux source machine. It requires superuser privileges. After execution, verify if the agent starts successfully and if the source machine appears in the IBM Live Migration Service console. ```bash sudo /var/lib/cloudendure/runAgent.sh ``` -------------------------------- ### Silent Agent Installation on Linux (with Credentials) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=azure-agent-installation This command performs a silent installation of the agent on Linux using user credentials. The `--no-prompt` flag enables unattended installation, `-u USERNAME` specifies the username, and `-p PASSWORD` specifies the password for authentication. ```bash sudo python installer_linux.py --no-prompt -u USERNAME -p PASSWORD ``` -------------------------------- ### Install Kernel Headers on Linux (Debian/Ubuntu) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting Command to install the matching linux-headers package using apt-get. It dynamically includes the running kernel version. ```bash sudo apt-get install linux-headers-$(uname -r) ``` -------------------------------- ### Install Kernel Headers on Linux (RHEL/CentOS/Oracle/SUSE) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting Command to install the matching kernel-devel package using yum. It dynamically includes the running kernel version. ```bash sudo yum install kernel-devel-$(uname -r) ``` -------------------------------- ### Windows Agent Installation with Command Line Arguments Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=azure-agent-installation This section outlines various command-line arguments for silent and customized installation of the IBM Live Migration Service agent on Windows. These arguments allow for specifying tokens, controlling replication, and selecting drives to replicate. ```plaintext installer_win.exe -t --no-prompt --drives=C:,D:,E: ``` ```plaintext installer_win.exe --token= --no-prompt --force-volumes --drives=C:,D: ``` ```plaintext installer_win.exe --log-file=agent_install.log ``` -------------------------------- ### Check Installed Kernel Headers on Linux (RHEL/CentOS/Oracle/SUSE) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting Command to list installed kernel packages, used to identify the version of kernel-devel installed on RHEL-based systems. ```bash rpm -qa | grep kernel ``` -------------------------------- ### Check .NET Framework and Disk Space (Windows) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting Verifies that .NET Framework version 3.5 or higher is installed and that there is at least 1GB of free disk space on the root drive (C:) for installations, specifically for replicating machines to AWS cloud. -------------------------------- ### Windows Agent Installation with Storage Pools (Manual Disk Selection) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=aws-agent-installation Installs the agent on Windows servers with storage pools, allowing manual specification of physical disks for replication. Requires a token and uses `--force-volumes` to override automatic detection. The `--drives` argument accepts a comma-separated list of disk names. ```batch installer_windows.exe --no-prompt --force-volumes -t --drives="\\?\DISK NAME,\\?\DISK NAME,\\?\ DISK NAME,\\?\DISK NAME" ``` ```batch installer_windows.exe --no-prompt --force-volumes -t --drives="\\?\PhysicalDisk1,\\?\PhysicalDisk2,\\?\ PhysicalDisk3,\\?\PhysicalDisk4" ``` -------------------------------- ### Check Installed Kernel Headers on Linux (Debian/Ubuntu) Source: https://www.ibm.com/docs/en/cmf-mm/index_topic=troubleshooting Command to search for installed linux-headers packages on Debian-based systems. ```bash apt-cache search linux-headers ```