Unable to archive failed migrations which fail with error "Virtual Machine is being migrated, can not archive at the moment."
search cancel

Unable to archive failed migrations which fail with error "Virtual Machine is being migrated, can not archive at the moment."

book

Article ID: 420735

calendar_today

Updated On:

Products

VMware HCX

Issue/Introduction

  • The migration had failed previously but archiving it fails with error "Virtual Machine is being migrated, can not archive at the moment.".
  • When trying to cancel the migration you get error that the migration is in failed state so cannot cancel it.
  • Force cleanup is not making any difference.

Environment

VMware HCX 9.0.1

Cause

The migration cannot be archived due to a false positive within HCX manager's archiving workflow.

Resolution

This is a known issue impacting VMware HCX.

Workaround for HCX 9.0.1:

  1. Create a snapshot of HCX Manager VM without memory (make sure to not include memory in the snapshot) before proceeding.
  2. Download the run_function_def.sh script that is attached to this KB.
  3. Upload this script file to HCX Manager /tmp directory.
  4. Open SSH connection to HCX Manager as admin.
  5. Switch to root: su -
  6. Give script the right permissions to execute: chmod +x /tmp/run_function_def.sh 
  7. Run the script: /tmp/run_function_def.sh.
    If the script fails to run, use sed -i 's/\r$//' /tmp/run_function_def.sh to remove Windows line endings from the script file.
  8. Login to HCX UI and confirm that everything works fine and you are able to archive the failed migrations.
  9. Once verified that everything looks good, delete the snapshot of the HCX Manager VM.

If you believe you have encountered this issue and are unable to upgrade or perform the workaround, please open a support case with Broadcom Support and refer to this KB article.

For more information, see Creating and managing Broadcom support cases.

Attachments

run_function_def.sh get_app