Hi guys.
I update ower opennebula service from 4.12 to last vertion (4.14) and i decide change image datastore TM_MAD to qcow2 to using backing file ad speedup VMs deploy and migrate process.
But new VMs could not run, and i gain BOOT_FAILURE status with “Could not open backing file … Permission denied” error. I check backing image permissions but everything is OK.
-rw-rw-r-- 1 oneadmin oneadmin 456654848 Nov 22 12:23 bf91b7166638ae6e4521790892b099ae
VM error log contain these lines:
Sun Nov 22 12:19:57 2015 [Z0][VM][I]: New state is ACTIVE Sun Nov 22 12:19:57 2015 [Z0][VM][I]: New LCM state is PROLOG Sun Nov 22 12:19:57 2015 [Z0][VM][I]: Virtual Machine has no context Sun Nov 22 12:19:58 2015 [Z0][VM][I]: New LCM state is BOOT Sun Nov 22 12:19:59 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/8/deployment.0 Sun Nov 22 12:19:59 2015 [Z0][VMM][I]: ExitCode: 0 Sun Nov 22 12:19:59 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre. Sun Nov 22 12:20:00 2015 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy '/var/lib/one//datastores/0/8/deployment.0' '172.20.30.183' 8 172.20.30.183 Sun Nov 22 12:20:00 2015 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/8/deployment.0 Sun Nov 22 12:20:00 2015 [Z0][VMM][I]: error: internal error: process exited while connecting to monitor: qemu-system-x86_64: -drive file=/var/lib/one//datastores/0/8/disk.0,if=none,id=drive-scsi0-0-0,format=qcow2,cache=none: could not open disk image /var/lib/one//datastores/0/8/disk.0: Could not open backing file: Could not open '/var/lib/one/datastores/1/c7e75ff7b7e75c604dcd0f1082da5754': Permission denied Sun Nov 22 12:20:00 2015 [Z0][VMM][I]: Sun Nov 22 12:20:00 2015 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/8/deployment.0 Sun Nov 22 12:20:00 2015 [Z0][VMM][I]: ExitCode: 255 Sun Nov 22 12:20:00 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy. Sun Nov 22 12:20:00 2015 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/8/deployment.0 Sun Nov 22 12:20:00 2015 [Z0][VM][I]: New LCM state is BOOT_FAILURE
Waht is problem and how can i resolve it?
Thanks
Check all permissions if you see everything fine try to remove apparmor or selinux .
1 Like
Yes, It’s work. I remvoe apparmor and the problem is solved.
Thanks man.