<div dir="ltr">I created a vmware datastore for images as described in vmware quickstart guide.  I see the following two errors while trying to import images from the Marketplace.<div><br></div><div>1.  I tried to import the "CentOS Server 6.2 -VMWware" image, but it had an error (presumably after it finished downloading):  </div>

<div><br clear="all"><div><div>        Mon Apr 14 16:44:56 2014 [ImM][I]: cp: Downloading <a href="http://marketplace.c12g.com/appliance/4ff2ce348fb81d4406000003/download/0">http://marketplace.c12g.com/appliance/4ff2ce348fb81d4406000003/download/0</a> to the image repository</div>

<div>        Mon Apr 14 16:44:56 2014 [ImM][E]: cp: Command "mv -f /var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/ /var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk" failed: mv: cannot move `/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/' to a         <br>

        subdirectory of itself, `/var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk'</div><div>        Mon Apr 14 16:44:56 2014 [ImM][E]: Error renaming file /var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/ to /var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk</div>

<div>        Mon Apr 14 16:44:56 2014 [ImM][I]: ExitCode: 1</div><div>        Mon Apr 14 16:44:56 2014 [ImM][E]: Error copying image in the datastore: Error renaming file /var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/ to /var/lib/one/tmp/f838291fae5e23f84aeafa9c10f4c6b0/disk.vmdk</div>

</div><div><br></div><div>2.  I tried tried to import another image from the marketplace (ttylinux - VMware), and it looks like it successfully downloaded and moved the file this time within the tmp directory, however, when it tried to SCP the file over to the vmfs datastore on my vmware host, I saw the following error:</div>

<div><br></div><div><div>       Mon Apr 14 16:29:38 2014 [ImM][I]: cp: Downloading <a href="http://marketplace.c12g.com/appliance/4ff2d3aa8fb81d4406000004/download/0">http://marketplace.c12g.com/appliance/4ff2d3aa8fb81d4406000004/download/0</a> to the image repository</div>

<div>       Mon Apr 14 16:29:38 2014 [ImM][E]: cp: Command "scp -r /var/lib/one/tmp/68236b9cb3208691244d1eb016153092/* 10.20.82.54:/vmfs/volumes/108/" failed: scp: /vmfs/volumes/108/68236b9cb3208691244d1eb016153092: No such    <br>

       file or directory</div><div>       Mon Apr 14 16:29:38 2014 [ImM][E]: Error copying /var/lib/one/tmp/68236b9cb3208691244d1eb016153092 to /vmfs/volumes/108/68236b9cb3208691244d1eb016153092 through SCP </div><div>       Mon Apr 14 16:29:38 2014 [ImM][I]: ExitCode: 1</div>

</div><div><br></div><div>This is presumably because SCP won't create subdirectories while copying if they don't already exist.  /vmfs/volumes/108 exists on the vmware host, but not the 68236b9cb3208691244d1eb016153092 directory.  It seems like the "*" in the source path is unnecessary, and is causing the issue.</div>

<div><br></div><div>Any idea how to fix these problems?</div><div><br></div>-- <br><div dir="ltr"><p>Stephen Levy</p>

<p>Senior Software Engineer</p>

<p><a href="http://www.telogis.com" target="_blank">www.telogis.com</a>    +1
512.719.6105 (direct)</p>

<p>One Platform for Location Intelligence </p></div>
</div></div>

<br>
<p><font color="#808080" face="Arial, Helvetica, sans-serif" size="1">This email, and any attachments, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. It is the property of Telogis, Inc. If you are not the intended recipient of this email, you are hereby notified that any dissemination, distribution or copying of this email, any attachments thereto, and use of the information contained, is strictly prohibited. If you have received this email in error, please notify the sender and permanently delete the original and any copy thereof.</font></p>