# Migration fails: could not find capabilities

**URL:** https://forum.opennebula.io/t/migration-fails-could-not-find-capabilities/6019
**Category:** Product Support
**Created:** [May 28, 2018, 8:56am UTC](https://forum.opennebula.io/t/migration-fails-could-not-find-capabilities/6019 "2018-05-28T08:56:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Yenya](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yenya/32/4624_2.png) [@Yenya](https://forum.opennebula.io/u/Yenya)
#### Post date: [May 28, 2018, 8:56am UTC](https://forum.opennebula.io/t/migration-fails-could-not-find-capabilities/6019/1 "2018-05-28T08:56:53Z")

</div>

Hello,

after `onehost flush`, some VMs fail to migrate away. The log file is as follows:

```
Mon May 28 10:19:38 2018 [Z0][VM][I]: New LCM state is MIGRATE
Mon May 28 10:23:06 2018 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_premigrate.
Mon May 28 10:23:06 2018 [Z0][VMM][I]: ExitCode: 0
Mon May 28 10:23:06 2018 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon May 28 10:23:08 2018 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/migrate 'one-1838' 'stratus6' 'stratus16' 1838 stratus16
Mon May 28 10:23:08 2018 [Z0][VMM][E]: migrate: Command "virsh --connect qemu:///system migrate --live one-1838 qemu+ssh://stratus6/system" failed: error: invalid argument: could not find capabilities for arch=x86_64
Mon May 28 10:23:08 2018 [Z0][VMM][E]: Could not migrate one-1838 to stratus6
Mon May 28 10:23:08 2018 [Z0][VMM][I]: ExitCode: 1
Mon May 28 10:23:08 2018 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_failmigrate.
Mon May 28 10:23:08 2018 [Z0][VMM][I]: Failed to execute virtualization driver operation: migrate.
Mon May 28 10:23:08 2018 [Z0][VMM][E]: Error live migrating VM: Could not migrate one-1838 to stratus6
Mon May 28 10:23:08 2018 [Z0][VM][I]: New LCM state is RUNNING
Mon May 28 10:23:08 2018 [Z0][LCM][I]: Fail to live migrate VM. Assuming that the VM is still RUNNING (will poll VM).

```

However, when I manually run `onevm migrate --live 1836 stratus6` afterwards (note the same destination host as the one `onevm flush` itself selected on its own), the migration succeeds.

What can be different between `onehost flush` and `onevm migrate`, that the former fails, but the later succeeds?

Thanks!

-Yenya

* * *

**Versions of the related components and OS (frontend, hypervisors, VMs):**  
I run CentOS 7 with KVM, qemu-kvm-ev-2.10.0-21.el7\_5.2.1.x86\_64, ONe 5.4.

---

<div class="post-metadata">

### Author: ![Yenya](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/yenya/32/4624_2.png) [@Yenya](https://forum.opennebula.io/u/Yenya)
#### Post date: [May 28, 2018, 9:35am UTC](https://forum.opennebula.io/t/migration-fails-could-not-find-capabilities/6019/2 "2018-05-28T09:35:08Z")

</div>

I have discovered that apart from the frequent “could not find capabilities” errors, I occasionally also get this one:

```
Mon May 28 11:20:44 2018 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/migrate 'one-1851' 'stratus11' 'stratus23' 1851 stratus23
Mon May 28 11:20:44 2018 [Z0][VMM][E]: migrate: Command "virsh --connect qemu:///system migrate --live one-1851 qemu+ssh://stratus11/system" failed: error: internal error: QEMU / QMP failed: qemu-kvm: could not acquire pid file: Permission denied
Mon May 28 11:20:44 2018 [Z0][VMM][E]: Could not migrate one-1851 to stratus11
Mon May 28 11:20:44 2018 [Z0][VMM][I]: ExitCode: 1

```

As in the previous case, trying to migrate the same VM to the same destination host using `onevm migrate` succeeds.

-Yenya
