Hey,
I try to make a virutal Machine out of my template, but the status is allways “failed”.
I am completely new OpenNebula and not very skilled in Linux
This is the log:
Mon Aug 10 10:13:11 2015 [Z0][DiM][I]: New VM state is ACTIVE.
Mon Aug 10 10:13:11 2015 [Z0][LCM][I]: New VM state is PROLOG.
Mon Aug 10 10:13:12 2015 [Z0][LCM][I]: New VM state is BOOT
Mon Aug 10 10:13:12 2015 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/10/deployment.0
Mon Aug 10 10:13:13 2015 [Z0][VMM][I]: ExitCode: 0
Mon Aug 10 10:13:13 2015 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Mon
Aug 10 10:13:15 2015 [Z0][VMM][I]: Command execution fail: cat <<
EOT | /var/tmp/one/vmm/kvm/deploy
’/var/lib/one//datastores/0/10/deployment.0’ ‘kvm2-bross’ 10 kvm2-bross
Mon Aug 10 10:13:15 2015 [Z0][VMM][I]: error: Failed to create domain from /var/lib/one//datastores/0/10/deployment.0
Mon
Aug 10 10:13:15 2015 [Z0][VMM][I]: error: internal error process exited
while connecting to monitor: kvm: -drive
file=/var/lib/one//datastores/0/10/disk.0,if=none,id=drive-scsi0-0-0,readonly=on,format=qcow2,cache=none:
could not open disk image /var/lib/one//datastores/0/10/disk.0: Invalid
argument
Mon Aug 10 10:13:15 2015 [Z0][VMM][I]:
Mon Aug 10 10:13:15 2015 [Z0][VMM][E]: Could not create domain from /var/lib/one//datastores/0/10/deployment.0
Mon Aug 10 10:13:15 2015 [Z0][VMM][I]: ExitCode: 255
Mon Aug 10 10:13:15 2015 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Mon
Aug 10 10:13:15 2015 [Z0][VMM][E]: Error deploying virtual machine:
Could not create domain from /var/lib/one//datastores/0/10/deployment.0
Mon Aug 10 10:13:15 2015 [Z0][DiM][I]: New VM state is FAILED
For OpenNebula, it will refer to /var/lib/one/datastores/0 but since you do symlink, in filesystem it will store at /mnt/nfs/datastores/0. In this case, i dont prefer to symlink. Have 2 options (what i have practice)
Mount the external NFS to /var/lib/one/datastores instead of /mnt/nfs/datastores OR
Add /mnt/nfs/datastores as DATASTORE_LOCATION & DATASTORE_BASE_PATH in oned.conf file
file=/var/lib/one//datastores/0/10/disk.0,if=none,id=drive-scsi0-0-0,readonly=on,format=qcow2,cache=none: could not open disk image /var/lib/one//datastores/0/10/disk.0: Invalid argument
My template was set on raw instrad of qcow2 → Could not open disk