Chapter 12. Troubleshooting migration


Troubleshoot migration issues by following diagnostic workflows, resolving common errors, and collecting logs for analysis.

12.1. Troubleshooting workflow

When troubleshooting migration issues, follow this recommended sequence to identify and resolve problems efficiently.

Procedure

  1. Check the migration progress for a high-level overview of your virtual machine (VM) migration status.

    1. Navigate to the Virtual machines tab on your migration plan’s details page.
    2. Review the status of each VM to identify where errors are occurring.

      You can typically find where the error is occurring at this stage. VMs can be migrated in two different ways:

      • Warm migration: VMs are migrated with minimal downtime while remaining powered on during the precopy stage.
      • Cold migration: VMs are shut down during the entire migration process.
  2. Ask Red Hat OpenShift Lightspeed for AI-assisted troubleshooting guidance.

    If Red Hat OpenShift Lightspeed is configured with MTV, you can ask questions in natural language to get plain-language explanations of migration failures, recommended solutions, and guidance for resolving common issues.

    For example: "Why did the migration for VM ProdDB-01 fail?"

    See Using Red Hat OpenShift Lightspeed to troubleshoot migration issues for detailed instructions.

  3. View pod logs for specific information about pod status within Kubernetes.

    Note

    Pod logs are only available after the image conversion stage has started.

    1. On the migration plan’s details page, expand the Migration Resources section.
    2. Under the Pod subheading, click View logs.
    3. Review the logs for error messages or warnings that indicate the cause of the failure.
  4. Review forklift controller logs if the migration progress, AI guidance, and pod logs are not helpful.

    Forklift controller logs capture Migration Toolkit for Virtualization (MTV) related events and provide detailed information about the migration process.

    1. Access the forklift controller logs through the OpenShift web console or CLI.
    2. Search for error messages or warnings related to your migration plan or specific VMs.
  5. Collect must-gather logs if previous troubleshooting steps do not resolve the issue.

    The must-gather tool collects comprehensive diagnostic information about your cluster and packages it for Red Hat Support analysis.

    1. Navigate to the directory where you want to store the must-gather data:

      $ cd /path/to/must-gather-directory
    2. Run the must-gather command:

      $ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:latest
    3. Review the collected logs in the newly created directory.
  6. Optional: Open a support case with Red Hat if you need assistance from Red Hat Support.

    1. Create a compressed file from the must-gather directory:

      $ tar -czf must-gather-$(date +%Y%m%d-%H%M%S).tar.gz must-gather.local.*
    2. Open a support case on the Red Hat Customer Portal.
    3. Attach the compressed must-gather file to your support case.
    4. Provide a detailed description of the issue, including:

      • Migration plan details
      • Source and target provider information
      • Error messages from the UI or logs
      • Steps to reproduce the issue

Quickly resolve migration issues by asking Red Hat OpenShift Lightspeed questions in natural language instead of manually parsing logs and error messages.

Prerequisites

  • Red Hat OpenShift 4.15 or later
  • Red Hat OpenShift Lightspeed Operator installed and configured on your cluster

    For information about installing and configuring Red Hat OpenShift Lightspeed, see the Red Hat OpenShift Lightspeed documentation.

  • MTV 2.12 or later
  • The Red Hat OpenShift Lightspeed integration is enabled in the ForkliftController custom resource

    For more information, see Enabling the Red Hat OpenShift Lightspeed integration in Planning your migration.

  • You have access to the Red Hat OpenShift web console
  • You have permission to view MTV resources in the cluster

Procedure

  1. While viewing your migration plans or resources in the MTV user interface, open the Red Hat OpenShift Lightspeed chat assistant:

    • Click the Red Hat OpenShift Lightspeed icon in the top global header of the web console, or
    • Click the floating Red Hat OpenShift Lightspeed icon at the bottom right of the screen.

      The chat assistant opens as a slide-out panel.

  2. Type your question about the migration issue in natural language.

    For example:

    • "Why is my network mapping failing for plan vmware-prod-vms?"
    • "What is the current status of the warm migration for my database cluster?"
    • "How do I fix naming convention violations in my migration plan?"
  3. Review the response from Lightspeed, which provides:

    • A plain-language diagnosis of the issue
    • Specific error details from the migration logs
    • Recommended actions to resolve the problem
  4. Follow the recommended steps to resolve the issue.
  5. Optional: Ask follow-up questions for clarification or additional guidance.

Verification

  • Compare the plain-language diagnosis from Lightspeed with the raw error message in the migration logs to understand the root cause.
  • Check that the recommended solution addresses your specific migration failure.

12.3. Common migration issues

Review common issues that you might encounter when planning and executing virtual machine migrations, and how to avoid or resolve them.

My virtual machine fails to migrate or behaves unexpectedly after migration. Is the operating system supported?

Check the official list of Certified Guest Operating Systems in OpenShift Virtualization for your version of OpenShift. If the operating system is not on the list, it might cause migration failures or unexpected behavior after the migration is complete. The VM operating system must be certified and supported for use as a guest operating system with OpenShift Virtualization and for Converting virtual machines from other hypervisors to KVM with virt-v2v in RHEL 7, RHEL 8, RHEL 9, and RHEL 10.

My migration plan shows a Destination network not found error. What should I do?

Verify that you have created a network mapping that correctly links the source network from your source environment to the destination network attachment definition in OpenShift Virtualization. If the network map displays a Destination network not found error, you must create a network attachment definition for the destination network before the migration can proceed.

To resolve this issue:

  1. Create the required network attachment definition in OpenShift Virtualization.
  2. Update or re-create your network mapping to reference the correct destination network.
  3. Validate that the network mapping shows a Ready status before starting the migration.

Why does warm migration fail with a snapshot error?

This often happens when changed block tracking (CBT) is not enabled on the source VM. Warm migration relies on CBT to efficiently track and transfer changes while the VM is running. You must enable CBT on the source VM and on each VM disk in your source environment before starting a warm migration.

For VMware environments:

  1. Enable CBT on each source VM that you plan to migrate using warm migration.
  2. Enable CBT on each disk attached to the VM.
  3. Verify that the VM does not exceed the maximum of 28 CBT snapshots.
Important

A VM can support up to 32 CBT snapshots. If the source VM has too many CBT snapshots and the Migration Controller service is not able to create a new snapshot, warm migration might fail.

My virtual machine migrated successfully, but it does not function properly. What might be wrong?

A common reason VMs do not function properly, even after a successful migration, is that the name of the VM does not meet Kubernetes DNS naming requirements. VM names in OpenShift Virtualization must be DNS-compliant and unique.

Invalid VM names include those that:

  • Use periods (.) anywhere in the name
  • Use hyphens (-) at the start or end of the name
  • Exceed 63 characters in length
  • Use uppercase letters
  • Use a name that differs from the VM’s files or folder name on the datastore

MTV automatically adjusts noncompliant VM names in the target cluster by replacing invalid characters. Alternatively, you can rename target VMs in the MTV UI during migration plan creation.

For VMware environments, you can use Storage vMotion to rename the VM before migration. This migration process automatically renames the VM’s files and folder on the datastore to match the new name you have given it in the vSphere Client. Alternatively, you can manually remove the VM from inventory, rename the files and folders, edit the .vmx file to update the references, and then re-add the VM to the inventory.

For more information about renaming VMs in the MTV UI, see Renaming virtual machines.

12.4. Error messages

Review common error messages encountered during migration. For detailed resolution steps, see the linked troubleshooting procedures.

Expand
Table 12.1. Common migration error messages
Error messageDescriptionResolution

Warm import retry limit reached

Displayed during a warm migration when a VMware virtual machine (VM) has reached the maximum number (32) of changed block tracking (CBT) snapshots during the precopy stage.

Resolving warm import retry limit errors

Unable to resize disk image to required size

Displayed when migration fails because a virtual machine on the target provider uses persistent volumes with an EXT4 file system on block storage. CDI assumes a default amount of space consumed by the file system, but this does not include the reserved space for the root partition.

Resolving disk resize errors

An error occurred while taking a snapshot: Failed to restart the virtual machine

Displayed during warm migration of Microsoft Windows VMs when the Volume Shadow Copy Service (VSS) is not running on the guest operating system.

VMware prerequisites

ConnectionTestFailed

Displayed when creating an Open Virtual Appliance (OVA) provider. Error messages might be displayed before the provider status changes to Ready`.

Resolving OVA connection test errors

Error pulling VDDK image

Displayed when a provider in a namespace different from openshift-mtv cannot access the VDDK image.

Resolving VDDK image pull errors

Manual SSH key configuration required, Failed to connect via SSH, or SSH connection timeout

Displayed when MTV cannot establish an SSH connection to the ESXi host during storage copy offload operations.

Troubleshooting storage copy offload

VM name validation failed: Invalid DNS name

Displayed when a source VM name does not comply with Kubernetes DNS naming requirements.

Renaming virtual machines

Cannot derive SVM to use; please specify SVM in config file

Displayed during storage copy offload operations with NetApp storage when ONTAP is not configured correctly.

Troubleshooting storage copy offload

Migration failed: VDDK image required for vSAN storage

Displayed when a VM is backed by VMware vSAN storage and no VDDK image is configured. VDDK is mandatory for vSAN migrations.

Resolving VDDK vSAN errors

12.4.1. Resolving warm import retry limit errors

The warm import retry limit reached error occurs during a warm migration when a VMware virtual machine (VM) has reached the maximum number of changed block tracking (CBT) snapshots during the precopy stage.

A VM can support up to 32 CBT snapshots. During warm migration, MTV creates snapshots at regular intervals (one-hour intervals by default) to track changes incrementally. If the source VM has too many CBT snapshots and the Migration Controller service cannot create a new snapshot, warm migration fails with this error.

Prerequisites

  • You have access to the VMware vSphere environment with appropriate permissions.

Procedure

  1. In the VMware vSphere Client, navigate to the source VM that failed migration.
  2. Review the existing snapshots on the VM:

    1. Right-click the VM and select Snapshots Manage Snapshots.
    2. Identify CBT snapshots created by MTV.
  3. Delete some of the CBT snapshots to bring the total number below 32:

    1. Select the snapshots you want to delete.
    2. Click Delete to remove the selected snapshots.

      Note

      The Migration Controller service automatically deletes each snapshot when it is no longer required. You only need to manually delete snapshots if the limit is reached before the controller can clean them up.

  4. In the MTV UI, restart the migration plan.

Verification

  1. Navigate to the migration plan’s details page.
  2. Verify that the VM migration progresses through the precopy stage without the retry limit error.

12.4.2. Resolving disk resize errors

The Unable to resize disk image to required size error occurs when migration fails because a virtual machine on the target provider uses persistent volumes with an EXT4 file system on block storage.

The problem occurs because the default file system overhead that is assumed by the Containerized Data Importer (CDI) does not completely include the reserved space for the root partition on EXT4 file systems.

Prerequisites

  • You have access to the OpenShift cluster as a user with the cluster-admin role.

Procedure

  1. Increase the file system overhead in CDI to more than 10%:

    1. Edit the CDI configuration:

      $ oc edit cdi -n openshift-cnv
    2. Locate the filesystemOverhead configuration section.
    3. Set the global file system overhead percentage to a value greater than 0.10 (10%):

      spec:
        config:
          filesystemOverhead:
            global: "0.15"
    4. Save and close the editor.
  2. Retry the migration plan.

Verification

  1. Navigate to the migration plan’s details page.
  2. Verify that the VM migration completes without disk resize errors.
  3. After migration, verify that the VM can boot and access all disk volumes.

12.4.3. Resolving OVA connection test errors

When you create an Open Virtual Appliance (OVA) provider in the MTV UI, ConnectionTestFailed error messages might be displayed before the provider status changes to Ready.

The error messages are misleading and do not accurately reflect the in-progress status of the connection test.

Procedure

  1. Wait for the provider status to update. If the provider configuration is correct, the status will change to Ready despite the temporary error messages.
  2. If the status does not change to Ready after several minutes, verify your OVA provider configuration:

    1. Check that the OVA URL or path is correct and accessible.
    2. Verify network connectivity to the OVA storage location.
    3. Ensure that any required authentication credentials are correct.
  3. If the issue persists, check the forklift controller logs for more detailed error information:

    $ oc logs -n openshift-mtv deployment/forklift-controller
  4. Correct any configuration issues identified and update the provider.

Verification

  1. Navigate to Providers in the MTV UI.
  2. Verify that the OVA provider shows a status of Ready.
  3. Attempt to create a migration plan using the OVA provider to confirm it is accessible.

12.4.4. Resolving VDDK image pull errors

When you create a provider in a namespace different from openshift-mtv, migrations fail with an image pull error.

The VDDK init image URL is located in the openshift-mtv namespace. If you create a provider in a different namespace, there is an error when pulling the image.

Prerequisites

  • You have access to the OpenShift cluster as a user with appropriate permissions.
  • The VDDK image has been created and uploaded.

Procedure

  1. Verify that the VDDK image is accessible from the target namespace:

    $ oc get imagestream -n openshift-mtv
  2. Choose one of the following options:

    Option 1: Upload the VDDK image to the provider’s namespace

    1. Upload the VDDK image to the same namespace as your provider.
    2. Update the provider configuration to reference the VDDK image in the local namespace.

      Option 2: Configure image pull secrets for cross-namespace access

    3. Create or verify image pull secrets in the provider’s namespace:

      $ oc get secrets -n <provider_namespace>
    4. If necessary, create a service account with access to pull images from the openshift-mtv namespace.
    5. Update the provider configuration to use the cross-namespace image reference.
  3. Update the provider to reference the correct VDDK image location:

    1. In the MTV UI, navigate to Providers.
    2. Edit the VMware provider.
    3. In the VDDK init image field, enter the correct image URL.
    4. Save the provider configuration.
  4. Retry the migration plan.

Verification

  1. Navigate to the migration plan’s details page.
  2. Verify that the VM migration starts without image pull errors.
  3. Check the pod logs to confirm that the VDDK image was pulled successfully.

12.4.5. Resolving VDDK vSAN errors

Virtual machine migrations fail with an error when a VM is backed by VMware vSAN storage and no VMware Virtual Disk Development Kit (VDDK) image is configured.

VDDK is mandatory for migrations from VMware vSAN storage. Migrations do not work without VDDK when a VM is backed by vSAN.

Warning

Virtual machine (VM) migrations do not work without VDDK when a VM is backed by VMware vSAN.

Prerequisites

  • You have access to the VMware VDDK package from VMware.
  • You have access to the OpenShift cluster as a user with appropriate permissions.

Procedure

  1. Create a VDDK image. For more information, see Creating a VDDK image.
  2. Upload the VDDK image to the cluster:

    1. Verify that the image is uploaded to the openshift-mtv namespace or the provider’s namespace.
    2. Note the image URL for the next step.
  3. Update the provider configuration to reference the VDDK image:

    1. In the MTV UI, navigate to Providers.
    2. Edit the VMware provider.
    3. In the VDDK init image field, enter the image URL.
    4. Save the provider configuration.
  4. Verify that the provider status is Ready.
  5. Restart the migration plan.

Verification

  1. Navigate to the migration plan’s details page.
  2. Verify that the VM migration starts and progresses without VDDK-related errors.
  3. Monitor the migration progress to ensure successful completion.

12.5. Troubleshooting storage copy offload

Resolve these problems that are unique to storage copy offload.

12.5.1. vSphere-ESXi connectivity issues

These vSphere-ESXi connectivity issues can cause problems for storage copy offload migrations.

Remote ESXi connection fails with a SOAP error

Description: Sometimes a remote ESXi execution fails, returning a SOAP error with no apparent root cause message.

Explanation: Because vSphere invokes some SOAP or REST endpoints on the ESXi, a connection can fail because of standard error reasons that vanish after the next try.

Solution: If the populator fails, the migration can be restarted. Try to restart or retry the populator, or restart the migration.

VIB issues returned with a CLI error

Description: Migration Toolkit for Virtualization (MTV) returns the following error:

CLI Fault: The object or item referred to could not be found. <obj xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:vim25" versionId="5.0" xsi:type="LocalizedMethodFault"><fault xsi:type="NotFound"></fault><localizedMessage>The object or item referred to could not be found.</localizedMessage></obj>

Explanation: If the VIB is installed, but /etc/init.d/hostd did not restart, then the vmkfstools namespace in esxcli is either not updated or does not exist. If that namespace does not exist, it means that this is the first usage, probably right after the first use.

Solution: Use SSH to log in to the ESXi and run /etc/init.d/hostd restart. Wait for a few seconds until the ESXi renews the connection with vSphere.

12.5.2. SSH issues

These SSH issues can cause problems for storage copy offload migrations.

Manual SSH key connection errors

Description: MTV returns one of the following errors: Manual SSH key configuration required, Failed to connect via SSH, or SSH connection timeout.

Explanation: The SSH connection is not running on the ESXi host for one of the following reasons:

  • Disabled SSH

    Solution: Manually enable an SSH connection on the ESXi host by using the commands in Setting up storage copy offload using manually generated SSH keys.

  • Network connectivity issue

    Solution: Verify that the ESXi management network is accessible from the migration pods.

  • Timeout issue (least likely issue)

    Solution: Increase the value of SSH_TIMEOUT_SECONDS in the provider Secret:

    1. Edit the provider Secret:

      $ oc edit secret <provider_secret_name> -n openshift-mtv
    2. Add or update the SSH_TIMEOUT_SECONDS field with a higher value (for example, 300 for 5 minutes).
    3. Save and close the editor.

      Verification steps for the preceding solutions:

  • To verify that the SSH service is running on an ESXi host, run the following command:

    $ vim-cmd hostsvc/get_ssh_status
  • To manually test SSH connectivity from a migration pod, run the following command:

    $ ssh -i /path/to/<private_key> root@<ESXI_host_IP>

12.5.3. NetApp issues

These NetApp issues can cause problems for storage copy offload migrations.

Description: MTV returns the following error:

Cannot derive SVM to use; please specify SVM in config file

Explanation: ONTAP is not configured correctly.

Solution: Configure your default ONTAP Storage Virtual Machine (SVM) by running the following commands:

  1. Show the current configuration for the SVM by running the following command on the ONTAP server:

    $ vserver show -vserver ${NAME_OF_SVM}
  2. Set a management interface for the SVM and enter its hostname in the STORAGE_HOSTNAME parameter by following the instructions in the NetApp Knowledge Base article, Trident fails to access ONTAP on SVM level and on Cluster level. The link requires you to log in.

12.6. Using the must-gather tool

You can collect logs and information about MTV custom resources (CRs) by using the must-gather tool. You must attach a must-gather data file to all customer cases.

You can gather data for a specific namespace, migration plan, or virtual machine (VM) by using the filtering options.

Note

If you specify a non-existent resource in the filtered must-gather command, no archive file is created.

Prerequisites

  • You must be logged in to the OpenShift Virtualization cluster as a user with the cluster-admin role.
  • You must have the Red Hat OpenShift CLI (oc) installed.

Procedure

  1. Navigate to the directory where you want to store the must-gather data.
  2. Run the oc adm must-gather command:

    $ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:2.12.3

    The data is saved as /must-gather/must-gather.tar.gz. You can upload this file to a support case on the Red Hat Customer Portal.

  3. Optional: Run the oc adm must-gather command with the following options to gather filtered data:

    • Namespace:

      $ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:2.12.3 \
        -- NS=<namespace> /usr/bin/targeted
    • Migration plan:

      $ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:2.12.3 \
        -- PLAN=<migration_plan> /usr/bin/targeted
    • Virtual machine:

      $ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:2.12.3 \
        -- VM=<vm_id> NS=<namespace> /usr/bin/targeted

      where:

      <vm_id>
      Specifies the VM ID as it appears in the Plan CR.

12.7. Self-service Technical Supportability Review

You can use the self-service Technical Supportability Review (TSR) on the Red Hat Customer Portal to validate your cluster configuration against Red Hat common practices.

Note

The must-gather tool collects diagnostic information about your cluster, including resource definitions, service logs, and configuration data. The TSR requires a general cluster must-gather, not the MTV-specific must-gather. Run oc adm must-gather without the --image flag to collect the full cluster diagnostic data that the TSR evaluates.

The self-service TSR uses AI to evaluate your cluster’s must-gather data and provides a prioritized executive summary of recommendations. This serves as a starting point to help you identify and resolve potential issues before they impact your environment.

The TSR evaluates hundreds of touchpoints across the Red Hat OpenShift platform, including OpenShift Virtualization and Migration Toolkit for Virtualization. Coverage is continually expanding.

12.7.1. Self-service TSR use cases

Integrating the self-service TSR into your regular operational workflow can be helpful in the following scenarios:

Routine benchmarking
Use the TSR quarterly to benchmark cluster health and plan for routine maintenance activities.
Pre-flight checks
Validate your cluster configuration before major structural changes, including upgrades, migrations, and expansions.
Critical event preparation
Confirm cluster stability ahead of high-traffic business events, such as seasonal peaks, or operational milestones, such as year-end shutdowns, business continuity drills, and compliance audits.

12.7.2. Self-service TSR access

You can run a self-service review by uploading your cluster’s must-gather data to the Analyze tab in the Support section of the Red Hat Customer Portal. For a direct link, see the "Technical Supportability Review with AI tool" link in the "Additional resources" section of this guide. The Analyze feature generates a prioritized executive summary that identifies your cluster’s top risks and recommends corrective actions. Review the recommendations and implement the suggested corrective actions to address the identified risks.

The self-service TSR provides a solid baseline for cluster health. If you need additional guidance or a more comprehensive review, contact your Red Hat account team to arrange an assisted review through a Technical Account Manager (TAM) or Red Hat consultant. An assisted review includes human analysis, deeper coverage, and access to checks that are updated more frequently than the self-service version.

You can download logs and custom resource (CR) YAML files for the following targets by using the Red Hat OpenShift web console or the command-line interface (CLI):

  • Migration plan: Web console or CLI.
  • Virtual machine: Web console or CLI.
  • Namespace: CLI only.

The must-gather tool collects the following logs and CR files in an archive file:

  • CRs:

    • DataVolume CR: Represents a disk mounted on a migrated VM.
    • VirtualMachine CR: Represents a migrated VM.
    • Plan CR: Defines the VMs and storage and network mapping.
    • Job CR: Optional: Represents a pre-migration hook, a post-migration hook, or both.
  • Logs:

    • importer pod: Disk-to-data-volume conversion log. The importer pod naming convention is importer-<migration_plan>-<vm_id><5_char_id>, for example, importer-mig-plan-ed90dfc6-9a17-4a8btnfh, where ed90dfc6-9a17-4a8 is a truncated RHV VM ID and btnfh is the generated 5-character ID.
    • conversion pod: VM conversion log. The conversion pod runs virt-v2v, which installs and configures device drivers on the PVCs of the VM. The conversion pod naming convention is <migration_plan>-<vm_id><5_char_id>.
    • virt-launcher pod: VM launcher log. When a migrated VM is powered on, the virt-launcher pod runs QEMU-KVM with the PVCs attached as VM disks.
    • forklift-controller pod: The log is filtered for the migration plan, virtual machine, or namespace specified by the must-gather command.
    • forklift-must-gather-api pod: The log is filtered for the migration plan, virtual machine, or namespace specified by the must-gather command.
    • hook-job pod: The log is filtered for hook jobs. The hook-job naming convention is <migration_plan>-<vm_id><5_char_id>, for example, plan2j-vm-3696-posthook-4mx85 or plan2j-vm-3696-prehook-mwqnl.

      Note

      Empty or excluded log files are not included in the must-gather archive file.

The following schematic drawing shows the must-gather archive structure for an example VMware migration plan:

must-gather
└── namespaces
    ├── target-vm-ns
    │   ├── crs
    │   │   ├── datavolume
    │   │   │   ├── mig-plan-vm-7595-tkhdz.yaml
    │   │   │   ├── mig-plan-vm-7595-5qvqp.yaml
    │   │   │   └── mig-plan-vm-8325-xccfw.yaml
    │   │   └── virtualmachine
    │   │       ├── test-test-rhel8-2disks2nics.yaml
    │   │       └── test-x2019.yaml
    │   └── logs
    │       ├── importer-mig-plan-vm-7595-tkhdz
    │       │   └── current.log
    │       ├── importer-mig-plan-vm-7595-5qvqp
    │       │   └── current.log
    │       ├── importer-mig-plan-vm-8325-xccfw
    │       │   └── current.log
    │       ├── mig-plan-vm-7595-4glzd
    │       │   └── current.log
    │       └── mig-plan-vm-8325-4zw49
    │           └── current.log
    └── {namespace}
        ├── crs
        │   └── plan
        │       └── mig-plan-cold.yaml
        └── logs
            ├── forklift-controller-67656d574-w74md
            │   └── current.log
            └── forklift-must-gather-api-89fc7f4b6-hlwb6
                └── current.log

You can download logs and information about custom resources (CRs) for a completed, failed, or canceled migration plan or for migrated virtual machines (VMs) from the Red Hat OpenShift web console.

Procedure

  1. In the Red Hat OpenShift web console, click Migration for Virtualization > Migration plans.
  2. Click Get logs beside a migration plan name.
  3. In the Get logs window, click Get logs.

    The logs are collected. A Log collection complete message is displayed.

  4. Click Download logs to download the archive file.
  5. To download logs for a migrated VM, click a migration plan name and then click Get logs beside the VM.

You can access logs and information about custom resources (CRs) from the command line by using the must-gather tool. You must attach a must-gather data file to all customer cases.

You can gather data for a specific namespace, a completed, failed, or canceled migration plan, or a migrated virtual machine (VM) by using the filtering options.

Note

If you specify a non-existent resource in the filtered must-gather command, no archive file is created.

Prerequisites

  • You must be logged in to the OpenShift Virtualization cluster as a user with the cluster-admin role.
  • You must have the Red Hat OpenShift CLI (oc) installed.

Procedure

  1. Navigate to the directory where you want to store the must-gather data.
  2. Run the oc adm must-gather command:

    $ oc adm must-gather --image={must-gather}

    The data is saved as /must-gather/must-gather.tar.gz. You can upload this file to a support case on the Red Hat Customer Portal.

  3. Optional: Run the oc adm must-gather command with the following options to gather filtered data:

    • Namespace:

      $ oc adm must-gather --image={must-gather} \
        -- NS=<namespace> /usr/bin/targeted
    • Migration plan:

      $ oc adm must-gather --image={must-gather} \
        -- PLAN=<migration_plan> /usr/bin/targeted
    • Virtual machine:

      $ oc adm must-gather --image={must-gather} \
        -- VM=<vm_name> NS=<namespace> /usr/bin/targeted

      where:

      <vm_name>
      Specifies the VM name, not the VM ID, as it appears in the Plan CR.
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top