# Shared datastore does not support transfer mode shared

**URL:** <https://forum.opennebula.io/t/shared-datastore-does-not-support-transfer-mode-shared/10021>\
**Category:** Operations\
**Created:** [October 12, 2021, 6:39pm UTC](https://forum.opennebula.io/t/shared-datastore-does-not-support-transfer-mode-shared/10021 "2021-10-12T18:39:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![slapplebags](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/slapplebags/32/7064_2.png) [@slapplebags](https://forum.opennebula.io/u/slapplebags)\
**Post date:** [October 12, 2021, 6:39pm UTC](https://forum.opennebula.io/t/shared-datastore-does-not-support-transfer-mode-shared/10021/1 "2021-10-12T18:39:33Z")

</div>

I’m trying to add a new shared datastore and no matter what combination of settings i choose for the datastore i am unable to spin up a vm in that datastore. I always get the message “Image Datastore does not support transfer mode: shared”.

 ![Screenshot 2021-10-12 120428](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/a471ac3608b0088484344260cd1ce891b9f05c4a.png)  
 ![Screenshot 2021-10-12 120600](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/8/8d84938e436bc65909fc27c1c9ab57dd0bdd152c.png)

I’ve verified the permissions match on the folders and it is owned by the oneadmin user. i am able to ssh between hosts as oneadmin without password and create files in teh folder. permissions match between a working folder and the folder that doesnt work. I’ve also tried qcow2 mode with this result “Image Datastore does not support transfer mode: qcow2”, as well as creating a new cluster with the new datastore(s) and i still get the same results. I’ve tried restarting all teh opennebula services but still the issue persists. Any pointers would be appreciated or a copy of a working shared image datastore / system datastore.

Also tried making a non-shared ssh datastore and am able to create VMs on the gluster / fuse mounted file but i am unable to migrate the VM live or otherwise. live fails saying the datastore isnt shared as expected, live fails saying “DEPLOY: Could not create domain from /raid/images/168/256/deployment.2”

tried using the legacy built in glusterfs datastore as well but still get the same message that  
“Image Datastore does not support transfer mode: shared” no combination of things so far, has worked. anytime the shared option shows up in the image datastore it will throw that error.

I’ve also tried setting base path but that is ignored as well as tinkering around with the shared TM\_MAD\_CONF in oned.conf but all to no avail. Also tried disabling all other datastores but the issue persists.

disabling apparmor made no difference, nor did trying just normal files instead of the fuse mounted gluster shares.

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [October 13, 2021, 8:11am UTC](https://forum.opennebula.io/t/shared-datastore-does-not-support-transfer-mode-shared/10021/2 "2021-10-13T08:11:53Z")

</div>

This seems to be a misconfigured oned.conf, missing/wrong TM\_MAD\_CONF entries. Did you change something there? or are you using any TM\_MAD\_SYSTEM in the VM template?

---

<div class="post-metadata">

**Author:** ![slapplebags](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/slapplebags/32/7064_2.png) [@slapplebags](https://forum.opennebula.io/u/slapplebags)\
**Post date:** [October 13, 2021, 6:08pm UTC](https://forum.opennebula.io/t/shared-datastore-does-not-support-transfer-mode-shared/10021/3 "2021-10-13T18:08:52Z")

</div>

Really appreciate the response, i’m totally out of ideas on this. Below is the oned.conf tm\_mad\_conf section as well as the vm template, and storage settings. let me know if theres anything else i can provide that would be helpful

TM\_MAD\_CONF = [  
NAME = “dummy”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SYSTEM”, SHARED = “YES”,  
DS\_MIGRATE = “YES”  
]

TM\_MAD\_CONF = [  
NAME = “lvm”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SELF”, SHARED = “YES”,  
DRIVER = “raw”  
]

TM\_MAD\_CONF = [  
NAME = “shared”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SYSTEM”, SHARED = “YES”,  
DS\_MIGRATE = “YES”, TM\_MAD\_SYSTEM = “ssh”, LN\_TARGET\_SSH = “SYSTEM”,  
CLONE\_TARGET\_SSH = “SYSTEM”, DISK\_TYPE\_SSH = “FILE”  
]

TM\_MAD\_CONF = [  
NAME = “fs\_lvm”, LN\_TARGET = “SYSTEM”, CLONE\_TARGET = “SYSTEM”, SHARED=“YES”,  
DRIVER = “raw”  
]

TM\_MAD\_CONF = [  
NAME = “qcow2”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SYSTEM”, SHARED = “YES”,  
DS\_MIGRATE = “YES”, TM\_MAD\_SYSTEM = “ssh”, LN\_TARGET\_SSH = “SYSTEM”,  
CLONE\_TARGET\_SSH = “SYSTEM”, DISK\_TYPE\_SSH = “FILE”, DRIVER = “qcow2”  
]

TM\_MAD\_CONF = [  
NAME = “ssh”, LN\_TARGET = “SYSTEM”, CLONE\_TARGET = “SYSTEM”, SHARED = “NO”,  
DS\_MIGRATE = “YES”, ALLOW\_ORPHANS=“YES”  
]

TM\_MAD\_CONF = [  
NAME = “ceph”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SELF”, SHARED = “YES”,  
DS\_MIGRATE = “NO”, DRIVER = “raw”, ALLOW\_ORPHANS=“mixed”,  
TM\_MAD\_SYSTEM = “ssh,shared”, LN\_TARGET\_SSH = “SYSTEM”, CLONE\_TARGET\_SSH = “SYSTEM”,  
DISK\_TYPE\_SSH = “FILE”, LN\_TARGET\_SHARED = “NONE”,  
CLONE\_TARGET\_SHARED = “SELF”, DISK\_TYPE\_SHARED = “RBD”  
]

TM\_MAD\_CONF = [  
NAME = “iscsi\_libvirt”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SELF”, SHARED = “YES”,  
DS\_MIGRATE = “NO”, DRIVER = “raw”  
]

TM\_MAD\_CONF = [  
NAME = “dev”, LN\_TARGET = “NONE”, CLONE\_TARGET = “NONE”, SHARED = “YES”,  
TM\_MAD\_SYSTEM = “ssh,shared”,  
LN\_TARGET\_SSH = “SYSTEM”, LN\_TARGET\_SHARED = “NONE”,  
DISK\_TYPE\_SSH = “FILE”, DISK\_TYPE\_SHARED = “FILE”,  
CLONE\_TARGET\_SSH = “SYSTEM”, CLONE\_TARGET\_SHARED = “SELF”,  
DRIVER = “raw”  
]

TM\_MAD\_CONF = [  
NAME = “vcenter”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SYSTEM”, SHARED = “YES”  
]

TM\_MAD\_CONF = [  
NAME = “zfs”, LN\_TARGET = “NONE”, CLONE\_TARGET = “SELF”, SHARED = “yes”  
]

and vm template i’m testing with:  
CONTEXT = [  
NETWORK = “YES”,  
PASSWORD = “supersecurepassword”,  
SSH\_PUBLIC\_KEY = “keys”,  
USERNAME = “test” ]  
CPU = “1”  
CPU\_MODEL = [  
MODEL = “kvm64” ]  
DISK = [  
IMAGE\_ID = “0” ]  
HOT\_RESIZE = [  
CPU\_HOT\_ADD\_ENABLED = “NO”,  
MEMORY\_HOT\_ADD\_ENABLED = “NO” ]  
HYPERVISOR = “kvm”  
INFO = “Please do not use this VM Template for vCenter VMs. Refer to the documentation [https://bit.ly/37NcJ0Y](https://bit.ly/37NcJ0Y)”  
INPUTS\_ORDER = “”  
LOGO = “images/logos/ubuntu.png”  
LXD\_SECURITY\_PRIVILEGED = “true”  
MEMORY = “2048”  
MEMORY\_UNIT\_COST = “MB”  
NIC = [  
NETWORK = “br0”,  
NETWORK\_UNAME = “oneadmin”,  
SECURITY\_GROUPS = “0” ]  
OS = [  
ARCH = “x86\_64”,  
BOOT = “” ]  
SCHED\_REQUIREMENTS = “HYPERVISOR!=“vcenter””  
VCPU = “4”  
here is the datastore config i’m trying to use:

 ![Screenshot 2021-10-13 113132](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/a4a39a7d5020726641fa89f98c5bcd37336a35b3.png)  
 ![Screenshot 2021-10-13 113134](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/a/acea682bc5f57bd1f012f49d40f81736edc2e5c6.png)

---

<div class="post-metadata">

**Author:** ![slapplebags](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/slapplebags/32/7064_2.png) [@slapplebags](https://forum.opennebula.io/u/slapplebags)\
**Post date:** [October 22, 2021, 6:41pm UTC](https://forum.opennebula.io/t/shared-datastore-does-not-support-transfer-mode-shared/10021/5 "2021-10-22T18:41:39Z")

</div>

i have completely wiped and reinstalled on all my nodes, no changes have been made to any config files and this is still an issue.

---

<div class="post-metadata">

**Author:** ![slapplebags](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/slapplebags/32/7064_2.png) [@slapplebags](https://forum.opennebula.io/u/slapplebags)\
**Post date:** [October 22, 2021, 7:01pm UTC](https://forum.opennebula.io/t/shared-datastore-does-not-support-transfer-mode-shared/10021/6 "2021-10-22T19:01:56Z")

</div>

here is the current datastore settings:  
root@ohv-06:/# onedatastore show 100  
DATASTORE 100 INFORMATION  
ID : 100  
NAME : gbrick-100  
USER : oneadmin  
GROUP : oneadmin  
CLUSTERS : 0  
TYPE : SYSTEM  
DS\_MAD : -  
TM\_MAD : shared  
BASE PATH : /var/lib/one//datastores/100  
DISK\_TYPE : FILE  
STATE : READY

DATASTORE CAPACITY  
TOTAL: : 6.8T  
FREE: : 6.7T  
USED: : 69.1G  
LIMIT: : -

PERMISSIONS  
OWNER : um-  
GROUP : u–  
OTHER : —

DATASTORE TEMPLATE  
ALLOW\_ORPHANS=“NO”  
BRIDGE\_LIST=" "  
DISK\_TYPE=“FILE”  
DS\_MIGRATE=“YES”  
RESTRICTED\_DIRS="/"  
SAFE\_DIRS="/var/tmp"  
SHARED=“YES”  
TM\_MAD=“shared”  
TYPE=“SYSTEM\_DS”

IMAGES  
root@ohv-06:/# onedatastore show 101  
DATASTORE 101 INFORMATION  
ID : 101  
NAME : gbrick-101  
USER : oneadmin  
GROUP : oneadmin  
CLUSTERS : 0  
TYPE : IMAGE  
DS\_MAD : fs  
TM\_MAD : shared  
BASE PATH : /var/lib/one//datastores/101  
DISK\_TYPE : FILE  
STATE : READY

DATASTORE CAPACITY  
TOTAL: : 6.8T  
FREE: : 6.7T  
USED: : 69.1G  
LIMIT: : -

PERMISSIONS  
OWNER : um-  
GROUP : u–  
OTHER : —

DATASTORE TEMPLATE  
ALLOW\_ORPHANS=“NO”  
BRIDGE\_LIST=" "  
CLONE\_TARGET=“SYSTEM”  
CLONE\_TARGET\_SSH=“SYSTEM”  
COMPATIBLE\_SYS\_DS=“100”  
DISK\_TYPE=“FILE”  
DISK\_TYPE\_SSH=“FILE”  
DRIVER=“qcow2”  
DS\_MAD=“fs”  
LN\_TARGET=“NONE”  
LN\_TARGET\_SSH=“SYSTEM”  
RESTRICTED\_DIRS="/"  
SAFE\_DIRS="/var/tmp"  
TM\_MAD=“shared”  
TM\_MAD\_SYSTEM=“ssh”  
TYPE=“IMAGE\_DS”

IMAGES
