# Migration failed, can't boot VM after

**URL:** <https://forum.opennebula.io/t/migration-failed-cant-boot-vm-after/11457>\
**Category:** Product Support\
**Created:** [August 1, 2023, 2:29am UTC](https://forum.opennebula.io/t/migration-failed-cant-boot-vm-after/11457 "2023-08-01T02:29:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stanlog](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/stanlog/32/8071_2.png) [@stanlog](https://forum.opennebula.io/u/stanlog)\
**Post date:** [August 1, 2023, 2:29am UTC](https://forum.opennebula.io/t/migration-failed-cant-boot-vm-after/11457/1 "2023-08-01T02:29:51Z")

</div>

Hello  
After trying to migrate VM from a node to another, I can’t boot the VM anymore. First time I encounted this problem was during live migration. I tried to shutdown a VM too, migrate, and restart, same type of error. It seems this error occurs randomly. I use GlusterFS for datastores.

```auto
Command execution fail (exit code: 255): cat << 'EOT' | /var/tmp/one/vmm/kvm/deploy '/srv/one/datastores/103/36/deployment.14' 'node02domain.tld' 36 node02.domain.tld
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: error: Failed to create domain from /srv/one/datastores/103/36/deployment.14
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: error: internal error: cannot update AppArmor profile 'libvirt-6e220e7c-024e-4dd1-97b9-2b645ade4d73'
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: Could not create domain from /srv/one/datastores/103/36/deployment.14
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: ExitCode: 255
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: clean: Executed "sudo -n ovs-vsctl --if-exists del-port vmbr0 one-36-0".
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: ExitCode: 0
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: Successfully execute network driver operation: clean.
Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Tue Aug 1 04:06:19 2023 [Z0][VMM][E]: DEPLOY: error: Failed to create domain from /srv/one/datastores/103/36/deployment.14 error: internal error: cannot update AppArmor profile 'libvirt-6e220e7c-024e-4dd1-97b9-2b645ade4d73' Could not create domain from /srv/one/datastores/103/36/deployment.14 ExitCode: 255

```

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [August 2, 2023, 7:14am UTC](https://forum.opennebula.io/t/migration-failed-cant-boot-vm-after/11457/2 "2023-08-02T07:14:09Z")

</div>

This line hints at what direction to search for problems:

> [@stanlog](#):
>
> ```auto
> Tue Aug 1 04:06:19 2023 [Z0][VMM][I]: error: internal error: cannot update AppArmor profile 'libvirt-6e220e7c-024e-4dd1-97b9-2b645ade4d73'
> 
> ```

---

<div class="post-metadata">

**Author:** ![stanlog](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/stanlog/32/8071_2.png) [@stanlog](https://forum.opennebula.io/u/stanlog)\
**Post date:** [August 13, 2023, 9:35am UTC](https://forum.opennebula.io/t/migration-failed-cant-boot-vm-after/11457/3 "2023-08-13T09:35:08Z")

</div>

Hello,  
Thank you so much for your help, I tried to add a rule in apparmor profile following recommandation in [install page](https://docs.opennebula.io/6.6/open_cluster_deployment/kvm_node/kvm_node_installation.html), after adapting the path to the datastores on my cluster. After this, no error for now when I’m moving VM in live migrate mode from a node to another. If I have no errors anymore since few days, I will consider this issue is closed.
