i’m new into OpenNebula and follow the Quickstar-Guide to making first steps. Every step works fine but i get the following error by running the virtual machine:
Thu Jul 2 09:46:40 2015 [Z0][DiM][I]: New VM state is ACTIVE.
Thu Jul 2 09:46:40 2015 [Z0][LCM][I]: New VM state is PROLOG.
Thu Jul 2 09:48:53 2015 [Z0][LCM][I]: New VM state is BOOT
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/1/deployment.4
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: ExitCode: 0
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/kvm/deploy ‘/var/lib/one//datastores/0/1/deployment.4’ ‘kvm-node01.cyon.ch’ 1 kvm-node01.cyon.ch
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/1/deployment.4
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: error: can’t canonicalize path ‘/var/lib/one//datastores/0/1/disk.1’: Permission denied
Thu Jul 2 09:48:53 2015 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/1/deployment.4
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: ExitCode: 255
Thu Jul 2 09:48:53 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Thu Jul 2 09:48:53 2015 [Z0][VMM][E]: Error deploying virtual machine: Could not create domain from /var/lib/one//datastores/0/1/deployment.4
Thu Jul 2 09:48:53 2015 [Z0][DiM][I]: New VM state is FAILED
I have checked the permissions of the nfs-share at “/var/lib/one”; there are no permission problems to read and write on the node.
could you check if the same file in /var/lib/one is reachable from the node01 server as well ?
(as user oneadmin)
Cause might be that the master server can reach that disk, but the node can’t ?
I have no problems with read and write from the node01 into /var/lib/one/. Strange is, that i setup and configuration the test-environment like the description in the Quickstart-Guide.
ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM STAT
0 system 14.6G 74% - 0 sys - shared on
1 default 14.6G 74% - 1 img fs shared on
2 files 14.6G 74% - 0 fil fs ssh on
ok looks like a NFS setup - can you check if you’ve mounted the datastore the same on both servers ?
So the share might be mounted on /var/lib/one on the master, and as /var/lib/one/datastore on a host ?
mounting it as /var/lib/one is fine, as long as you mount it that way on all your physical servers.
i’m out of ideas with what I could determine so far, hope someone else knows a fix or pointer ?
I had this issue with Ubuntu 14.04 after an upgrade from 4.12 to 4.14. I’m not sure how it occured but all new VMs were being blocked by apparmor. Even after setting the process with the aa-complain command I was still unable to get this to work. My only solution was to uninstall apparmor with sudo apt-get remove --purge apparmor