Migration failed, can't boot VM after

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.

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.

This line hints at what direction to search for problems:

Hello,
Thank you so much for your help, I tried to add a rule in apparmor profile following recommandation in install page, 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.

1 Like