01. Pre-Requisites

Root Privilege

Unless explicitly indicated, all commands involved in this document need to be run as the root account.

Source Machine Setup

Install EPEL to access extra packages

sudo rpm -Uvh https://archives.fedoraproject.org/pub/archive/epel/5/x86_64/epel-release-5-4.noarch.rpm

then you can try 'yum install package'

VirtaMove Installation

Pre-Requisites

Red Hat Developer Subscription

Red Hat Developer Subscription allows access to Red Hat products offered through the Red Hat Developer program. Red Hat Developer Subscription is required to install software packages to RHEL servers.

To obtain the Red Hat Developer Subscription, register at https://developers.redhat.com/register .

Run the following commands to register your machine with your Red Hat Developer Subscription and auto attach the subscription:

# subscription-manager register --force # subscription-manager attach --auto

Suse Trial Subscription

 

Required Repositories

# subscription-manager repos --enable=rhel-7-server-rpms --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms

EPEL:

EPEL:

Required Packages

SSHFS

Traceroute

Docker

Install VirtaMove

The VirtaMove installation package is distributed as a “VirtaMove_*.tar.gz” tarball file. To install the software, run the following command:

The VirtaMove software will be installed in /opt/VirtaMove. After the installation, add the following lines to the root user’s $HOME/.bashrc file and start a new shell to continue:

Firewall Settings

The source machine needs to be accessible by the destination machine, and in some scenarios, the destination machine needs to be accessible by other public hosts. For example, to access a web server service migrated to the container running on the destination machine, port 80 must be open on the destination machine. The following commands can be used to disable the firewall:

Enable Passwordless SSH Login to the Source Machine

Passwordless SSH login to the source machine makes it easy to automate the migration task without the need to enter the root password each time an SSH connection is to be established. Run the following command to enable Passwordless SSH login to the source machine:

OpenSSL 3

In OpenSSL 3, SHA-1 signatures are discarded as insecure by default. As the source machine may be quite old and using insecure signatures, we need to allow them temporarily to allow ssh access to the source machine.

Allow SHA-1 signatures

Undo change after migration

Install Source Agent on Source Machine

A VirtaMove Source Agent service can be installed on the source machine to support copying of the extended attributes (xattr) of migrated files. In most cases, Source Agent is not required, but in case it is, run the following command on the destination machine to install it remotely to the source machine: