Chapter 12. Troubleshooting migration
Troubleshoot migration issues by following diagnostic workflows, resolving common errors, and collecting logs for analysis.
12.1. Troubleshooting workflow Copy linkLink copied to clipboard!
When troubleshooting migration issues, follow this recommended sequence to identify and resolve problems efficiently.
Procedure
Check the migration progress for a high-level overview of your virtual machine (VM) migration status.
- Navigate to the Virtual machines tab on your migration plan’s details page.
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.
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.
View pod logs for specific information about pod status within Kubernetes.
NotePod logs are only available after the image conversion stage has started.
- On the migration plan’s details page, expand the Migration Resources section.
- Under the Pod subheading, click View logs.
- Review the logs for error messages or warnings that indicate the cause of the failure.
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.
- Access the forklift controller logs through the OpenShift web console or CLI.
- Search for error messages or warnings related to your migration plan or specific VMs.
Collect must-gather logs if previous troubleshooting steps do not resolve the issue.
The
must-gathertool collects comprehensive diagnostic information about your cluster and packages it for Red Hat Support analysis.Navigate to the directory where you want to store the
must-gatherdata:$ cd /path/to/must-gather-directoryRun the
must-gathercommand:$ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:latest- Review the collected logs in the newly created directory.
Optional: Open a support case with Red Hat if you need assistance from Red Hat Support.
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.*- Open a support case on the Red Hat Customer Portal.
- Attach the compressed must-gather file to your support case.
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
12.2. Using Red Hat OpenShift Lightspeed to troubleshoot migration issues Copy linkLink copied to clipboard!
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
ForkliftControllercustom resourceFor 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
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.
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?"
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
- Follow the recommended steps to resolve the issue.
- 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 Copy linkLink copied to clipboard!
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:
- Create the required network attachment definition in OpenShift Virtualization.
- Update or re-create your network mapping to reference the correct destination network.
-
Validate that the network mapping shows a
Readystatus 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:
- Enable CBT on each source VM that you plan to migrate using warm migration.
- Enable CBT on each disk attached to the VM.
- Verify that the VM does not exceed the maximum of 28 CBT snapshots.
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 Copy linkLink copied to clipboard!
Review common error messages encountered during migration. For detailed resolution steps, see the linked troubleshooting procedures.
| Error message | Description | Resolution |
|---|---|---|
|
| 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. | |
|
| 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. | |
|
| Displayed during warm migration of Microsoft Windows VMs when the Volume Shadow Copy Service (VSS) is not running on the guest operating system. | |
|
|
Displayed when creating an Open Virtual Appliance (OVA) provider. Error messages might be displayed before the provider status changes to | |
|
|
Displayed when a provider in a namespace different from | |
|
| Displayed when MTV cannot establish an SSH connection to the ESXi host during storage copy offload operations. | |
|
| Displayed when a source VM name does not comply with Kubernetes DNS naming requirements. | |
|
| Displayed during storage copy offload operations with NetApp storage when ONTAP is not configured correctly. | |
|
| Displayed when a VM is backed by VMware vSAN storage and no VDDK image is configured. VDDK is mandatory for vSAN migrations. |
12.4.1. Resolving warm import retry limit errors Copy linkLink copied to clipboard!
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
- In the VMware vSphere Client, navigate to the source VM that failed migration.
Review the existing snapshots on the VM:
-
Right-click the VM and select Snapshots
Manage Snapshots. - Identify CBT snapshots created by MTV.
-
Right-click the VM and select Snapshots
Delete some of the CBT snapshots to bring the total number below 32:
- Select the snapshots you want to delete.
Click Delete to remove the selected snapshots.
NoteThe 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.
- In the MTV UI, restart the migration plan.
Verification
- Navigate to the migration plan’s details page.
- Verify that the VM migration progresses through the precopy stage without the retry limit error.
12.4.2. Resolving disk resize errors Copy linkLink copied to clipboard!
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-adminrole.
Procedure
Increase the file system overhead in CDI to more than 10%:
Edit the CDI configuration:
$ oc edit cdi -n openshift-cnv-
Locate the
filesystemOverheadconfiguration section. Set the global file system overhead percentage to a value greater than
0.10(10%):spec: config: filesystemOverhead: global: "0.15"- Save and close the editor.
- Retry the migration plan.
Verification
- Navigate to the migration plan’s details page.
- Verify that the VM migration completes without disk resize errors.
- After migration, verify that the VM can boot and access all disk volumes.
12.4.3. Resolving OVA connection test errors Copy linkLink copied to clipboard!
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
-
Wait for the provider status to update. If the provider configuration is correct, the status will change to
Readydespite the temporary error messages. If the status does not change to
Readyafter several minutes, verify your OVA provider configuration:- Check that the OVA URL or path is correct and accessible.
- Verify network connectivity to the OVA storage location.
- Ensure that any required authentication credentials are correct.
If the issue persists, check the forklift controller logs for more detailed error information:
$ oc logs -n openshift-mtv deployment/forklift-controller- Correct any configuration issues identified and update the provider.
Verification
- Navigate to Providers in the MTV UI.
-
Verify that the OVA provider shows a status of
Ready. - Attempt to create a migration plan using the OVA provider to confirm it is accessible.
12.4.4. Resolving VDDK image pull errors Copy linkLink copied to clipboard!
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
Verify that the VDDK image is accessible from the target namespace:
$ oc get imagestream -n openshift-mtvChoose one of the following options:
Option 1: Upload the VDDK image to the provider’s namespace
- Upload the VDDK image to the same namespace as your provider.
Update the provider configuration to reference the VDDK image in the local namespace.
Option 2: Configure image pull secrets for cross-namespace access
Create or verify image pull secrets in the provider’s namespace:
$ oc get secrets -n <provider_namespace>-
If necessary, create a service account with access to pull images from the
openshift-mtvnamespace. - Update the provider configuration to use the cross-namespace image reference.
Update the provider to reference the correct VDDK image location:
- In the MTV UI, navigate to Providers.
- Edit the VMware provider.
- In the VDDK init image field, enter the correct image URL.
- Save the provider configuration.
- Retry the migration plan.
Verification
- Navigate to the migration plan’s details page.
- Verify that the VM migration starts without image pull errors.
- Check the pod logs to confirm that the VDDK image was pulled successfully.
12.4.5. Resolving VDDK vSAN errors Copy linkLink copied to clipboard!
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.
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
- Create a VDDK image. For more information, see Creating a VDDK image.
Upload the VDDK image to the cluster:
-
Verify that the image is uploaded to the
openshift-mtvnamespace or the provider’s namespace. - Note the image URL for the next step.
-
Verify that the image is uploaded to the
Update the provider configuration to reference the VDDK image:
- In the MTV UI, navigate to Providers.
- Edit the VMware provider.
- In the VDDK init image field, enter the image URL.
- Save the provider configuration.
-
Verify that the provider status is
Ready. - Restart the migration plan.
Verification
- Navigate to the migration plan’s details page.
- Verify that the VM migration starts and progresses without VDDK-related errors.
- Monitor the migration progress to ensure successful completion.
12.5. Troubleshooting storage copy offload Copy linkLink copied to clipboard!
Resolve these problems that are unique to storage copy offload.
12.5.1. vSphere-ESXi connectivity issues Copy linkLink copied to clipboard!
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/hostddid not restart, then thevmkfstoolsnamespace inesxcliis 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 Copy linkLink copied to clipboard!
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, orSSH 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_SECONDSin the providerSecret:Edit the provider Secret:
$ oc edit secret <provider_secret_name> -n openshift-mtv-
Add or update the
SSH_TIMEOUT_SECONDSfield with a higher value (for example,300for 5 minutes). 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_statusTo 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 Copy linkLink copied to clipboard!
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:
Show the current configuration for the SVM by running the following command on the ONTAP server:
$ vserver show -vserver ${NAME_OF_SVM}-
Set a management interface for the SVM and enter its
hostnamein theSTORAGE_HOSTNAMEparameter 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 Copy linkLink copied to clipboard!
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.
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-adminrole. - You must have the Red Hat OpenShift CLI (oc) installed.
Procedure
-
Navigate to the directory where you want to store the
must-gatherdata. Run the
oc adm must-gathercommand:$ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:2.12.3The 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.Optional: Run the
oc adm must-gathercommand 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/targetedMigration plan:
$ oc adm must-gather --image=registry.redhat.io/migration-toolkit-virtualization/mtv-must-gather-rhel8:2.12.3 \ -- PLAN=<migration_plan> /usr/bin/targetedVirtual 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/targetedwhere:
- <vm_id>
-
Specifies the VM ID as it appears in the
PlanCR.
12.7. Self-service Technical Supportability Review Copy linkLink copied to clipboard!
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.
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 Copy linkLink copied to clipboard!
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 Copy linkLink copied to clipboard!
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.
12.8. Collected logs and custom resource information Copy linkLink copied to clipboard!
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:
-
DataVolumeCR: Represents a disk mounted on a migrated VM. -
VirtualMachineCR: Represents a migrated VM. -
PlanCR: Defines the VMs and storage and network mapping. -
JobCR: Optional: Represents a pre-migration hook, a post-migration hook, or both.
-
Logs:
-
importerpod: Disk-to-data-volume conversion log. Theimporterpod naming convention isimporter-<migration_plan>-<vm_id><5_char_id>, for example,importer-mig-plan-ed90dfc6-9a17-4a8btnfh, whereed90dfc6-9a17-4a8is a truncated RHV VM ID andbtnfhis the generated 5-character ID. -
conversionpod: VM conversion log. Theconversionpod runsvirt-v2v, which installs and configures device drivers on the PVCs of the VM. Theconversionpod naming convention is<migration_plan>-<vm_id><5_char_id>. -
virt-launcherpod: VM launcher log. When a migrated VM is powered on, thevirt-launcherpod runsQEMU-KVMwith the PVCs attached as VM disks. -
forklift-controllerpod: The log is filtered for the migration plan, virtual machine, or namespace specified by themust-gathercommand. -
forklift-must-gather-apipod: The log is filtered for the migration plan, virtual machine, or namespace specified by themust-gathercommand. hook-jobpod: The log is filtered for hook jobs. Thehook-jobnaming convention is<migration_plan>-<vm_id><5_char_id>, for example,plan2j-vm-3696-posthook-4mx85orplan2j-vm-3696-prehook-mwqnl.NoteEmpty or excluded log files are not included in the
must-gatherarchive 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
12.8.1. Downloading logs and custom resource information from the web console Copy linkLink copied to clipboard!
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
- In the Red Hat OpenShift web console, click Migration for Virtualization > Migration plans.
- Click Get logs beside a migration plan name.
In the Get logs window, click Get logs.
The logs are collected. A
Log collection completemessage is displayed.- Click Download logs to download the archive file.
- To download logs for a migrated VM, click a migration plan name and then click Get logs beside the VM.
12.8.2. Accessing logs and custom resource information from the command line Copy linkLink copied to clipboard!
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.
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-adminrole. - You must have the Red Hat OpenShift CLI (oc) installed.
Procedure
-
Navigate to the directory where you want to store the
must-gatherdata. Run the
oc adm must-gathercommand:$ 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.Optional: Run the
oc adm must-gathercommand with the following options to gather filtered data:Namespace:
$ oc adm must-gather --image={must-gather} \ -- NS=<namespace> /usr/bin/targetedMigration plan:
$ oc adm must-gather --image={must-gather} \ -- PLAN=<migration_plan> /usr/bin/targetedVirtual machine:
$ oc adm must-gather --image={must-gather} \ -- VM=<vm_name> NS=<namespace> /usr/bin/targetedwhere:
<vm_name>-
Specifies the VM name, not the VM ID, as it appears in the
PlanCR.