A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/migrate/containers/docs/m2c-cli/create-a-migration-plan below:

Create a migration plan | Migrate to Containers

Stay organized with collections Save and categorize content based on your preferences.

Create a migration plan

After creating a copy of the source machine's file system on your local machine, the next step is to analyze the file system to prepare a migration plan. The migration plan can then be used to generate migration artifacts.

This page describes the steps required to prepare a migration plan for different workloads.

Create a migration plan for a Linux VM container

To perform the analysis, run the following command:

./m2c analyze \
  -s PATH_TO_COPIED_FILESYSTEM \
  -p linux-vm-container \
  -o ANALYSIS_OUTPUT_PATH \
  [ -r skip_size_checks=SKIP_SIZE_CHECKS  ] \
  [ -r big_files_threshold_mb=SIZE_IN_MB ]

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

Create a migration plan for Tomcat workloads

For Tomcat app components, this process requires the catalina-home and catalina-base paths as inputs.

To retrieve these values, check the running Tomcat server process:

ps aux | grep catalina

To perform the analysis, run the following command:

./m2c analyze \
  -s PATH_TO_COPIED_FILESYSTEM \
  -p tomcat-container \
  -o ANALYSIS_OUTPUT_PATH \
  -r catalina-home=PATH_TO_CATALINA_HOME \
  -r catalina-base=PATH_TO_CATALINA_BASE \
  -r java-version=JAVA_VERSION

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

Create a migration plan for WebSphere workloads Optional: Set up the binaryAppScanner.jar Note: If you want to migrate Liberty workloads and maintain their Java environment, you don't need to set up the binaryAppScanner.jar.

If you want to migrate WebSphere traditional workloads, or perform a migration between different Java environments, you can set up the binaryAppScanner.jar. Migrate to Containers CLI automates the use of the binaryAppScanner.jar to generate new WebSphere configurations and facilitate Java runtime modernization.

To set up the binaryAppScanner.jar:

  1. Download the installer file, binaryAppScannerInstaller.jar, from IBM Support. You must accept the license agreement as part of the download.

  2. Extract the binaryAppScanner.jar file and accept the license agreement:

    java -jar binaryAppScannerInstaller.jar --acceptLicense --verbose INSTALL_LOCATION
    

    Replace the following:

Perform the analysis

To perform the analysis, run the following command:

./m2c analyze \
  -s PATH_TO_COPIED_FILESYSTEM \
  -p websphere-container \
  -o ANALYSIS_OUTPUT_PATH \
  -r websphere-profile=WEBSPHERE_PROFILE \
  -r websphere-home=WEBSPHERE_HOME \
  -r websphere-java-home=WEBSPHERE_JAVA_HOME \
  -r target-profile=TARGET_PROFILE \
  -r target-version=TARGET_VERSION \
  -r target-edition=TARGET_EDITION \
  -r target-se=TARGET_SE \
  -r target-ee=TARGET_EE \
  -r target-vendor=TARGET_VENDOR \
  -r target-base-image=TARGET_BASE_IMAGE \
  --volume PATH_TO_BINARYAPPSCANNER:/binaryAppScanner.jar

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

Create a migration plan for WebSphere traditional workloads Important: The websphere-traditional plugin is now deprecated. For existing customers, this plugin is still supported till December 2023, after which it will no longer be available. If you're new to WebSphere workload modernization, then use the websphere-container plugin with the Migrate to Containers CLI instead. Set up the binaryAppScanner.jar

Download the latest version of the binaryAppScanner.jar file.

If you've already installed the binaryAppScanner.jar file, check the current version:

java -jar binaryAppScanner.jar --version

Then, compare your current version to the version shown in the IBM license that appears when you click Migration Toolkit for Application Binaries to download the file. If they differ, download the latest version of the binaryAppScanner.jar file.

Migrate to Containers CLI automates the use of the binaryAppScanner.jar, available as part of the IBM WebSphere Application Server Migration Toolkit for Application Binaries, to extract configuration information and files for WebSphere Application Server applications in the source VM.

Before you can perform a migration, you must accept the license agreement and download the IBM WebSphere Application Server Migration Toolkit for Application Binaries, and then extract the binaryAppScanner.jar file.

To set up binaryAppScanner.jar:

  1. Download the installer file, binaryAppScannerInstaller.jar, from IBM Support. You must accept the license agreement as part of the download.

  2. Run the following command to extract the binaryAppScanner.jar file and to accept the License Agreement:

    java -jar binaryAppScannerInstaller.jar --acceptLicense --verbose
    
  3. Specify the target directory for the extraction. For example, if you specify /tmp as the target directory, after the installation is complete, binaryAppScanner.jar is available at /tmp/wamt/binaryAppScanner.jar.

Retrieve WAS_HOME

The WAS_HOME environment variable specifies where WebSphere Application Server traditional is installed, such as /opt/IBM/WebSphere/AppServer/. Migrate to Containers CLI uses this value to correctly locate and analyze the WebSphere traditional configuration.

To retrieve this value, check the running WebSphere Application Server traditional process:

ps aux | grep WAS_HOME
Run the analysis

To perform the analysis, run the following command:

./m2c analyze \
  -s PATH_TO_COPIED_FILESYSTEM \
  -p websphere-traditional-container -o ANALYSIS_OUTPUT_PATH \
  -r was-home=PATH_TO_WAS_HOME \
  --volume PATH_TO_BINARYAPPSCANNER:/binaryAppScanner.jar

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

Create a migration plan for JBoss workloads

For JBoss app components, creating a migration plan requires the JBOSS_HOME variable as an input.

To retrieve this value, check the running JBoss server process:

ps aux | grep jboss.home.dir

To perform the analysis, run the following command:

./m2c analyze \
  -s PATH_TO_COPIED_FILESYSTEM \
  -p jboss-container \
  -o ANALYSIS_OUTPUT_PATH \
  -r jboss-home=PATH_TO_JBOSS_HOME

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

Create a migration plan for Apache workloads

To perform the analysis, run the following command:

./m2c analyze \
  -s PATH_TO_COPIED_FILESYSTEM \
  -p apache-container \
  -o ANALYSIS_OUTPUT_PATH

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

Create a migration plan for WordPress workloads

To perform the analysis, run the following command:

./m2c analyze \
  -s PATH_TO_COPIED_FILESYSTEM \
  -p wordpress-container \
  -o ANALYSIS_OUTPUT_PATH

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

Create a migration plan for Windows IIS services

To perform the analysis, run the following command:

./m2c analyze -s PATH_TO_IMAGE -p windows-iis-container -o ANALYSIS_OUTPUT_PATH

Replace the following:

After the analysis is complete, a new directory is created in the specified output path which contains the migration plan, config.yaml.

What's next

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4