# Snap\_create for combination of qcow2 and ssh TM

**URL:** <https://forum.opennebula.io/t/snap-create-for-combination-of-qcow2-and-ssh-tm/1659>\
**Category:** Integration Support\
**Created:** [January 6, 2016, 11:06am UTC](https://forum.opennebula.io/t/snap-create-for-combination-of-qcow2-and-ssh-tm/1659 "2016-01-06T11:06:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ondrej\_hamada](https://avatars.discourse-cdn.com/v4/letter/o/ea5d25/32.png) [@ondrej\_hamada](https://forum.opennebula.io/u/ondrej_hamada)\
**Post date:** [January 6, 2016, 11:06am UTC](https://forum.opennebula.io/t/snap-create-for-combination-of-qcow2-and-ssh-tm/1659/1 "2016-01-06T11:06:18Z")

</div>

Hello,

i’ve started using the offline disk snapshots on ONE 4.14.2 and i’ve encountered some troubles. My image datastore uses qcow2 TM driver. However my system datastores use SSH TM driver. When I wanted to create a snapshot, it always failed because it was trying to execute ‘readlink’ on the ONE frontend where the image of the VM was not available.

I had to bypass it by modifying the qcow2 TM driver - the change is somewhere around line 79 - just to make readlink execute on the remote host (addition of the backslash):  
PREVIOUS\_SNAP=$(readlink $SYSTEM\_DS\_DISK\_PATH)

Now I can both create and revert snapshots.

Is this a bug or have I done something wrong?

---

<div class="post-metadata">

**Author:** ![cmartin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cmartin/32/4278_2.png) [@cmartin](https://forum.opennebula.io/u/cmartin)\
**Post date:** [January 7, 2016, 10:29am UTC](https://forum.opennebula.io/t/snap-create-for-combination-of-qcow2-and-ssh-tm/1659/2 "2016-01-07T10:29:49Z")

</div>

Hi,

It may be a bug. Please open a ticket at [http://dev.opennebula.org](http://dev.opennebula.org) with the description and a link to this thread, this way it won’t get buried in the forum.

Thanks.

---

<div class="post-metadata">

**Author:** ![ondrej\_hamada](https://avatars.discourse-cdn.com/v4/letter/o/ea5d25/32.png) [@ondrej\_hamada](https://forum.opennebula.io/u/ondrej_hamada)\
**Post date:** [January 7, 2016, 11:38am UTC](https://forum.opennebula.io/t/snap-create-for-combination-of-qcow2-and-ssh-tm/1659/3 "2016-01-07T11:38:30Z")

</div>

here’s the ticket: [http://dev.opennebula.org/issues/4276](http://dev.opennebula.org/issues/4276)  
I’ve made a pull request with fix as well.
