XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Create a shared ISO SR - option to pass SMB version

    Scheduled Pinned Locked Moved Xen Orchestra
    6 Posts 3 Posters 366 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      scls19fr
      last edited by scls19fr

      Hello,

      I'm trying to create a shared ISO SR with my 10 years old Synology NAS.

      Unfortunately I'm getting

      SR_BACKEND_FAILURE_222(, Could not mount the directory specified in Device Configuration [opterr=mount error(95): Operation not supported
      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)], )

      I suspect that given the quite old age of my NAS... I should pass an option for SMB version.
      When I used Proxmox VE I was passing smbversion=2.0 (it wasn't working for newer version).

      I wonder if it's not related.

      Any opinion?

      1 Reply Last reply Reply Quote 0
      • stormiS Offline
        stormi Vates 🪐 XCP-ng Team
        last edited by

        Pinging @ronan-a and @dthenot who will know what's possible or not.

        dthenotD 1 Reply Last reply Reply Quote 0
        • dthenotD Online
          dthenot Vates 🪐 XCP-ng Team @stormi
          last edited by

          @stormi There is no way to do this currently.
          You could add options manually in /opt/xensource/sm/SMBSR.py:getMountOptions by appending the option here to try.
          The simple way would add the parameter to all SMB SR though.
          And it would be override by a sm update.

          dthenotD 1 Reply Last reply Reply Quote 0
          • dthenotD Online
            dthenot Vates 🪐 XCP-ng Team @dthenot
            last edited by

            @dthenot Sorry, you were asking about a ISO SR.
            In this case, it's in /opt/xensource/sm/ISOSR.py:appendCIFSMountOptions.

            stormiS 1 Reply Last reply Reply Quote 0
            • stormiS Offline
              stormi Vates 🪐 XCP-ng Team @dthenot
              last edited by

              @dthenot So there's no way to pass settings through the deviceconfig parameter such as what is possible with NFS VM SRs?

              dthenotD 1 Reply Last reply Reply Quote 1
              • dthenotD Online
                dthenot Vates 🪐 XCP-ng Team @stormi
                last edited by

                @stormi So I looked into the code of the ISOSR and there is a parameter for the version in the device-config.
                The parameter is vers but it can only be V1 or V3.
                And if it can't connect with V3, it will also try with V1.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post