Can't instantiate a VM, scp failed (No such file or directory)

Hello,

I have installed OpenNebula 5.4.1 on a VM on my own computer (with VmWare Workstation) and I’m trying to manage a vCenter 5.5 on an ESXi 5.5.

I followed the guide and was able to add the vCenter and the datastore to OpenNebula. Then I created 2 templates : one from scratch and one by importing it from the vCenter using Sunstone.

After that, I go to the “vms-tab” and add a VM by selecting a template, specifying a name and a network. I tried with the option “Instantiate as persistent” and without it. It makes no difference with the error I get when the VM is deployed, which is :
Mon Oct 9 13:18:13 2017 [Z0][VM][I]: New state is ACTIVE
Mon Oct 9 13:18:13 2017 [Z0][VM][I]: New LCM state is PROLOG
Mon Oct 9 13:18:29 2017 [Z0][TM][I]: Command execution fail: /var/lib/one/remotes/tm/ssh/ln opennebula:debian-8.2.0-amd64-netinst.iso X.X.X.40:/var/lib/one//datastores/101/34/disk.0 34 100
Mon Oct 9 13:18:29 2017 [Z0][TM][I]: ln: Cloning opennebula:debian-8.2.0-amd64-netinst.iso in /var/lib/one/datastores/101/34/disk.0
Mon Oct 9 13:18:29 2017 [Z0][TM][E]: ln: Command “scp -r opennebula:debian-8.2.0-amd64-netinst.iso X.X.X.40:/var/lib/one//datastores/101/34/disk.0” failed: VMware vCenter Server Appliance
Mon Oct 9 13:18:29 2017 [Z0][TM][I]: debian-8.2.0-amd64-netinst.iso: No such file or directory
Mon Oct 9 13:18:29 2017 [Z0][TM][E]: Error copying opennebula:debian-8.2.0-amd64-netinst.iso to X.X.X.40:/var/lib/one//datastores/101/34/disk.0
Mon Oct 9 13:18:29 2017 [Z0][TM][I]: ExitCode: 1
Mon Oct 9 13:18:29 2017 [Z0][TM][E]: Error executing image transfer script: Error copying opennebula:debian-8.2.0-amd64-netinst.iso to X.X.X.40:/var/lib/one//datastores/101/34/disk.0
Mon Oct 9 13:18:29 2017 [Z0][VM][I]: New LCM state is PROLOG_FAILURE

(In those logs, I have replace the correct IP of the vCenter by X.X.X.40).

The error “debian-8.2.0-amd64-netinst.iso: No such file or directory” is completely normal because the file isn’t on my instance of OpenNebula but on the ESXi datastore : /vmfs/volumes/datastore1/debian-8.2.0-amd64-netinst.iso

On the “hosts-tab”, the host X.X.X.40 is link to a cluster which is itself link to 3 datastores :

  • system with ID 0
  • datastore1 (SYS) with ID 101
  • datastore1 (IMG) with ID 100

When I deploy, I have the choice between the datastores “system” and “datastore1 (SYS)” I select the 2nd one.

So how can I tell OpenNebula that the path to the file isn’t localhost, but the path of the datastore ?

Thank you,

Gaby