Virsh Error after starting a VM

Hello Guys,

I get this weird error after instantiating a VM:


Wed Jul 1 08:38:10 2015 [VMM][I]: Generating deployment file: /var/lib/one/vms/4/deployment.0
Wed Jul 1 08:38:10 2015 [VMM][I]: Successfully execute network driver operation: pre.
Wed Jul 1 08:38:14 2015 [VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vmware/deploy ‘/var/lib/one/vms/4/deployment.0’ ‘esxi01’ 4 esxi01
Wed Jul 1 08:38:14 2015 [VMM][E]: deploy: Error executing: virsh -c ‘esx://esxi01/?no_verify=1&auto_answer=1’ define /var/lib/one/vms/4/deployment.0 err: ExitCode: 1
Wed Jul 1 08:38:14 2015 [VMM][I]: out:
Wed Jul 1 08:38:14 2015 [VMM][I]: error: Failed to define domain from /var/lib/one/vms/4/deployment.0
Wed Jul 1 08:38:14 2015 [VMM][I]: error: internal error: Domain XML doesn’t contain any file-based harddisks, cannot deduce datastore and path for VMX file
Wed Jul 1 08:38:14 2015 [VMM][I]:
Wed Jul 1 08:38:14 2015 [VMM][I]: ExitCode: 255
Wed Jul 1 08:38:14 2015 [VMM][I]: Failed to execute virtualization driver operation: deploy.

Full Log: Wed Jul 1 05:47:56 2015 [DiM][I]: New VM state is ACTIVE.Wed Jul 1 05:47:56 20 - Pastebin.com

Additional information:
OpenNebula Version 4.6.2 on Debian 7.8 within a VM
ESXi Hypervisor 6.0

Unfortunately I couldn’t find any help searching in google. Can anyone help me?

I have just updated OpenNebula to Version 4.12.1 and the problem is still there.

The problem is resolved. The solution: add a persistent datablock image to the template.