# Cloning from bad host!

**URL:** <https://forum.opennebula.io/t/cloning-from-bad-host/5399>\
**Category:** Product Support\
**Created:** [December 11, 2017, 5:59am UTC](https://forum.opennebula.io/t/cloning-from-bad-host/5399 "2017-12-11T05:59:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hassan.draga](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hassan.draga/32/5084_2.png) [@hassan.draga](https://forum.opennebula.io/u/hassan.draga)\
**Post date:** [December 11, 2017, 5:59am UTC](https://forum.opennebula.io/t/cloning-from-bad-host/5399/1 "2017-12-11T05:59:45Z")

</div>

i have a custom image in Datastore on server1 (SSH non-shared), NOT on Front-end, i am sure ! but when instantiate… OpenNebula tray always to clone from Front-end and not server1, why ?

> Mon Dec 11 05:06:48 2017 [Z0][VM][I]: New state is ACTIVE  
> Mon Dec 11 05:06:48 2017 [Z0][VM][I]: New LCM state is PROLOG
> 
> Mon Dec 11 05:08:01 2017 [Z0][TM][E]: clone: Command “scp -r  
> **Front-end.local** :/home/one/104/640277e5604b8242b456cd4cf87ac35d  
> server1.local:/home/one/102/7/disk.1” failed:  
> /home/one/104/640277e5604b8242b456cd4cf87ac35d: No such file or  
> directory

this should be

> “scp -r **server1.local** :/home/one/104/640277e5604b8242b456cd4cf87ac35d server1.local:/home/one/102/7/disk.1”

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [December 11, 2017, 8:48am UTC](https://forum.opennebula.io/t/cloning-from-bad-host/5399/2 "2017-12-11T08:48:07Z")

</div>

Hi Saif,

You should take a look at the [configuration options](http://docs.opennebula.org/5.4/deployment/references/oned_conf.html#transfer-driver) of the TM\_MAD. And don’t forget to restart the opennebula service after altering the configuration files.

Best Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![feldsam](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/feldsam/32/4441_2.png) [@feldsam](https://forum.opennebula.io/u/feldsam)\
**Post date:** [December 11, 2017, 2:29pm UTC](https://forum.opennebula.io/t/cloning-from-bad-host/5399/3 "2017-12-11T14:29:26Z")

</div>

That conf options can be also specified in datastore template, so no need to edit manualy and restart…

Please post your datastore template. Both, image and system types

---

<div class="post-metadata">

**Author:** ![hassan.draga](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/hassan.draga/32/5084_2.png) [@hassan.draga](https://forum.opennebula.io/u/hassan.draga)\
**Post date:** [December 11, 2017, 2:39pm UTC](https://forum.opennebula.io/t/cloning-from-bad-host/5399/4 "2017-12-11T14:39:31Z")

</div>

Fixed, thank you Anton, thank you Kristian, 🙂

After reading configuration options, i found that [SSH Transfer Mode](http://docs.opennebula.org/5.4/deployment/open_cloud_storage_setup/fs_ds.html#ssh-transfer-mode) is used for cloning image from Frontend to Hosts (_i don’t know if this is configurable_) , but [Shared & Qcow2 Transfer Modes](http://docs.opennebula.org/5.4/deployment/open_cloud_storage_setup/fs_ds.html#shared-qcow2-transfer-modes) is what i need (_using shared image in the server1.local_)

So, i create a new Datastore Shared Mode as FilesSystem

> TM\_MAD : qcow2

Thank you again 🙂
