 +exec_and_log "chmod ug+w,o-rwx $DST_PATH"
  
 diff --git a/src/tm_mad/ssh/tm_clone.sh b/src/tm_mad/ssh/tm_clone.sh
-index 71800d1..eaa5f93 100755
+index 71800d1..c7333c5 100755
 --- a/src/tm_mad/ssh/tm_clone.sh
 +++ b/src/tm_mad/ssh/tm_clone.sh
-@@ -43,19 +43,51 @@ log "Creating directory $DST_DIR"
+@@ -33,6 +33,8 @@ DST_PATH=`arg_path $DST`
+ SRC_HOST=`arg_host $SRC`
+ DST_HOST=`arg_host $DST`
+ 
++VM_DIR=`dirname $SRC_PATH`
++VM_ID=`basename $VM_DIR`
+ 
+ log_debug "$1 $2"
+ log_debug "DST: $DST_PATH"
+@@ -43,19 +45,52 @@ log "Creating directory $DST_DIR"
  exec_and_log "$SSH $DST_HOST mkdir -p $DST_DIR" \
      "Error creating directory $DST_DIR"
  

+    pdisk:*)
+        log "Persistent disk handling $SRC $DST"
+        exec_and_log "$SSH -t -t $DST_HOST /usr/sbin/attach-persistent-disk.sh $SRC $DST_PATH" \
+            "Failed to create persistent disk $DST_PATH"
+        ;;
+
+    *)

+
+    pdisk:*)
+        log "Persistent disk handling $SRC $DST"
+        exec_and_log "$SSH -t -t $DST_HOST /usr/sbin/attach-persistent-disk.sh $SRC $DST_PATH" \
+            "Failed to clone persistent disk $DST_PATH"
+        exec_and_log "echo \"$SSH -t -t $DST_HOST /usr/sbin/detach-persistent-disk.sh $VM_ID\" > /tmp/pdisk.$VM_ID" \
+           "Failed to write persistent disk properties"
+        ;;
+
+    *)
