Adam Błaszczykowski
2016-Aug-04  14:16 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
Hello,
I have problem with Samba 4.4.3. I'd like to use SMB 3.02 file shares as
shared storage for Hyper-V in Windows Server 2012 R2. I am able to create
Virtual Machine on Samba share using guest access, but when I try to start
VM I'm getting the following error:
"An error occurred while attempting to start the selected virtual
machine(s).
'New Virtual Machine' could not initialize.
An attempt to initialize VM saved state failed.
'New Virtual Machine' could not initialize. (Virtual machine ID
70BB2BD1-B168-4944-9EEF-A665531EC058)
'New Virtual Machine' could not create or access saved state
file...' "
What do I need to change in Samba configuration to solve this problem ?
Please check my logs and configuration:
*smb.conf:*
[global]
        bind interfaces only = No
        config backend = file
        dos charset = CP850
        enable core files = Yes
        interfaces         multicast dns register = Yes
        netbios aliases         netbios name = DSSHP2
        netbios scope         realm = RES.LOCAL
        server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl,
winbindd, ntp_signd, kcc, dnsupdate, dns
        server string = Samba 4.4.3
        share backend = classic
        unix charset = UTF-8
        workgroup = RES
        browse list = Yes
        domain master = No
        enhanced browsing = Yes
        lm announce = Auto
        lm interval = 60
        local master = No
        os level = 0
        preferred master = No
        allow dns updates = secure only
        dns forwarder         dns update command = /usr/sbin/samba_dnsupdate
        machine password timeout = 604800
        nsupdate command = /usr/bin/nsupdate -g
        rndc command = /usr/sbin/rndc
        spn update command = /usr/sbin/samba_spnupdate
        mangle prefix = 1
        mangling method = hash2
        max stat cache size = 256
        stat cache = Yes
        client ldap sasl wrapping = sign
        ldap admin dn         ldap connection timeout = 2
        ldap delete dn = No
        ldap deref = auto
        ldap follow referral = Auto
        ldap group suffix         ldap idmap suffix         ldap machine suffix 
ldap page size = 1000
        ldap passwd sync = no
        ldap replication sleep = 1000
        ldap server require strong auth = Yes
        ldap ssl = start tls
        ldap ssl ads = No
        ldap suffix         ldap timeout = 15
        ldap user suffix         lock spin time = 200
        oplock break wait time = 0
        smb2 leases = No
        debug class = No
        debug hires timestamp = Yes
        debug pid = No
        debug prefix timestamp = No
        debug uid = No
        ldap debug level = 0
        ldap debug threshold = 10
        log file = /var/log/samba/log.%m
        logging         log level = 2
        max log size = 6000
        syslog = 1
        syslog only = No
        timestamp logs = Yes
        abort shutdown script         add group script         add machine
script         add user script         add user to group script         allow
nt4 crypto = No
        delete group script         delete user from group script         delete
user script         domain logons = No
        enable privileges = Yes
        init logon delay = 100
        init logon delayed hosts         logon drive         logon home =
\\%N\%U
        logon path = \\%N\%U\profile
        logon script         reject md5 clients = No
        set primary group script         shutdown script         add share
command         afs token lifetime = 604800
        afs username map         allow insecure wide links = No
        async smb echo handler = No
        auto services         cache directory = /var/cache/samba
        change notify = Yes
        change share command         cluster addresses         clustering = No
        config file         ctdbd socket         ctdb locktime warn threshold =
0
        ctdb timeout = 0
        default service         delete share command         homedir map =
auto.home
        kernel change notify = Yes
        lock directory = /var/run/samba
        log writeable files on exit = No
        message command         nbt client socket address = 0.0.0.0
        ncalrpc dir = /var/run/samba/ncalrpc
        NIS homedir = No
        nmbd bind explicit broadcast = Yes
        panic action         perfcount module         pid directory =
/var/run/samba
        registry shares = No
        remote announce         remote browse sync         reset on zero vc = No
        smbd profiling level = off
        state directory = /var/lib/samba
        usershare allow guests = No
        usershare max shares = 0
        usershare owner only = Yes
        usershare path = /var/lib/samba/usershares
        usershare prefix allow list         usershare prefix deny list        
usershare template share         utmp = No
        utmp directory         wtmp directory         addport command        
addprinter command         cups connection timeout = 30
        cups encrypt = No
        cups server         deleteprinter command         disable spoolss = No
        enumports command         iprint server         load printers = Yes
        lpq cache time = 30
        os2 driver map         printcap cache time = 0
        printcap name         show add printer wizard = Yes
        cldap port = 389
        client ipc max protocol = default
        client ipc min protocol = default
        client max protocol = default
        client min protocol = CORE
        client use spnego = Yes
        dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr,
netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6,
backupkey, dnsserver
        defer sharing violations = Yes
        dgram port = 138
        disable netbios = No
        enable asu support = No
        eventlog list         large readwrite = Yes
        max mux = 50
        max ttl = 259200
        max wins ttl = 518400
        max xmit = 16644
        min receivefile size = 0
        min wins ttl = 21600
        name resolve order = lmhosts wins host bcast
        nbt port = 137
        nt pipe support = Yes
        nt status support = Yes
        read raw = Yes
        rpc big endian = No
        server max protocol = SMB3
        server min protocol = LANMAN1
        server multi channel support = No
        smb2 max credits = 8192
        smb2 max read = 8388608
        smb2 max trans = 8388608
        smb2 max write = 8388608
        smb ports = 445 139
        svcctl list         time server = No
        unicode = Yes
        unix extensions = No
        use spnego = Yes
        web port = 901
        write raw = Yes
        algorithmic rid base = 1000
        allow dcerpc auth level connect = No
        allow trusted domains = Yes
        auth methods         check password script         client ipc signing =
default
        client lanman auth = No
        client NTLMv2 auth = Yes
        client plaintext auth = No
        client schannel = Auto
        client signing = default
        client use spnego principal = No
        dedicated keytab file         encrypt passwords = Yes
        guest account = nobody
        kerberos method = default
        kpasswd port = 464
        krb5 port = 88
        lanman auth = No
        log nt token command         map to guest = Bad User
        map untrusted to domain = No
        ntlm auth = Yes
        ntp signd socket directory = /var/lib/samba/ntp_signd
        null passwords = No
        obey pam restrictions = No
        old password allowed period = 60
        pam password change = No
        passdb backend = tdbsam
        passdb expand explicit = No
        passwd chat = *new*password* %n\n *new*password* %n\n *changed*
        passwd chat debug = No
        passwd chat timeout = 2
        passwd program         password server = *
        preload modules         private dir = /var/lib/samba/private
        raw NTLMv2 auth = No
        rename user script         restrict anonymous = 0
        root directory         samba kcc command = /usr/sbin/samba_kcc
        security = ADS
        server role = member server
        server schannel = Auto
        server signing = default
        smb passwd file = /var/lib/samba/private/smbpasswd
        tls cafile = tls/ca.pem
        tls certfile = tls/cert.pem
        tls crlfile         tls dh params file         tls enabled = Yes
        tls keyfile = tls/key.pem
        tls priority = NORMAL:-VERS-SSL3.0
        tls verify peer = as_strict_as_possible
        unix password sync = No
        username level = 0
        username map         username map cache time = 0
        username map script         aio max threads = 100
        deadtime = 0
        getwd cache = Yes
        hostname lookups = No
        keepalive = 300
        max disk size = 0
        max open files = 16384
        max smbd processes = 0
        name cache timeout = 660
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        use mmap = Yes
        get quota command         host msdfs = Yes
        set quota command         create krb5 conf = Yes
        idmap backend = tdb
        idmap cache time = 604800
        idmap gid         idmap negative cache time = 120
        idmap uid         neutralize nt4 emulation = No
        reject md5 servers = No
        require strong key = Yes
        template homedir = /home/%D/%U
        template shell = /bin/false
        winbind cache time = 300
        winbindd privileged socket directory /var/lib/samba/winbindd_privileged
        winbindd socket directory = /var/run/samba/winbindd
        winbind enum groups = Yes
        winbind enum users = Yes
        winbind expand groups = 0
        winbind max clients = 200
        winbind max domain connections = 1
        winbind nested groups = Yes
        winbind normalize names = No
        winbind nss info = template
        winbind offline logon = No
        winbind reconnect delay = 30
        winbind refresh tickets = Yes
        winbind request timeout = 200
        winbind rpc only = No
        winbind sealed pipes = Yes
        winbind separator = \
        winbind trusted domains only = No
        winbind use default domain = No
        dns proxy = Yes
        wins hook         wins proxy = No
        wins server         wins support = No
        idmap config * : rangesize = 1000000
        idmap config * : range = 1000000-19999999
        shadow: localtime = yes
        shadow: format = autosnap_%Y-%m-%d-%H%M%S
        shadow: sort = desc
        shadow: snapdir = .zfs/snapshot
        fileid:mapping = fsid
        idmap config * : backend = autorid
        comment         path         administrative share = No
        browseable = Yes
        case sensitive = Auto
        default case = lower
        delete veto files = No
        hide dot files = Yes
        hide files         hide special files = No
        hide unreadable = No
        hide unwriteable files = No
        mangled names = Yes
        mangling char = ~
        map archive = Yes
        map hidden = No
        map readonly = yes
        map system = No
        preserve case = Yes
        short preserve case = Yes
        store dos attributes = Yes
        veto files
/.nfs/._.DS_Store/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/:2eDS_Store/.DS_Store/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary
Items/Network Trash
Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon?/.Ap$
        veto oplock files         blocking locks = Yes
        csc policy = manual
        fake oplocks = No
        kernel oplocks = Yes
        kernel share modes = Yes
        level2 oplocks = Yes
        locking = Yes
        oplock contention limit = 2
        oplocks = Yes
        posix locking = Yes
        strict locking = Auto
        afs share = No
        available = Yes
        copy         delete readonly = No
        dfree cache time = 0
        dfree command         directory name cache size = 100
        dmapi support = No
        dont descend         dos filemode = No
        dos filetime resolution = No
        dos filetimes = Yes
        fake directory create times = No
        follow symlinks = Yes
        fstype = NTFS
        include = /var/nasconf/nas/smb/Pools/Pool-0
        magic output         magic script         postexec         preexec      
preexec close = No
        root postexec         root preexec         root preexec close = No
        spotlight = No
        volume         wide links = No
        cups options         default devmode = Yes
        force printername = No
        lppause command         lpq command = lpq -P'%p'
        lpresume command         lprm command = lprm -P'%p' %j
        max print jobs = 1000
        max reported print jobs = 0
        printable = No
        print command = lpr -r -P'%p' %s
        printer name         printing = bsd
        printjob username = %U
        print notify backchannel = No
        queuepause command         queueresume command         use client driver
= No
        acl allow execute always = No
        acl check permissions = Yes
        acl map full control = Yes
        durable handles = Yes
        ea support = No
        map acl inherit = No
        nt acl support = Yes
        profile acls = No
        access based share enum = No
        acl group control = No
        admin users = RES+administrator
        create mask = 0744
        directory mask = 0755
        force create mode = 0000
        force directory mode = 0000
        force group         force unknown acl user = Yes
        force user         guest ok = No
        guest only = No
        hosts allow         hosts deny         inherit acls = No
        inherit owner = No
        inherit permissions = No
        invalid users = root
        only user = No
        read list         read only = Yes
        smb encrypt = default
        username         valid users         write list         aio read size =
0
        aio write behind         aio write size = 0
        allocation roundup size = 1048576
        block size = 1024
        max connections = 0
        min print space = 0
        strict allocate = No
        strict rename = No
        strict sync = No
        sync always = No
        use sendfile = No
        write cache size = 0
        msdfs proxy         msdfs root = No
        msdfs shuffle referrals = No
        ntvfs handler = unixuid, default
        vfs objects = acl_xattr shadow_copy2 fileid
[s1]
        path = /Pools/Pool-0/d1/s1
        case sensitive = No
        map acl inherit = Yes
        guest ok = Yes
        guest only = Yes
        inherit permissions = Yes
        read only = No
*Samba logs:*
[2016/08/04 15:52:32.050297,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088297
[2016/08/04 15:52:32.050822,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.160.5 (192.168.160.5)
[2016/08/04 15:52:32.050897,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.052771,  3]
../source3/smbd/service.c:614(make_connection_snum)
  Connect path is '/tmp' for service [IPC$]
[2016/08/04 15:52:32.052852,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.054186,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2016/08/04 15:52:32.054284,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2016/08/04 15:52:32.054325,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [fileid]
[2016/08/04 15:52:32.057787,  2]
../lib/util/modules.c:196(do_smb_load_module)
  Module 'fileid' loaded
[2016/08/04 15:52:32.057850,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [shadow_copy2]
[2016/08/04 15:52:32.060852,  2]
../lib/util/modules.c:196(do_smb_load_module)
  Module 'shadow_copy2' loaded
[2016/08/04 15:52:32.060914,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [acl_xattr]
[2016/08/04 15:52:32.063903,  2]
../lib/util/modules.c:196(do_smb_load_module)
  Module 'acl_xattr' loaded
[2016/08/04 15:52:32.064037,  2]
../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr)
  connect_acl_xattr: setting 'inherit acls = true' 'dos filemode =
true'
and 'force unknown acl user = true' for service IPC$
[2016/08/04 15:52:32.064228,  3]
../source3/smbd/oplock_linux.c:251(linux_init_kernel_oplocks)
  Linux kernel oplocks enabled
[2016/08/04 15:52:32.064310,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.065553,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID RES+administrator is not in a valid format
[2016/08/04 15:52:32.067951,  3]
../source3/smbd/service.c:864(make_connection_snum)
  cezik2 (ipv4:192.168.160.5:56300) connect to service IPC$ initially as
user RES\cezik2$ (uid=2002208, gid=2000515) (pid 48013)
[2016/08/04 15:52:32.068280,  3]
../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
  Got user=[Administrator] domain=[RES] workstation=[CEZIK2] len1=24
len2=232
[2016/08/04 15:52:32.068386,  3]
../source3/param/loadparm.c:3742(lp_load_ex)
  lp_load_ex: refreshing parameters
[2016/08/04 15:52:32.068561,  3]
../source3/param/loadparm.c:544(init_globals)
  Initialising global parameters
[2016/08/04 15:52:32.068804,  3]
../source3/param/loadparm.c:2671(lp_do_section)
  Processing section "[global]"
[2016/08/04 15:52:32.070306,  2]
../source3/param/loadparm.c:2688(lp_do_section)
  Processing section "[s1]"
[2016/08/04 15:52:32.070775,  3]
../source3/param/loadparm.c:1588(lp_add_ipc)
  adding IPC service
[2016/08/04 15:52:32.071078,  3]
../source3/auth/auth.c:178(auth_check_ntlm_password)
  check_ntlm_password:  Checking password for unmapped user
[RES]\[Administrator]@[CEZIK2] with the new password interface
[2016/08/04 15:52:32.071125,  3]
../source3/auth/auth.c:181(auth_check_ntlm_password)
  check_ntlm_password:  mapped user is: [RES]\[Administrator]@[CEZIK2]
[2016/08/04 15:52:32.079161,  3]
../source3/auth/auth.c:249(auth_check_ntlm_password)
  check_ntlm_password: winbind authentication for user [Administrator]
succeeded
[2016/08/04 15:52:32.079257,  2]
../source3/auth/auth.c:305(auth_check_ntlm_password)
  check_ntlm_password:  authentication for user [Administrator] ->
[Administrator] -> [RES\administrator] succeeded
[2016/08/04 15:52:32.080871,  3]
../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
  NTLMSSP Sign/Seal - Initialising with flags:
[2016/08/04 15:52:32.080932,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088215
[2016/08/04 15:52:32.081027,  3]
../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
  NTLMSSP Sign/Seal - Initialising with flags:
[2016/08/04 15:52:32.081062,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088215
[2016/08/04 15:52:32.083056,  3]
../source3/smbd/password.c:144(register_homes_share)
  Adding homes service for user 'RES\administrator' using home
directory:
'/home/RES/administrator'
[2016/08/04 15:52:32.084607,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.160.5 (192.168.160.5)
[2016/08/04 15:52:32.084746,  3]
../source3/smbd/service.c:614(make_connection_snum)
  Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
[2016/08/04 15:52:32.084804,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.086029,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2016/08/04 15:52:32.086094,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2016/08/04 15:52:32.086133,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [fileid]
[2016/08/04 15:52:32.086166,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [shadow_copy2]
[2016/08/04 15:52:32.086199,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [acl_xattr]
[2016/08/04 15:52:32.086306,  2]
../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr)
  connect_acl_xattr: setting 'inherit acls = true' 'dos filemode =
true'
and 'force unknown acl user = true' for service s1
[2016/08/04 15:52:32.086527,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.087881,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID RES+administrator is not in a valid format
[2016/08/04 15:52:32.090417,  2]
../source3/smbd/service.c:864(make_connection_snum)
  cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as user
nobody (uid=65534, gid=65534) (pid 48013)
[2016/08/04 15:52:32.090689,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.160.5 (192.168.160.5)
[2016/08/04 15:52:32.090758,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.092053,  3]
../source3/smbd/service.c:614(make_connection_snum)
  Connect path is '/tmp' for service [IPC$]
[2016/08/04 15:52:32.092121,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.093299,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2016/08/04 15:52:32.093350,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2016/08/04 15:52:32.093395,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [fileid]
[2016/08/04 15:52:32.093429,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [shadow_copy2]
[2016/08/04 15:52:32.093462,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [acl_xattr]
[2016/08/04 15:52:32.093547,  2]
../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr)
  connect_acl_xattr: setting 'inherit acls = true' 'dos filemode =
true'
and 'force unknown acl user = true' for service IPC$
[2016/08/04 15:52:32.093699,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.094882,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID RES+administrator is not in a valid format
[2016/08/04 15:52:32.097096,  3]
../source3/smbd/service.c:864(make_connection_snum)
  cezik2 (ipv4:192.168.160.5:56300) connect to service IPC$ initially as
user RES\administrator (uid=2000500, gid=2000513) (pid 48013)
[2016/08/04 15:52:32.097384,  3]
../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |s1| in dfs path \192.168.170.38\s1 is not a dfs root.
[2016/08/04 15:52:32.097448,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2016/08/04 15:52:32.100863,  2] ../source3/smbd/dosmode.c:136(unix_mode)
  unix_mode(desktop.ini) inheriting from .
[2016/08/04 15:52:32.100951,  2] ../source3/smbd/dosmode.c:158(unix_mode)
  unix_mode(desktop.ini) inherit mode 40777
[2016/08/04 15:52:32.101042,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
../source3/smbd/smb2_create.c:293
[2016/08/04 15:52:32.101261,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.160.5 (192.168.160.5)
[2016/08/04 15:52:32.101390,  3]
../source3/smbd/service.c:614(make_connection_snum)
  Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
[2016/08/04 15:52:32.101448,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.102776,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2016/08/04 15:52:32.102840,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2016/08/04 15:52:32.102880,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [fileid]
[2016/08/04 15:52:32.102912,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [shadow_copy2]
[2016/08/04 15:52:32.102945,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [acl_xattr]
[2016/08/04 15:52:32.103053,  2]
../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr)
  connect_acl_xattr: setting 'inherit acls = true' 'dos filemode =
true'
and 'force unknown acl user = true' for service s1
[2016/08/04 15:52:32.103233,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:32.104527,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID RES+administrator is not in a valid format
[2016/08/04 15:52:32.106936,  2]
../source3/smbd/service.c:864(make_connection_snum)
  cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as user
nobody (uid=65534, gid=65534) (pid 48013)
[2016/08/04 15:52:32.107169,  3]
../source3/smbd/smb2_notify.c:250(smbd_smb2_notify_send)
  smbd_smb2_notify_send: notify change called on ., filter
FILE_NAME|DIR_NAME|ATTRIBUTES|LAST_WRITE, recursive = 0
[2016/08/04 15:52:32.107522,  3]
../source3/smbd/msdfs.c:993(get_referred_path)
  get_referred_path: |s1| in dfs path \192.168.170.38\s1 is not a dfs root.
[2016/08/04 15:52:32.107582,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
[2016/08/04 15:52:32.107874,  2] ../source3/smbd/dosmode.c:136(unix_mode)
  unix_mode(.) inheriting from .
[2016/08/04 15:52:32.107933,  2] ../source3/smbd/dosmode.c:158(unix_mode)
  unix_mode(.) inherit mode 40777
[2016/08/04 15:52:32.108704,  3] ../source3/smbd/dir.c:629(dptr_create)
  creating new dirptr 0 for path ., expect_close = 0
[2016/08/04 15:52:32.108837,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found . fname=. (.)
[2016/08/04 15:52:32.108950,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
[2016/08/04 15:52:32.109661,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found ondss fname=ondss (ondss)
[2016/08/04 15:52:32.109856,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found New folder fname=New folder (New
folder)
[2016/08/04 15:52:32.110115,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
status[STATUS_NO_MORE_FILES] || at
../source3/smbd/smb2_query_directory.c:154
[2016/08/04 15:52:32.111645,  3]
../source3/smbd/trans2.c:3347(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 1007
[2016/08/04 15:52:32.112208,  3]
../source3/lib/sysquotas.c:433(sys_get_quota)
  sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
qtype[2] id[65534]: No such file or directory
[2016/08/04 15:52:32.112656,  3]
../source3/lib/sysquotas.c:433(sys_get_quota)
  sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
qtype[4] id[65534]: No such file or directory
[2016/08/04 15:52:32.112996,  2] ../source3/smbd/open.c:3450(open_directory)
  open_directory: unable to create ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058. Error was
NT_STATUS_OBJECT_NAME_COLLISION
[2016/08/04 15:52:32.113060,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_COLLISION] || at
../source3/smbd/smb2_create.c:293
[2016/08/04 15:52:32.122030,  2] ../source3/smbd/dosmode.c:136(unix_mode)
  unix_mode(ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv)
inheriting from ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058
[2016/08/04 15:52:32.122108,  2] ../source3/smbd/dosmode.c:158(unix_mode)
  unix_mode(ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv)
inherit mode 40775
[2016/08/04 15:52:32.123389,  2] ../source3/smbd/open.c:1006(open_file)
  nobody opened file ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv
read=Yes write=Yes (numopen=1)
[2016/08/04 15:52:32.124258,  3]
../source3/smbd/oplock_linux.c:155(linux_set_kernel_oplock)
  linux_set_kernel_oplock: got kernel oplock on file ondss/New Virtual
Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv,
file_id = 800d0a1944a538:12e:0 gen_id = 1868341241
[2016/08/04 15:52:32.127121,  2]
../source3/modules/vfs_default.c:1404(vfswrap_fsctl)
  vfswrap_fsctl (0x1401d4): Currently not implemented.
[2016/08/04 15:52:32.127192,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_INVALID_DEVICE_REQUEST] || at
../source3/smbd/smb2_ioctl.c:309
[2016/08/04 15:52:32.127909,  3]
../source3/smbd/reply.c:8105(smbd_do_locking)
  smbd_do_locking: fnum 910886817 type=0 num_locks=1
[2016/08/04 15:52:32.128929,  3]
../source3/smbd/trans2.c:3347(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 1007
[2016/08/04 15:52:32.129447,  3]
../source3/lib/sysquotas.c:433(sys_get_quota)
  sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
qtype[2] id[65534]: No such file or directory
[2016/08/04 15:52:32.129879,  3]
../source3/lib/sysquotas.c:433(sys_get_quota)
  sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
qtype[4] id[65534]: No such file or directory
[2016/08/04 15:52:32.130074,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_NOT_SUPPORTED] || at ../source3/smbd/smb2_ioctl.c:309
[2016/08/04 15:52:32.131922,  3]
../source3/smbd/trans2.c:3347(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 1001
[2016/08/04 15:52:32.132053,  3]
../source3/smbd/trans2.c:3347(smbd_do_qfsinfo)
  smbd_do_qfsinfo: level = 1005
[2016/08/04 15:52:32.132263,  3]
../source3/smbd/reply.c:8149(smbd_do_unlocking)
  smbd_do_unlocking: fnum 910886817 num_ulocks=1
[2016/08/04 15:52:32.133149,  2]
../source3/smbd/close.c:780(close_normal_file)
  nobody closed file ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv
(numopen=0) NT_STATUS_OK
[2016/08/04 15:52:32.723171,  3] ../source3/smbd/dir.c:629(dptr_create)
  creating new dirptr 0 for path ., expect_close = 0
[2016/08/04 15:52:32.723374,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found . fname=. (.)
[2016/08/04 15:52:32.723489,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
[2016/08/04 15:52:32.723758,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found ondss fname=ondss (ondss)
[2016/08/04 15:52:32.723934,  3]
../source3/smbd/dir.c:1188(smbd_dirptr_get_entry)
  smbd_dirptr_get_entry mask=[*] found New folder fname=New folder (New
folder)
[2016/08/04 15:52:32.724134,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
status[STATUS_NO_MORE_FILES] || at
../source3/smbd/smb2_query_directory.c:154
[2016/08/04 15:52:43.905087,  3] ../source3/smbd/service.c:1140(close_cnum)
  cezik2 (ipv4:192.168.160.5:56300) closed connection to service IPC$
[2016/08/04 15:52:43.905486,  3] ../source3/smbd/service.c:1140(close_cnum)
  cezik2 (ipv4:192.168.160.5:56300) closed connection to service IPC$
[2016/08/04 15:52:43.905821,  2] ../source3/smbd/service.c:1140(close_cnum)
  cezik2 (ipv4:192.168.160.5:56300) closed connection to service s1
[2016/08/04 15:52:51.398356,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088297
[2016/08/04 15:52:51.399915,  3]
../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
  Got user=[CEZIK2$] domain=[RES] workstation=[CEZIK2] len1=24 len2=232
[2016/08/04 15:52:51.400059,  3]
../source3/param/loadparm.c:3742(lp_load_ex)
  lp_load_ex: refreshing parameters
[2016/08/04 15:52:51.400221,  3]
../source3/param/loadparm.c:544(init_globals)
  Initialising global parameters
[2016/08/04 15:52:51.400472,  3]
../source3/param/loadparm.c:2671(lp_do_section)
  Processing section "[global]"
[2016/08/04 15:52:51.401973,  2]
../source3/param/loadparm.c:2688(lp_do_section)
  Processing section "[s1]"
[2016/08/04 15:52:51.402442,  3]
../source3/param/loadparm.c:1588(lp_add_ipc)
  adding IPC service
[2016/08/04 15:52:51.402825,  3]
../source3/auth/auth.c:178(auth_check_ntlm_password)
  check_ntlm_password:  Checking password for unmapped user
[RES]\[CEZIK2$]@[CEZIK2] with the new password interface
[2016/08/04 15:52:51.402895,  3]
../source3/auth/auth.c:181(auth_check_ntlm_password)
  check_ntlm_password:  mapped user is: [RES]\[CEZIK2$]@[CEZIK2]
[2016/08/04 15:52:51.406153,  3]
../source3/auth/auth.c:249(auth_check_ntlm_password)
  check_ntlm_password: winbind authentication for user [CEZIK2$] succeeded
[2016/08/04 15:52:51.406252,  2]
../source3/auth/auth.c:305(auth_check_ntlm_password)
  check_ntlm_password:  authentication for user [CEZIK2$] -> [CEZIK2$] ->
[RES\cezik2$] succeeded
[2016/08/04 15:52:51.407632,  3]
../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
  NTLMSSP Sign/Seal - Initialising with flags:
[2016/08/04 15:52:51.407691,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088215
[2016/08/04 15:52:51.407760,  3]
../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
  NTLMSSP Sign/Seal - Initialising with flags:
[2016/08/04 15:52:51.407793,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088215
[2016/08/04 15:52:51.409209,  3]
../source3/smbd/password.c:144(register_homes_share)
  Adding homes service for user 'RES\cezik2$' using home directory:
'/home/RES/cezik2_'
[2016/08/04 15:52:51.410244,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.160.5 (192.168.160.5)
[2016/08/04 15:52:51.410401,  3]
../source3/smbd/service.c:614(make_connection_snum)
  Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
[2016/08/04 15:52:51.410464,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:51.411891,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2016/08/04 15:52:51.411956,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2016/08/04 15:52:51.411995,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [fileid]
[2016/08/04 15:52:51.412028,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [shadow_copy2]
[2016/08/04 15:52:51.412061,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [acl_xattr]
[2016/08/04 15:52:51.412181,  2]
../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr)
  connect_acl_xattr: setting 'inherit acls = true' 'dos filemode =
true'
and 'force unknown acl user = true' for service s1
[2016/08/04 15:52:51.412357,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/04 15:52:51.413673,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID RES+administrator is not in a valid format
[2016/08/04 15:52:51.416348,  2]
../source3/smbd/service.c:864(make_connection_snum)
  cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as user
nobody (uid=65534, gid=65534) (pid 48013)
[2016/08/04 15:52:51.418626,  2] ../source3/smbd/dosmode.c:136(unix_mode)
  unix_mode(ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml) inheriting from
ondss/New Virtual Machine/Virtual Machines
[2016/08/04 15:52:51.418701,  2] ../source3/smbd/dosmode.c:158(unix_mode)
  unix_mode(ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml) inherit mode 40775
[2016/08/04 15:52:51.419122,  2] ../source3/smbd/open.c:1006(open_file)
  nobody opened file ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml read=Yes write=Yes
(numopen=1)
[2016/08/04 15:52:51.419273,  3]
../source3/smbd/oplock_linux.c:155(linux_set_kernel_oplock)
  linux_set_kernel_oplock: got kernel oplock on file ondss/New Virtual
Machine/Virtual Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml, file_id
= 800d0a1944a538:113:0 gen_id = 260526076
Thank you in advance!
Best Regards.
Adam Blaszczykowski
Rowland Penny
2016-Aug-04  14:47 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
On Thu, 4 Aug 2016 16:16:16 +0200 Adam Błaszczykowski <adam.blaszczykowski at gmail.com> wrote:> Hello, > I have problem with Samba 4.4.3. I'd like to use SMB 3.02 file shares > as shared storage for Hyper-V in Windows Server 2012 R2. I am able to > create Virtual Machine on Samba share using guest access, but when I > try to start VM I'm getting the following error: > > "An error occurred while attempting to start the selected virtual > machine(s). > 'New Virtual Machine' could not initialize. > An attempt to initialize VM saved state failed. > 'New Virtual Machine' could not initialize. (Virtual machine ID > 70BB2BD1-B168-4944-9EEF-A665531EC058) > 'New Virtual Machine' could not create or access saved state file...' > " > > What do I need to change in Samba configuration to solve this > problem ? Please check my logs and configuration: >No, sorry but my eyes glazed over after the first twenty lines of your smb.conf, can you try again and send your smb.conf again, but this time, just send what you get with 'cat /path/to/smb.conf' Rowland
Rowland Penny
2016-Aug-05  07:50 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
On Fri, 5 Aug 2016 08:38:09 +0200 Adam Błaszczykowski <adam.blaszczykowski at gmail.com> wrote:> ok sorry for that, now should be ok :-D > > *smb.conf:* > [global] > workgroup = RES > netbios name = dsshp2 > vfs objects = acl_xattr shadow_copy2 fileid > fileid:mapping = fsid > encrypt passwords = yes > domain logons = no > log level = 3 > log file = /var/log/samba/log.%m > max log size = 6000 > socket options = TCP_NODELAY IPTOS_LOWDELAY > os level = 0 > local master = no > locking = yes > preferred master = no > domain master = no > invalid users = root > guest account = nobody > map to guest = Bad User > wide links = no > force unknown acl user = yes > winbind enum users = yes > winbind enum groups = yes > winbind refresh tickets = yes > winbind request timeout = 200 > printcap cache time = 0 > passdb backend = tdbsam > unix extensions = no > server max protocol = SMB3 > shadow: snapdir = .zfs/snapshot > shadow: sort = desc > shadow: format = autosnap_%Y-%m-%d-%H%M%S > shadow: localtime = yes > kernel oplocks = yes > store dos attributes = yes > veto files > /.nfs/._.DS_Store/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/:2eDS_Store/.DS_Store/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary > Items/Network Trash > Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon?/.Ap$ > wins server > admin users = "RES+administrator" > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > idmap config * : rangesize = 1000000 > security = ads > server role = member > realm = RES.LOCAL > workgroup = RES > allow trusted domains = yes > [s1] > short preserve case=yes > inherit owner=no > valid users> case sensitive=no > map acl inherit=yes > guest ok=yes > preserve case=yes > inherit permissions=yes > default case=lower > path=/Pools/Pool-0/d1/s1 > read only=no > guest only=yes > access based share enum=no > writeable=yes > public=yes >Lets start here: admin users = "RES+administrator" You seem to be using '+' as the winbind separator, but the default is '\' and I cannot see this line ' winbind separator = +' in your smb.conf. You should also probably map 'Administrator' to 'root' with a usermap. Next your AD users & groups, you have this: idmap config * : backend = autorid idmap config * : range = 1000000-19999999 idmap config * : rangesize = 1000000 The '*' range is for the BUILTIN users & groups etc, you do not seem to have anywhere to map your normal users. Can I suggest you have a look here: https://wiki.samba.org/index.php/Setup_Samba_as_an_AD_Domain_Member There are other minor things I would change, but the above are the main ones. Could you also please keep your posts on list. Rowland
Steve Ankeny
2016-Aug-05  08:47 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
On 08/05/2016 03:50 AM, Rowland Penny wrote:> On Fri, 5 Aug 2016 08:38:09 +0200 > Adam Błaszczykowski <adam.blaszczykowski at gmail.com> wrote: > >> ok sorry for that, now should be ok :-D >> >> *smb.conf:* >> [global] >> workgroup = RES >> netbios name = dsshp2 >> vfs objects = acl_xattr shadow_copy2 fileid >> fileid:mapping = fsid >> encrypt passwords = yes >> domain logons = no >> log level = 3 >> log file = /var/log/samba/log.%m >> max log size = 6000 >> socket options = TCP_NODELAY IPTOS_LOWDELAY >> os level = 0 >> local master = no >> locking = yes >> preferred master = no >> domain master = no >> invalid users = root >> guest account = nobody >> map to guest = Bad User >> wide links = no >> force unknown acl user = yes >> winbind enum users = yes >> winbind enum groups = yes >> winbind refresh tickets = yes >> winbind request timeout = 200 >> printcap cache time = 0 >> passdb backend = tdbsam >> unix extensions = no >> server max protocol = SMB3 >> shadow: snapdir = .zfs/snapshot >> shadow: sort = desc >> shadow: format = autosnap_%Y-%m-%d-%H%M%S >> shadow: localtime = yes >> kernel oplocks = yes >> store dos attributes = yes >> veto files >> /.nfs/._.DS_Store/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/:2eDS_Store/.DS_Store/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary >> Items/Network Trash >> Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon?/.Ap$ >> wins server >> admin users = "RES+administrator" >> idmap config * : backend = autorid >> idmap config * : range = 1000000-19999999 >> idmap config * : rangesize = 1000000 >> security = ads >> server role = member >> realm = RES.LOCAL >> workgroup = RES >> allow trusted domains = yes >> [s1] >> short preserve case=yes >> inherit owner=no >> valid users>> case sensitive=no >> map acl inherit=yes >> guest ok=yes >> preserve case=yes >> inherit permissions=yes >> default case=lower >> path=/Pools/Pool-0/d1/s1 >> read only=no >> guest only=yes >> access based share enum=no >> writeable=yes >> public=yes >> > Lets start here: > admin users = "RES+administrator" > > You seem to be using '+' as the winbind separator, but the default is > '\' and I cannot see this line ' winbind separator = +' in your > smb.conf. You should also probably map 'Administrator' to 'root' with a > usermap. > > Next your AD users & groups, you have this: > > idmap config * : backend = autorid > idmap config * : range = 1000000-19999999 > idmap config * : rangesize = 1000000 > > The '*' range is for the BUILTIN users & groups etc, you do not seem to > have anywhere to map your normal users. Can I suggest you have a look > here: > https://wiki.samba.org/index.php/Setup_Samba_as_an_AD_Domain_Member > > There are other minor things I would change, but the above are the main > ones. > > Could you also please keep your posts on list. > > Rowland >What about the use of 'realm = RES.LOCAL'?
Adam Błaszczykowski
2016-Aug-09  08:53 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
Hello,
As you said, I have changed Samba configuration and reconfigure Active
Directory domain, but still the same problem, I cannot start Hyper-V
Virtual Machine stored on Samba shares.
*# cat /etc/samba/smb.conf*[global]
    workgroup = RES
    netbios name = dsshp2
    vfs objects = acl_xattr shadow_copy2 fileid
    fileid:mapping = fsid
    encrypt passwords = yes
    domain logons = no
    log level = 3
    syslog = 0
    max log size = 6000
    socket options = TCP_NODELAY IPTOS_LOWDELAY
    os level = 0
    local master = no
    locking = yes
    preferred master = no
    domain master = no
    invalid users = root
    guest account = nobody
    map to guest = Bad User
    wide links = no
    force unknown acl user = yes
    winbind separator = \
    winbind enum users = yes
    winbind enum groups = yes
    winbind refresh tickets = yes
    winbind request timeout = 200
    printcap cache time = 0
    passdb backend = tdbsam
    unix extensions = no
    server max protocol = SMB3
    shadow: snapdir = .zfs/snapshot
    shadow: sort = desc
    shadow: format = autosnap_%Y-%m-%d-%H%M%S
    shadow: localtime = yes
    kernel oplocks = yes
    store dos attributes = yes
    veto files
/.nfs/._.DS_Store/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/:2eDS_Store/.DS_Store/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary
Items/Network Trash
Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon?/.Ap$
    wins server     admin users = "RES\administrator"
    security = ads
    server role = member
    realm = RES.LAN
    workgroup = RES
    allow trusted domains = yes
    idmap config * : backend = autorid
    idmap config * : range = 1000000-19999999
    idmap config * : rangesize = 1000000
    idmap config RES : backend = autorid
    idmap config RES : range = 2000000-29999999
    idmap config RES : rangesize = 1000000
[s1]
    short preserve case=yes
    inherit owner=no
    valid users    case sensitive=no
    map acl inherit=yes
    guest ok=yes
    preserve case=yes
    inherit permissions=yes
    default case=lower
    path=/Pools/Pool-0/d1/s1
    read only=no
    guest only=yes
    access based share enum=no
    writeable=yes
    public=yes
*# cat /var/log/samba/log.smbd*[2016/08/09 10:33:42.735614,  3]
../source3/smbd/smb2_write.c:212(smb2_write_complete_internal)
  smb2: fnum 722899260, file New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml, length=39920 offset=0
wrote=39920
[2016/08/09 10:33:42.737495,  3]
../source3/smbd/trans2.c:8298(smbd_do_setfilepathinfo)
  smbd_do_setfilepathinfo: New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml (fnum 722899260)
info_level=1004 totdata=40
[2016/08/09 10:33:43.153384,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088297
[2016/08/09 10:33:43.154649,  3]
../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
  Got user=[HP3$] domain=[RES] workstation=[HP3] len1=24 len2=232
[2016/08/09 10:33:43.154761,  3]
../source3/param/loadparm.c:3742(lp_load_ex)
  lp_load_ex: refreshing parameters
[2016/08/09 10:33:43.154914,  3]
../source3/param/loadparm.c:544(init_globals)
  Initialising global parameters
[2016/08/09 10:33:43.155142,  3]
../source3/param/loadparm.c:2671(lp_do_section)
  Processing section "[global]"
[2016/08/09 10:33:43.155325,  1]
../lib/param/loadparm.c:1729(lpcfg_do_global_parameter)
  WARNING: The "syslog" option is deprecated
[2016/08/09 10:33:43.156650,  2]
../source3/param/loadparm.c:2688(lp_do_section)
  Processing section "[s1]"
[2016/08/09 10:33:43.157108,  3]
../source3/param/loadparm.c:1588(lp_add_ipc)
  adding IPC service
[2016/08/09 10:33:43.157456,  3]
../source3/auth/auth.c:178(auth_check_ntlm_password)
  check_ntlm_password:  Checking password for unmapped user
[RES]\[HP3$]@[HP3] with the new password interface
[2016/08/09 10:33:43.157518,  3]
../source3/auth/auth.c:181(auth_check_ntlm_password)
  check_ntlm_password:  mapped user is: [RES]\[HP3$]@[HP3]
[2016/08/09 10:33:43.161026,  3]
../source3/auth/auth.c:249(auth_check_ntlm_password)
  check_ntlm_password: winbind authentication for user [HP3$] succeeded
[2016/08/09 10:33:43.161119,  2]
../source3/auth/auth.c:305(auth_check_ntlm_password)
  check_ntlm_password:  authentication for user [HP3$] -> [HP3$] ->
[RES\hp3$] succeeded
[2016/08/09 10:33:43.162465,  3]
../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
  NTLMSSP Sign/Seal - Initialising with flags:
[2016/08/09 10:33:43.162518,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088215
[2016/08/09 10:33:43.162579,  3]
../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
  NTLMSSP Sign/Seal - Initialising with flags:
[2016/08/09 10:33:43.162606,  3]
../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
  Got NTLMSSP neg_flags=0xe2088215
[2016/08/09 10:33:43.164012,  3]
../source3/smbd/password.c:144(register_homes_share)
  Adding homes service for user 'RES\hp3$' using home directory:
'/home/RES/hp3_'
[2016/08/09 10:33:43.164989,  3] ../source3/lib/access.c:338(allow_access)
  Allowed connection from 192.168.170.43 (192.168.170.43)
[2016/08/09 10:33:43.165134,  3]
../source3/smbd/service.c:614(make_connection_snum)
  Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
[2016/08/09 10:33:43.165185,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/09 10:33:43.166581,  3] ../source3/smbd/vfs.c:113(vfs_init_default)
  Initialising default vfs hooks
[2016/08/09 10:33:43.166638,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [/[Default VFS]/]
[2016/08/09 10:33:43.166673,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [fileid]
[2016/08/09 10:33:43.166701,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [shadow_copy2]
[2016/08/09 10:33:43.166728,  3] ../source3/smbd/vfs.c:139(vfs_init_custom)
  Initialising custom vfs hooks from [acl_xattr]
[2016/08/09 10:33:43.166829,  2]
../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr)
  connect_acl_xattr: setting 'inherit acls = true' 'dos filemode =
true'
and 'force unknown acl user = true' for service s1
[2016/08/09 10:33:43.166984,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID root is not in a valid format
[2016/08/09 10:33:43.168317,  3]
../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
  string_to_sid: SID RES\administrator is not in a valid format
[2016/08/09 10:33:43.168930,  2]
../source3/smbd/service.c:864(make_connection_snum)
  hp3 (ipv4:192.168.170.43:49224) connect to service s1 initially as user
nobody (uid=65534, gid=65534) (pid 25315)
[2016/08/09 10:33:43.170564,  2] ../source3/smbd/open.c:3450(open_directory)
  open_directory: unable to create New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6. Error was
NT_STATUS_OBJECT_NAME_COLLISION
[2016/08/09 10:33:43.170633,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_OBJECT_NAME_COLLISION] || at
../source3/smbd/smb2_create.c:293
[2016/08/09 10:33:43.171837,  2] ../source3/smbd/dosmode.c:136(unix_mode)
  unix_mode(New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-BC452ECB48F6.vsv)
inheriting from New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6
[2016/08/09 10:33:43.171905,  2] ../source3/smbd/dosmode.c:158(unix_mode)
  unix_mode(New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-BC452ECB48F6.vsv)
inherit mode 40775
[2016/08/09 10:33:43.173073,  2] ../source3/smbd/open.c:1006(open_file)
  nobody opened file New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-BC452ECB48F6.vsv
read=Yes write=Yes (numopen=1)
[2016/08/09 10:33:43.173787,  3]
../source3/smbd/oplock_linux.c:155(linux_set_kernel_oplock)
  linux_set_kernel_oplock: got kernel oplock on file New Virtual
Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-BC452ECB48F6.vsv,
file_id = 800d0a1944a538:16b:0 gen_id = 1659754116
[2016/08/09 10:33:43.175736,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_INVALID_DEVICE_REQUEST] || at
../source3/smbd/smb2_ioctl.c:309
[2016/08/09 10:33:43.176425,  3]
../source3/smbd/reply.c:8105(smbd_do_locking)
  smbd_do_locking: fnum 1384394557 type=0 num_locks=1
[2016/08/09 10:33:43.177077,  3]
../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
status[NT_STATUS_NOT_SUPPORTED] || at ../source3/smbd/smb2_ioctl.c:309
[2016/08/09 10:33:43.177746,  3]
../source3/smbd/reply.c:8149(smbd_do_unlocking)
  smbd_do_unlocking: fnum 1384394557 num_ulocks=1
[2016/08/09 10:33:43.178461,  2]
../source3/smbd/close.c:780(close_normal_file)
  nobody closed file New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-BC452ECB48F6.vsv
(numopen=0) NT_STATUS_OK
[2016/08/09 10:33:43.185323,  3]
../source3/smbd/smb2_write.c:212(smb2_write_complete_internal)
  smb2: fnum 722899260, file New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml, length=39920 offset=0
wrote=39920
[2016/08/09 10:33:43.186442,  3]
../source3/smbd/trans2.c:8298(smbd_do_setfilepathinfo)
  smbd_do_setfilepathinfo: New Virtual Machine/Virtual
Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml (fnum 722899260)
info_level=1004 totdata=40
[2016/08/09 10:33:53.996668,  2] ../source3/smbd/service.c:1140(close_cnum)
  hp3 (ipv4:192.168.170.43:49224) closed connection to service s1
[2016/08/09 10:42:48.417755,  2]
../source3/smbd/server.c:576(remove_child_pid)
Best Regards.
Adam Blaszczykowski
2016-08-04 16:16 GMT+02:00 Adam Błaszczykowski <
adam.blaszczykowski at gmail.com>:
> Hello,
> I have problem with Samba 4.4.3. I'd like to use SMB 3.02 file shares
as
> shared storage for Hyper-V in Windows Server 2012 R2. I am able to create
> Virtual Machine on Samba share using guest access, but when I try to start
> VM I'm getting the following error:
>
> "An error occurred while attempting to start the selected virtual
> machine(s).
> 'New Virtual Machine' could not initialize.
> An attempt to initialize VM saved state failed.
> 'New Virtual Machine' could not initialize. (Virtual machine ID
> 70BB2BD1-B168-4944-9EEF-A665531EC058)
> 'New Virtual Machine' could not create or access saved state
file...' "
>
> What do I need to change in Samba configuration to solve this problem ?
> Please check my logs and configuration:
>
> *smb.conf:*
> [global]
>         bind interfaces only = No
>         config backend = file
>         dos charset = CP850
>         enable core files = Yes
>         interfaces >         multicast dns register = Yes
>         netbios aliases >         netbios name = DSSHP2
>         netbios scope >         realm = RES.LOCAL
>         server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl,
> winbindd, ntp_signd, kcc, dnsupdate, dns
>         server string = Samba 4.4.3
>         share backend = classic
>         unix charset = UTF-8
>         workgroup = RES
>         browse list = Yes
>         domain master = No
>         enhanced browsing = Yes
>         lm announce = Auto
>         lm interval = 60
>         local master = No
>         os level = 0
>         preferred master = No
>         allow dns updates = secure only
>         dns forwarder >         dns update command =
/usr/sbin/samba_dnsupdate
>         machine password timeout = 604800
>         nsupdate command = /usr/bin/nsupdate -g
>         rndc command = /usr/sbin/rndc
>         spn update command = /usr/sbin/samba_spnupdate
>         mangle prefix = 1
>         mangling method = hash2
>         max stat cache size = 256
>         stat cache = Yes
>         client ldap sasl wrapping = sign
>         ldap admin dn >         ldap connection timeout = 2
>         ldap delete dn = No
>         ldap deref = auto
>         ldap follow referral = Auto
>         ldap group suffix >         ldap idmap suffix >         ldap
machine suffix >         ldap page size = 1000
>         ldap passwd sync = no
>         ldap replication sleep = 1000
>         ldap server require strong auth = Yes
>         ldap ssl = start tls
>         ldap ssl ads = No
>         ldap suffix >         ldap timeout = 15
>         ldap user suffix >         lock spin time = 200
>         oplock break wait time = 0
>         smb2 leases = No
>         debug class = No
>         debug hires timestamp = Yes
>         debug pid = No
>         debug prefix timestamp = No
>         debug uid = No
>         ldap debug level = 0
>         ldap debug threshold = 10
>         log file = /var/log/samba/log.%m
>         logging >         log level = 2
>         max log size = 6000
>         syslog = 1
>         syslog only = No
>         timestamp logs = Yes
>         abort shutdown script >         add group script >        
add machine script >         add user script >         add user to group
script >         allow nt4 crypto = No
>         delete group script >         delete user from group script >
delete user script >         domain logons = No
>         enable privileges = Yes
>         init logon delay = 100
>         init logon delayed hosts >         logon drive >        
logon home = \\%N\%U
>         logon path = \\%N\%U\profile
>         logon script >         reject md5 clients = No
>         set primary group script >         shutdown script >        
add share command >         afs token lifetime = 604800
>         afs username map >         allow insecure wide links = No
>         async smb echo handler = No
>         auto services >         cache directory = /var/cache/samba
>         change notify = Yes
>         change share command >         cluster addresses >        
clustering = No
>         config file >         ctdbd socket >         ctdb locktime
warn threshold = 0
>         ctdb timeout = 0
>         default service >         delete share command >        
homedir map = auto.home
>         kernel change notify = Yes
>         lock directory = /var/run/samba
>         log writeable files on exit = No
>         message command >         nbt client socket address = 0.0.0.0
>         ncalrpc dir = /var/run/samba/ncalrpc
>         NIS homedir = No
>         nmbd bind explicit broadcast = Yes
>         panic action >         perfcount module >         pid
directory = /var/run/samba
>         registry shares = No
>         remote announce >         remote browse sync >         reset
on zero vc = No
>         smbd profiling level = off
>         state directory = /var/lib/samba
>         usershare allow guests = No
>         usershare max shares = 0
>         usershare owner only = Yes
>         usershare path = /var/lib/samba/usershares
>         usershare prefix allow list >         usershare prefix deny list
>         usershare template share >         utmp = No
>         utmp directory >         wtmp directory >         addport
command >         addprinter command >         cups connection timeout =
30
>         cups encrypt = No
>         cups server >         deleteprinter command >         disable
spoolss = No
>         enumports command >         iprint server >         load
printers = Yes
>         lpq cache time = 30
>         os2 driver map >         printcap cache time = 0
>         printcap name >         show add printer wizard = Yes
>         cldap port = 389
>         client ipc max protocol = default
>         client ipc min protocol = default
>         client max protocol = default
>         client min protocol = CORE
>         client use spnego = Yes
>         dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr,
> netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6,
> backupkey, dnsserver
>         defer sharing violations = Yes
>         dgram port = 138
>         disable netbios = No
>         enable asu support = No
>         eventlog list >         large readwrite = Yes
>         max mux = 50
>         max ttl = 259200
>         max wins ttl = 518400
>         max xmit = 16644
>         min receivefile size = 0
>         min wins ttl = 21600
>         name resolve order = lmhosts wins host bcast
>         nbt port = 137
>         nt pipe support = Yes
>         nt status support = Yes
>         read raw = Yes
>         rpc big endian = No
>         server max protocol = SMB3
>         server min protocol = LANMAN1
>         server multi channel support = No
>         smb2 max credits = 8192
>         smb2 max read = 8388608
>         smb2 max trans = 8388608
>         smb2 max write = 8388608
>         smb ports = 445 139
>         svcctl list >         time server = No
>         unicode = Yes
>         unix extensions = No
>         use spnego = Yes
>         web port = 901
>         write raw = Yes
>         algorithmic rid base = 1000
>         allow dcerpc auth level connect = No
>         allow trusted domains = Yes
>         auth methods >         check password script >         client
ipc signing = default
>         client lanman auth = No
>         client NTLMv2 auth = Yes
>         client plaintext auth = No
>         client schannel = Auto
>         client signing = default
>         client use spnego principal = No
>         dedicated keytab file >         encrypt passwords = Yes
>         guest account = nobody
>         kerberos method = default
>         kpasswd port = 464
>         krb5 port = 88
>         lanman auth = No
>         log nt token command >         map to guest = Bad User
>         map untrusted to domain = No
>         ntlm auth = Yes
>         ntp signd socket directory = /var/lib/samba/ntp_signd
>         null passwords = No
>         obey pam restrictions = No
>         old password allowed period = 60
>         pam password change = No
>         passdb backend = tdbsam
>         passdb expand explicit = No
>         passwd chat = *new*password* %n\n *new*password* %n\n *changed*
>         passwd chat debug = No
>         passwd chat timeout = 2
>         passwd program >         password server = *
>         preload modules >         private dir = /var/lib/samba/private
>         raw NTLMv2 auth = No
>         rename user script >         restrict anonymous = 0
>         root directory >         samba kcc command = /usr/sbin/samba_kcc
>         security = ADS
>         server role = member server
>         server schannel = Auto
>         server signing = default
>         smb passwd file = /var/lib/samba/private/smbpasswd
>         tls cafile = tls/ca.pem
>         tls certfile = tls/cert.pem
>         tls crlfile >         tls dh params file >         tls
enabled = Yes
>         tls keyfile = tls/key.pem
>         tls priority = NORMAL:-VERS-SSL3.0
>         tls verify peer = as_strict_as_possible
>         unix password sync = No
>         username level = 0
>         username map >         username map cache time = 0
>         username map script >         aio max threads = 100
>         deadtime = 0
>         getwd cache = Yes
>         hostname lookups = No
>         keepalive = 300
>         max disk size = 0
>         max open files = 16384
>         max smbd processes = 0
>         name cache timeout = 660
>         socket options = TCP_NODELAY IPTOS_LOWDELAY
>         use mmap = Yes
>         get quota command >         host msdfs = Yes
>         set quota command >         create krb5 conf = Yes
>         idmap backend = tdb
>         idmap cache time = 604800
>         idmap gid >         idmap negative cache time = 120
>         idmap uid >         neutralize nt4 emulation = No
>         reject md5 servers = No
>         require strong key = Yes
>         template homedir = /home/%D/%U
>         template shell = /bin/false
>         winbind cache time = 300
>         winbindd privileged socket directory = /var/lib/samba/winbindd_
> privileged
>         winbindd socket directory = /var/run/samba/winbindd
>         winbind enum groups = Yes
>         winbind enum users = Yes
>         winbind expand groups = 0
>         winbind max clients = 200
>         winbind max domain connections = 1
>         winbind nested groups = Yes
>         winbind normalize names = No
>         winbind nss info = template
>         winbind offline logon = No
>         winbind reconnect delay = 30
>         winbind refresh tickets = Yes
>         winbind request timeout = 200
>         winbind rpc only = No
>         winbind sealed pipes = Yes
>         winbind separator = \
>         winbind trusted domains only = No
>         winbind use default domain = No
>         dns proxy = Yes
>         wins hook >         wins proxy = No
>         wins server >         wins support = No
>         idmap config * : rangesize = 1000000
>         idmap config * : range = 1000000-19999999
>         shadow: localtime = yes
>         shadow: format = autosnap_%Y-%m-%d-%H%M%S
>         shadow: sort = desc
>         shadow: snapdir = .zfs/snapshot
>         fileid:mapping = fsid
>         idmap config * : backend = autorid
>         comment >         path >         administrative share = No
>         browseable = Yes
>         case sensitive = Auto
>         default case = lower
>         delete veto files = No
>         hide dot files = Yes
>         hide files >         hide special files = No
>         hide unreadable = No
>         hide unwriteable files = No
>         mangled names = Yes
>         mangling char = ~
>         map archive = Yes
>         map hidden = No
>         map readonly = yes
>         map system = No
>         preserve case = Yes
>         short preserve case = Yes
>         store dos attributes = Yes
>         veto files = /.nfs/._.DS_Store/:2eFBCLockFolder/.
> FBCLockFolder/:2eFBCIndex/.FBCIndex/:2eDS_Store/.DS_
> Store/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary
> Items/Network Trash Folder/.AppleDB/:2eVolumeIcon.
> icns/.VolumeIcon.icns/Icon?/.Ap$
>         veto oplock files >         blocking locks = Yes
>         csc policy = manual
>         fake oplocks = No
>         kernel oplocks = Yes
>         kernel share modes = Yes
>         level2 oplocks = Yes
>         locking = Yes
>         oplock contention limit = 2
>         oplocks = Yes
>         posix locking = Yes
>         strict locking = Auto
>         afs share = No
>         available = Yes
>         copy >         delete readonly = No
>         dfree cache time = 0
>         dfree command >         directory name cache size = 100
>         dmapi support = No
>         dont descend >         dos filemode = No
>         dos filetime resolution = No
>         dos filetimes = Yes
>         fake directory create times = No
>         follow symlinks = Yes
>         fstype = NTFS
>         include = /var/nasconf/nas/smb/Pools/Pool-0
>         magic output >         magic script >         postexec >  
preexec >         preexec close = No
>         root postexec >         root preexec >         root preexec
close = No
>         spotlight = No
>         volume >         wide links = No
>         cups options >         default devmode = Yes
>         force printername = No
>         lppause command >         lpq command = lpq -P'%p'
>         lpresume command >         lprm command = lprm -P'%p' %j
>         max print jobs = 1000
>         max reported print jobs = 0
>         printable = No
>         print command = lpr -r -P'%p' %s
>         printer name >         printing = bsd
>         printjob username = %U
>         print notify backchannel = No
>         queuepause command >         queueresume command >        
use client driver = No
>         acl allow execute always = No
>         acl check permissions = Yes
>         acl map full control = Yes
>         durable handles = Yes
>         ea support = No
>         map acl inherit = No
>         nt acl support = Yes
>         profile acls = No
>         access based share enum = No
>         acl group control = No
>         admin users = RES+administrator
>         create mask = 0744
>         directory mask = 0755
>         force create mode = 0000
>         force directory mode = 0000
>         force group >         force unknown acl user = Yes
>         force user >         guest ok = No
>         guest only = No
>         hosts allow >         hosts deny >         inherit acls = No
>         inherit owner = No
>         inherit permissions = No
>         invalid users = root
>         only user = No
>         read list >         read only = Yes
>         smb encrypt = default
>         username >         valid users >         write list >     
aio read size = 0
>         aio write behind >         aio write size = 0
>         allocation roundup size = 1048576
>         block size = 1024
>         max connections = 0
>         min print space = 0
>         strict allocate = No
>         strict rename = No
>         strict sync = No
>         sync always = No
>         use sendfile = No
>         write cache size = 0
>         msdfs proxy >         msdfs root = No
>         msdfs shuffle referrals = No
>         ntvfs handler = unixuid, default
>         vfs objects = acl_xattr shadow_copy2 fileid
>
>
> [s1]
>         path = /Pools/Pool-0/d1/s1
>         case sensitive = No
>         map acl inherit = Yes
>         guest ok = Yes
>         guest only = Yes
>         inherit permissions = Yes
>         read only = No
>
>
> *Samba logs:*
> [2016/08/04 15:52:32.050297,  3] ../auth/ntlmssp/ntlmssp_util.
> c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088297
> [2016/08/04 15:52:32.050822,  3] ../source3/lib/access.c:338(allow_access)
>   Allowed connection from 192.168.160.5 (192.168.160.5)
> [2016/08/04 15:52:32.050897,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.052771,  3] ../source3/smbd/service.c:614(
> make_connection_snum)
>   Connect path is '/tmp' for service [IPC$]
> [2016/08/04 15:52:32.052852,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.054186,  3] ../source3/smbd/vfs.c:113(vfs_
> init_default)
>   Initialising default vfs hooks
> [2016/08/04 15:52:32.054284,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [/[Default VFS]/]
> [2016/08/04 15:52:32.054325,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [fileid]
> [2016/08/04 15:52:32.057787,  2] ../lib/util/modules.c:196(do_
> smb_load_module)
>   Module 'fileid' loaded
> [2016/08/04 15:52:32.057850,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [shadow_copy2]
> [2016/08/04 15:52:32.060852,  2] ../lib/util/modules.c:196(do_
> smb_load_module)
>   Module 'shadow_copy2' loaded
> [2016/08/04 15:52:32.060914,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [acl_xattr]
> [2016/08/04 15:52:32.063903,  2] ../lib/util/modules.c:196(do_
> smb_load_module)
>   Module 'acl_xattr' loaded
> [2016/08/04 15:52:32.064037,  2] ../source3/modules/vfs_acl_
> xattr.c:193(connect_acl_xattr)
>   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> and 'force unknown acl user = true' for service IPC$
> [2016/08/04 15:52:32.064228,  3] ../source3/smbd/oplock_linux.
> c:251(linux_init_kernel_oplocks)
>   Linux kernel oplocks enabled
> [2016/08/04 15:52:32.064310,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.065553,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID RES+administrator is not in a valid format
> [2016/08/04 15:52:32.067951,  3] ../source3/smbd/service.c:864(
> make_connection_snum)
>   cezik2 (ipv4:192.168.160.5:56300) connect to service IPC$ initially as
> user RES\cezik2$ (uid=2002208, gid=2000515) (pid 48013)
> [2016/08/04 15:52:32.068280,  3] ../auth/ntlmssp/ntlmssp_
> server.c:452(ntlmssp_server_preauth)
>   Got user=[Administrator] domain=[RES] workstation=[CEZIK2] len1=24
> len2=232
> [2016/08/04 15:52:32.068386,  3] ../source3/param/loadparm.c:
> 3742(lp_load_ex)
>   lp_load_ex: refreshing parameters
> [2016/08/04 15:52:32.068561,  3] ../source3/param/loadparm.c:
> 544(init_globals)
>   Initialising global parameters
> [2016/08/04 15:52:32.068804,  3] ../source3/param/loadparm.c:
> 2671(lp_do_section)
>   Processing section "[global]"
> [2016/08/04 15:52:32.070306,  2] ../source3/param/loadparm.c:
> 2688(lp_do_section)
>   Processing section "[s1]"
> [2016/08/04 15:52:32.070775,  3] ../source3/param/loadparm.c:
> 1588(lp_add_ipc)
>   adding IPC service
> [2016/08/04 15:52:32.071078,  3] ../source3/auth/auth.c:178(
> auth_check_ntlm_password)
>   check_ntlm_password:  Checking password for unmapped user
> [RES]\[Administrator]@[CEZIK2] with the new password interface
> [2016/08/04 15:52:32.071125,  3] ../source3/auth/auth.c:181(
> auth_check_ntlm_password)
>   check_ntlm_password:  mapped user is: [RES]\[Administrator]@[CEZIK2]
> [2016/08/04 15:52:32.079161,  3] ../source3/auth/auth.c:249(
> auth_check_ntlm_password)
>   check_ntlm_password: winbind authentication for user [Administrator]
> succeeded
> [2016/08/04 15:52:32.079257,  2] ../source3/auth/auth.c:305(
> auth_check_ntlm_password)
>   check_ntlm_password:  authentication for user [Administrator] ->
> [Administrator] -> [RES\administrator] succeeded
> [2016/08/04 15:52:32.080871,  3] ../auth/ntlmssp/ntlmssp_sign.
> c:509(ntlmssp_sign_reset)
>   NTLMSSP Sign/Seal - Initialising with flags:
> [2016/08/04 15:52:32.080932,  3] ../auth/ntlmssp/ntlmssp_util.
> c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088215
> [2016/08/04 15:52:32.081027,  3] ../auth/ntlmssp/ntlmssp_sign.
> c:509(ntlmssp_sign_reset)
>   NTLMSSP Sign/Seal - Initialising with flags:
> [2016/08/04 15:52:32.081062,  3] ../auth/ntlmssp/ntlmssp_util.
> c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088215
> [2016/08/04 15:52:32.083056,  3] ../source3/smbd/password.c:
> 144(register_homes_share)
>   Adding homes service for user 'RES\administrator' using home
directory:
> '/home/RES/administrator'
> [2016/08/04 15:52:32.084607,  3] ../source3/lib/access.c:338(allow_access)
>   Allowed connection from 192.168.160.5 (192.168.160.5)
> [2016/08/04 15:52:32.084746,  3] ../source3/smbd/service.c:614(
> make_connection_snum)
>   Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
> [2016/08/04 15:52:32.084804,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.086029,  3] ../source3/smbd/vfs.c:113(vfs_
> init_default)
>   Initialising default vfs hooks
> [2016/08/04 15:52:32.086094,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [/[Default VFS]/]
> [2016/08/04 15:52:32.086133,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [fileid]
> [2016/08/04 15:52:32.086166,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [shadow_copy2]
> [2016/08/04 15:52:32.086199,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [acl_xattr]
> [2016/08/04 15:52:32.086306,  2] ../source3/modules/vfs_acl_
> xattr.c:193(connect_acl_xattr)
>   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> and 'force unknown acl user = true' for service s1
> [2016/08/04 15:52:32.086527,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.087881,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID RES+administrator is not in a valid format
> [2016/08/04 15:52:32.090417,  2] ../source3/smbd/service.c:864(
> make_connection_snum)
>   cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as
> user nobody (uid=65534, gid=65534) (pid 48013)
> [2016/08/04 15:52:32.090689,  3] ../source3/lib/access.c:338(allow_access)
>   Allowed connection from 192.168.160.5 (192.168.160.5)
> [2016/08/04 15:52:32.090758,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.092053,  3] ../source3/smbd/service.c:614(
> make_connection_snum)
>   Connect path is '/tmp' for service [IPC$]
> [2016/08/04 15:52:32.092121,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.093299,  3] ../source3/smbd/vfs.c:113(vfs_
> init_default)
>   Initialising default vfs hooks
> [2016/08/04 15:52:32.093350,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [/[Default VFS]/]
> [2016/08/04 15:52:32.093395,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [fileid]
> [2016/08/04 15:52:32.093429,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [shadow_copy2]
> [2016/08/04 15:52:32.093462,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [acl_xattr]
> [2016/08/04 15:52:32.093547,  2] ../source3/modules/vfs_acl_
> xattr.c:193(connect_acl_xattr)
>   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> and 'force unknown acl user = true' for service IPC$
> [2016/08/04 15:52:32.093699,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.094882,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID RES+administrator is not in a valid format
> [2016/08/04 15:52:32.097096,  3] ../source3/smbd/service.c:864(
> make_connection_snum)
>   cezik2 (ipv4:192.168.160.5:56300) connect to service IPC$ initially as
> user RES\administrator (uid=2000500, gid=2000513) (pid 48013)
> [2016/08/04 15:52:32.097384,  3] ../source3/smbd/msdfs.c:993(
> get_referred_path)
>   get_referred_path: |s1| in dfs path \192.168.170.38\s1 is not a dfs root.
> [2016/08/04 15:52:32.097448,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
> [2016/08/04 15:52:32.100863,  2] ../source3/smbd/dosmode.c:136(unix_mode)
>   unix_mode(desktop.ini) inheriting from .
> [2016/08/04 15:52:32.100951,  2] ../source3/smbd/dosmode.c:158(unix_mode)
>   unix_mode(desktop.ini) inherit mode 40777
> [2016/08/04 15:52:32.101042,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
> ../source3/smbd/smb2_create.c:293
> [2016/08/04 15:52:32.101261,  3] ../source3/lib/access.c:338(allow_access)
>   Allowed connection from 192.168.160.5 (192.168.160.5)
> [2016/08/04 15:52:32.101390,  3] ../source3/smbd/service.c:614(
> make_connection_snum)
>   Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
> [2016/08/04 15:52:32.101448,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.102776,  3] ../source3/smbd/vfs.c:113(vfs_
> init_default)
>   Initialising default vfs hooks
> [2016/08/04 15:52:32.102840,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [/[Default VFS]/]
> [2016/08/04 15:52:32.102880,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [fileid]
> [2016/08/04 15:52:32.102912,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [shadow_copy2]
> [2016/08/04 15:52:32.102945,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [acl_xattr]
> [2016/08/04 15:52:32.103053,  2] ../source3/modules/vfs_acl_
> xattr.c:193(connect_acl_xattr)
>   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> and 'force unknown acl user = true' for service s1
> [2016/08/04 15:52:32.103233,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:32.104527,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID RES+administrator is not in a valid format
> [2016/08/04 15:52:32.106936,  2] ../source3/smbd/service.c:864(
> make_connection_snum)
>   cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as
> user nobody (uid=65534, gid=65534) (pid 48013)
> [2016/08/04 15:52:32.107169,  3] ../source3/smbd/smb2_notify.c:
> 250(smbd_smb2_notify_send)
>   smbd_smb2_notify_send: notify change called on ., filter >
FILE_NAME|DIR_NAME|ATTRIBUTES|LAST_WRITE, recursive = 0
> [2016/08/04 15:52:32.107522,  3] ../source3/smbd/msdfs.c:993(
> get_referred_path)
>   get_referred_path: |s1| in dfs path \192.168.170.38\s1 is not a dfs root.
> [2016/08/04 15:52:32.107582,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
> [2016/08/04 15:52:32.107874,  2] ../source3/smbd/dosmode.c:136(unix_mode)
>   unix_mode(.) inheriting from .
> [2016/08/04 15:52:32.107933,  2] ../source3/smbd/dosmode.c:158(unix_mode)
>   unix_mode(.) inherit mode 40777
> [2016/08/04 15:52:32.108704,  3] ../source3/smbd/dir.c:629(dptr_create)
>   creating new dirptr 0 for path ., expect_close = 0
> [2016/08/04 15:52:32.108837,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found . fname=. (.)
> [2016/08/04 15:52:32.108950,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
> [2016/08/04 15:52:32.109661,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found ondss fname=ondss (ondss)
> [2016/08/04 15:52:32.109856,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found New folder fname=New folder (New
> folder)
> [2016/08/04 15:52:32.110115,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
> status[STATUS_NO_MORE_FILES] || at ../source3/smbd/smb2_query_
> directory.c:154
> [2016/08/04 15:52:32.111645,  3] ../source3/smbd/trans2.c:3347(
> smbd_do_qfsinfo)
>   smbd_do_qfsinfo: level = 1007
> [2016/08/04 15:52:32.112208,  3] ../source3/lib/sysquotas.c:
> 433(sys_get_quota)
>   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
> qtype[2] id[65534]: No such file or directory
> [2016/08/04 15:52:32.112656,  3] ../source3/lib/sysquotas.c:
> 433(sys_get_quota)
>   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
> qtype[4] id[65534]: No such file or directory
> [2016/08/04 15:52:32.112996,  2] ../source3/smbd/open.c:3450(
> open_directory)
>   open_directory: unable to create ondss/New Virtual Machine/Virtual
> Machines/70BB2BD1-B168-4944-9EEF-A665531EC058. Error was
> NT_STATUS_OBJECT_NAME_COLLISION
> [2016/08/04 15:52:32.113060,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_OBJECT_NAME_COLLISION] || at
> ../source3/smbd/smb2_create.c:293
> [2016/08/04 15:52:32.122030,  2] ../source3/smbd/dosmode.c:136(unix_mode)
>   unix_mode(ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-4944-
> 9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv) inheriting
> from ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-4944-
> 9EEF-A665531EC058
> [2016/08/04 15:52:32.122108,  2] ../source3/smbd/dosmode.c:158(unix_mode)
>   unix_mode(ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-4944-
> 9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv) inherit mode
> 40775
> [2016/08/04 15:52:32.123389,  2] ../source3/smbd/open.c:1006(open_file)
>   nobody opened file ondss/New Virtual Machine/Virtual
> Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-
> B168-4944-9EEF-A665531EC058.vsv read=Yes write=Yes (numopen=1)
> [2016/08/04 15:52:32.124258,  3] ../source3/smbd/oplock_linux.
> c:155(linux_set_kernel_oplock)
>   linux_set_kernel_oplock: got kernel oplock on file ondss/New Virtual
> Machine/Virtual Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-
> B168-4944-9EEF-A665531EC058.vsv, file_id = 800d0a1944a538:12e:0 gen_id >
1868341241
> [2016/08/04 15:52:32.127121,  2] ../source3/modules/vfs_
> default.c:1404(vfswrap_fsctl)
>   vfswrap_fsctl (0x1401d4): Currently not implemented.
> [2016/08/04 15:52:32.127192,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_INVALID_DEVICE_REQUEST] || at
> ../source3/smbd/smb2_ioctl.c:309
> [2016/08/04 15:52:32.127909,  3] ../source3/smbd/reply.c:8105(
> smbd_do_locking)
>   smbd_do_locking: fnum 910886817 type=0 num_locks=1
> [2016/08/04 15:52:32.128929,  3] ../source3/smbd/trans2.c:3347(
> smbd_do_qfsinfo)
>   smbd_do_qfsinfo: level = 1007
> [2016/08/04 15:52:32.129447,  3] ../source3/lib/sysquotas.c:
> 433(sys_get_quota)
>   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
> qtype[2] id[65534]: No such file or directory
> [2016/08/04 15:52:32.129879,  3] ../source3/lib/sysquotas.c:
> 433(sys_get_quota)
>   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-0/d1]
> qtype[4] id[65534]: No such file or directory
> [2016/08/04 15:52:32.130074,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_NOT_SUPPORTED] || at ../source3/smbd/smb2_ioctl.c:309
> [2016/08/04 15:52:32.131922,  3] ../source3/smbd/trans2.c:3347(
> smbd_do_qfsinfo)
>   smbd_do_qfsinfo: level = 1001
> [2016/08/04 15:52:32.132053,  3] ../source3/smbd/trans2.c:3347(
> smbd_do_qfsinfo)
>   smbd_do_qfsinfo: level = 1005
> [2016/08/04 15:52:32.132263,  3] ../source3/smbd/reply.c:8149(
> smbd_do_unlocking)
>   smbd_do_unlocking: fnum 910886817 num_ulocks=1
> [2016/08/04 15:52:32.133149,  2] ../source3/smbd/close.c:780(
> close_normal_file)
>   nobody closed file ondss/New Virtual Machine/Virtual
> Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-
> B168-4944-9EEF-A665531EC058.vsv (numopen=0) NT_STATUS_OK
> [2016/08/04 15:52:32.723171,  3] ../source3/smbd/dir.c:629(dptr_create)
>   creating new dirptr 0 for path ., expect_close = 0
> [2016/08/04 15:52:32.723374,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found . fname=. (.)
> [2016/08/04 15:52:32.723489,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
> [2016/08/04 15:52:32.723758,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found ondss fname=ondss (ondss)
> [2016/08/04 15:52:32.723934,  3] ../source3/smbd/dir.c:1188(
> smbd_dirptr_get_entry)
>   smbd_dirptr_get_entry mask=[*] found New folder fname=New folder (New
> folder)
> [2016/08/04 15:52:32.724134,  3] ../source3/smbd/smb2_server.c:
> 2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
> status[STATUS_NO_MORE_FILES] || at ../source3/smbd/smb2_query_
> directory.c:154
> [2016/08/04 15:52:43.905087,  3] ../source3/smbd/service.c:
> 1140(close_cnum)
>   cezik2 (ipv4:192.168.160.5:56300) closed connection to service IPC$
> [2016/08/04 15:52:43.905486,  3] ../source3/smbd/service.c:
> 1140(close_cnum)
>   cezik2 (ipv4:192.168.160.5:56300) closed connection to service IPC$
> [2016/08/04 15:52:43.905821,  2] ../source3/smbd/service.c:
> 1140(close_cnum)
>   cezik2 (ipv4:192.168.160.5:56300) closed connection to service s1
> [2016/08/04 15:52:51.398356,  3] ../auth/ntlmssp/ntlmssp_util.
> c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088297
> [2016/08/04 15:52:51.399915,  3] ../auth/ntlmssp/ntlmssp_
> server.c:452(ntlmssp_server_preauth)
>   Got user=[CEZIK2$] domain=[RES] workstation=[CEZIK2] len1=24 len2=232
> [2016/08/04 15:52:51.400059,  3] ../source3/param/loadparm.c:
> 3742(lp_load_ex)
>   lp_load_ex: refreshing parameters
> [2016/08/04 15:52:51.400221,  3] ../source3/param/loadparm.c:
> 544(init_globals)
>   Initialising global parameters
> [2016/08/04 15:52:51.400472,  3] ../source3/param/loadparm.c:
> 2671(lp_do_section)
>   Processing section "[global]"
> [2016/08/04 15:52:51.401973,  2] ../source3/param/loadparm.c:
> 2688(lp_do_section)
>   Processing section "[s1]"
> [2016/08/04 15:52:51.402442,  3] ../source3/param/loadparm.c:
> 1588(lp_add_ipc)
>   adding IPC service
> [2016/08/04 15:52:51.402825,  3] ../source3/auth/auth.c:178(
> auth_check_ntlm_password)
>   check_ntlm_password:  Checking password for unmapped user
> [RES]\[CEZIK2$]@[CEZIK2] with the new password interface
> [2016/08/04 15:52:51.402895,  3] ../source3/auth/auth.c:181(
> auth_check_ntlm_password)
>   check_ntlm_password:  mapped user is: [RES]\[CEZIK2$]@[CEZIK2]
> [2016/08/04 15:52:51.406153,  3] ../source3/auth/auth.c:249(
> auth_check_ntlm_password)
>   check_ntlm_password: winbind authentication for user [CEZIK2$] succeeded
> [2016/08/04 15:52:51.406252,  2] ../source3/auth/auth.c:305(
> auth_check_ntlm_password)
>   check_ntlm_password:  authentication for user [CEZIK2$] -> [CEZIK2$]
->
> [RES\cezik2$] succeeded
> [2016/08/04 15:52:51.407632,  3] ../auth/ntlmssp/ntlmssp_sign.
> c:509(ntlmssp_sign_reset)
>   NTLMSSP Sign/Seal - Initialising with flags:
> [2016/08/04 15:52:51.407691,  3] ../auth/ntlmssp/ntlmssp_util.
> c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088215
> [2016/08/04 15:52:51.407760,  3] ../auth/ntlmssp/ntlmssp_sign.
> c:509(ntlmssp_sign_reset)
>   NTLMSSP Sign/Seal - Initialising with flags:
> [2016/08/04 15:52:51.407793,  3] ../auth/ntlmssp/ntlmssp_util.
> c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088215
> [2016/08/04 15:52:51.409209,  3] ../source3/smbd/password.c:
> 144(register_homes_share)
>   Adding homes service for user 'RES\cezik2$' using home directory:
> '/home/RES/cezik2_'
> [2016/08/04 15:52:51.410244,  3] ../source3/lib/access.c:338(allow_access)
>   Allowed connection from 192.168.160.5 (192.168.160.5)
> [2016/08/04 15:52:51.410401,  3] ../source3/smbd/service.c:614(
> make_connection_snum)
>   Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
> [2016/08/04 15:52:51.410464,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:51.411891,  3] ../source3/smbd/vfs.c:113(vfs_
> init_default)
>   Initialising default vfs hooks
> [2016/08/04 15:52:51.411956,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [/[Default VFS]/]
> [2016/08/04 15:52:51.411995,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [fileid]
> [2016/08/04 15:52:51.412028,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [shadow_copy2]
> [2016/08/04 15:52:51.412061,  3] ../source3/smbd/vfs.c:139(vfs_
> init_custom)
>   Initialising custom vfs hooks from [acl_xattr]
> [2016/08/04 15:52:51.412181,  2] ../source3/modules/vfs_acl_
> xattr.c:193(connect_acl_xattr)
>   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> and 'force unknown acl user = true' for service s1
> [2016/08/04 15:52:51.412357,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/04 15:52:51.413673,  3] ../libcli/security/dom_sid.c:
> 209(dom_sid_parse_endp)
>   string_to_sid: SID RES+administrator is not in a valid format
> [2016/08/04 15:52:51.416348,  2] ../source3/smbd/service.c:864(
> make_connection_snum)
>   cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as
> user nobody (uid=65534, gid=65534) (pid 48013)
> [2016/08/04 15:52:51.418626,  2] ../source3/smbd/dosmode.c:136(unix_mode)
>   unix_mode(ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml)
> inheriting from ondss/New Virtual Machine/Virtual Machines
> [2016/08/04 15:52:51.418701,  2] ../source3/smbd/dosmode.c:158(unix_mode)
>   unix_mode(ondss/New Virtual Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml)
> inherit mode 40775
> [2016/08/04 15:52:51.419122,  2] ../source3/smbd/open.c:1006(open_file)
>   nobody opened file ondss/New Virtual Machine/Virtual
> Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml read=Yes write=Yes
> (numopen=1)
> [2016/08/04 15:52:51.419273,  3] ../source3/smbd/oplock_linux.
> c:155(linux_set_kernel_oplock)
>   linux_set_kernel_oplock: got kernel oplock on file ondss/New Virtual
> Machine/Virtual Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml,
> file_id = 800d0a1944a538:113:0 gen_id = 260526076
>
> Thank you in advance!
>
> Best Regards.
> Adam Blaszczykowski
>
>
L.P.H. van Belle
2016-Aug-09  12:15 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
In not into hyper-v .. but a sugestion. 
Read : man smb.conf : 
and  play with these settings.
        client max protocol = default
        client min protocol = CORE
        server max protocol = SMB3
        server min protocol = LANMAN1
i would try first 
   server min protocol = SMB3 
Greetz, 
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Adam
> B??aszczykowski
> Verzonden: dinsdag 9 augustus 2016 10:53
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Hyper-V Virtual Machines fail to start on Samba
> shares
> 
> Hello,
> As you said, I have changed Samba configuration and reconfigure Active
> Directory domain, but still the same problem, I cannot start Hyper-V
> Virtual Machine stored on Samba shares.
> 
> 
> *# cat /etc/samba/smb.conf*[global]
>     workgroup = RES
>     netbios name = dsshp2
>     vfs objects = acl_xattr shadow_copy2 fileid
>     fileid:mapping = fsid
>     encrypt passwords = yes
>     domain logons = no
>     log level = 3
>     syslog = 0
>     max log size = 6000
>     socket options = TCP_NODELAY IPTOS_LOWDELAY
>     os level = 0
>     local master = no
>     locking = yes
>     preferred master = no
>     domain master = no
>     invalid users = root
>     guest account = nobody
>     map to guest = Bad User
>     wide links = no
>     force unknown acl user = yes
>     winbind separator = \
>     winbind enum users = yes
>     winbind enum groups = yes
>     winbind refresh tickets = yes
>     winbind request timeout = 200
>     printcap cache time = 0
>     passdb backend = tdbsam
>     unix extensions = no
>     server max protocol = SMB3
>     shadow: snapdir = .zfs/snapshot
>     shadow: sort = desc
>     shadow: format = autosnap_%Y-%m-%d-%H%M%S
>     shadow: localtime = yes
>     kernel oplocks = yes
>     store dos attributes = yes
>     veto files >
/.nfs/._.DS_Store/:2eFBCLockFolder/.FBCLockFolder/:2eFBCIndex/.FBCIndex/:2
> eDS_Store/.DS_Store/TheVolumeSettingsFolder/TheFindByContentFolder/Tempora
> ry
> Items/Network Trash
> Folder/.AppleDB/:2eVolumeIcon.icns/.VolumeIcon.icns/Icon?/.Ap$
>     wins server >     admin users = "RES\administrator"
>     security = ads
>     server role = member
>     realm = RES.LAN
>     workgroup = RES
>     allow trusted domains = yes
> 
>     idmap config * : backend = autorid
>     idmap config * : range = 1000000-19999999
>     idmap config * : rangesize = 1000000
> 
>     idmap config RES : backend = autorid
>     idmap config RES : range = 2000000-29999999
>     idmap config RES : rangesize = 1000000
> 
> [s1]
>     short preserve case=yes
>     inherit owner=no
>     valid users>     case sensitive=no
>     map acl inherit=yes
>     guest ok=yes
>     preserve case=yes
>     inherit permissions=yes
>     default case=lower
>     path=/Pools/Pool-0/d1/s1
>     read only=no
>     guest only=yes
>     access based share enum=no
>     writeable=yes
>     public=yes
> 
> 
> 
> 
> *# cat /var/log/samba/log.smbd*[2016/08/09 10:33:42.735614,  3]
> ../source3/smbd/smb2_write.c:212(smb2_write_complete_internal)
>   smb2: fnum 722899260, file New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml, length=39920 offset=0
> wrote=39920
> [2016/08/09 10:33:42.737495,  3]
> ../source3/smbd/trans2.c:8298(smbd_do_setfilepathinfo)
>   smbd_do_setfilepathinfo: New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml (fnum 722899260)
> info_level=1004 totdata=40
> [2016/08/09 10:33:43.153384,  3]
> ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088297
> [2016/08/09 10:33:43.154649,  3]
> ../auth/ntlmssp/ntlmssp_server.c:452(ntlmssp_server_preauth)
>   Got user=[HP3$] domain=[RES] workstation=[HP3] len1=24 len2=232
> [2016/08/09 10:33:43.154761,  3]
> ../source3/param/loadparm.c:3742(lp_load_ex)
>   lp_load_ex: refreshing parameters
> [2016/08/09 10:33:43.154914,  3]
> ../source3/param/loadparm.c:544(init_globals)
>   Initialising global parameters
> [2016/08/09 10:33:43.155142,  3]
> ../source3/param/loadparm.c:2671(lp_do_section)
>   Processing section "[global]"
> [2016/08/09 10:33:43.155325,  1]
> ../lib/param/loadparm.c:1729(lpcfg_do_global_parameter)
>   WARNING: The "syslog" option is deprecated
> [2016/08/09 10:33:43.156650,  2]
> ../source3/param/loadparm.c:2688(lp_do_section)
>   Processing section "[s1]"
> [2016/08/09 10:33:43.157108,  3]
> ../source3/param/loadparm.c:1588(lp_add_ipc)
>   adding IPC service
> [2016/08/09 10:33:43.157456,  3]
> ../source3/auth/auth.c:178(auth_check_ntlm_password)
>   check_ntlm_password:  Checking password for unmapped user
> [RES]\[HP3$]@[HP3] with the new password interface
> [2016/08/09 10:33:43.157518,  3]
> ../source3/auth/auth.c:181(auth_check_ntlm_password)
>   check_ntlm_password:  mapped user is: [RES]\[HP3$]@[HP3]
> [2016/08/09 10:33:43.161026,  3]
> ../source3/auth/auth.c:249(auth_check_ntlm_password)
>   check_ntlm_password: winbind authentication for user [HP3$] succeeded
> [2016/08/09 10:33:43.161119,  2]
> ../source3/auth/auth.c:305(auth_check_ntlm_password)
>   check_ntlm_password:  authentication for user [HP3$] -> [HP3$] ->
> [RES\hp3$] succeeded
> [2016/08/09 10:33:43.162465,  3]
> ../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
>   NTLMSSP Sign/Seal - Initialising with flags:
> [2016/08/09 10:33:43.162518,  3]
> ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088215
> [2016/08/09 10:33:43.162579,  3]
> ../auth/ntlmssp/ntlmssp_sign.c:509(ntlmssp_sign_reset)
>   NTLMSSP Sign/Seal - Initialising with flags:
> [2016/08/09 10:33:43.162606,  3]
> ../auth/ntlmssp/ntlmssp_util.c:69(debug_ntlmssp_flags)
>   Got NTLMSSP neg_flags=0xe2088215
> [2016/08/09 10:33:43.164012,  3]
> ../source3/smbd/password.c:144(register_homes_share)
>   Adding homes service for user 'RES\hp3$' using home directory:
> '/home/RES/hp3_'
> [2016/08/09 10:33:43.164989,  3] ../source3/lib/access.c:338(allow_access)
>   Allowed connection from 192.168.170.43 (192.168.170.43)
> [2016/08/09 10:33:43.165134,  3]
> ../source3/smbd/service.c:614(make_connection_snum)
>   Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
> [2016/08/09 10:33:43.165185,  3]
> ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/09 10:33:43.166581,  3]
> ../source3/smbd/vfs.c:113(vfs_init_default)
>   Initialising default vfs hooks
> [2016/08/09 10:33:43.166638,  3]
> ../source3/smbd/vfs.c:139(vfs_init_custom)
>   Initialising custom vfs hooks from [/[Default VFS]/]
> [2016/08/09 10:33:43.166673,  3]
> ../source3/smbd/vfs.c:139(vfs_init_custom)
>   Initialising custom vfs hooks from [fileid]
> [2016/08/09 10:33:43.166701,  3]
> ../source3/smbd/vfs.c:139(vfs_init_custom)
>   Initialising custom vfs hooks from [shadow_copy2]
> [2016/08/09 10:33:43.166728,  3]
> ../source3/smbd/vfs.c:139(vfs_init_custom)
>   Initialising custom vfs hooks from [acl_xattr]
> [2016/08/09 10:33:43.166829,  2]
> ../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr)
>   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> and 'force unknown acl user = true' for service s1
> [2016/08/09 10:33:43.166984,  3]
> ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
>   string_to_sid: SID root is not in a valid format
> [2016/08/09 10:33:43.168317,  3]
> ../libcli/security/dom_sid.c:209(dom_sid_parse_endp)
>   string_to_sid: SID RES\administrator is not in a valid format
> [2016/08/09 10:33:43.168930,  2]
> ../source3/smbd/service.c:864(make_connection_snum)
>   hp3 (ipv4:192.168.170.43:49224) connect to service s1 initially as user
> nobody (uid=65534, gid=65534) (pid 25315)
> [2016/08/09 10:33:43.170564,  2]
> ../source3/smbd/open.c:3450(open_directory)
>   open_directory: unable to create New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6. Error was
> NT_STATUS_OBJECT_NAME_COLLISION
> [2016/08/09 10:33:43.170633,  3]
> ../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_OBJECT_NAME_COLLISION] || at
> ../source3/smbd/smb2_create.c:293
> [2016/08/09 10:33:43.171837,  2] ../source3/smbd/dosmode.c:136(unix_mode)
>   unix_mode(New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-
> BC452ECB48F6.vsv)
> inheriting from New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6
> [2016/08/09 10:33:43.171905,  2] ../source3/smbd/dosmode.c:158(unix_mode)
>   unix_mode(New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-
> BC452ECB48F6.vsv)
> inherit mode 40775
> [2016/08/09 10:33:43.173073,  2] ../source3/smbd/open.c:1006(open_file)
>   nobody opened file New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-
> BC452ECB48F6.vsv
> read=Yes write=Yes (numopen=1)
> [2016/08/09 10:33:43.173787,  3]
> ../source3/smbd/oplock_linux.c:155(linux_set_kernel_oplock)
>   linux_set_kernel_oplock: got kernel oplock on file New Virtual
> Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-
> BC452ECB48F6.vsv,
> file_id = 800d0a1944a538:16b:0 gen_id = 1659754116
> [2016/08/09 10:33:43.175736,  3]
> ../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_INVALID_DEVICE_REQUEST] || at
> ../source3/smbd/smb2_ioctl.c:309
> [2016/08/09 10:33:43.176425,  3]
> ../source3/smbd/reply.c:8105(smbd_do_locking)
>   smbd_do_locking: fnum 1384394557 type=0 num_locks=1
> [2016/08/09 10:33:43.177077,  3]
> ../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex)
>   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> status[NT_STATUS_NOT_SUPPORTED] || at ../source3/smbd/smb2_ioctl.c:309
> [2016/08/09 10:33:43.177746,  3]
> ../source3/smbd/reply.c:8149(smbd_do_unlocking)
>   smbd_do_unlocking: fnum 1384394557 num_ulocks=1
> [2016/08/09 10:33:43.178461,  2]
> ../source3/smbd/close.c:780(close_normal_file)
>   nobody closed file New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6/8702D6E2-183B-4325-A9F2-
> BC452ECB48F6.vsv
> (numopen=0) NT_STATUS_OK
> [2016/08/09 10:33:43.185323,  3]
> ../source3/smbd/smb2_write.c:212(smb2_write_complete_internal)
>   smb2: fnum 722899260, file New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml, length=39920 offset=0
> wrote=39920
> [2016/08/09 10:33:43.186442,  3]
> ../source3/smbd/trans2.c:8298(smbd_do_setfilepathinfo)
>   smbd_do_setfilepathinfo: New Virtual Machine/Virtual
> Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6.xml (fnum 722899260)
> info_level=1004 totdata=40
> [2016/08/09 10:33:53.996668,  2]
> ../source3/smbd/service.c:1140(close_cnum)
>   hp3 (ipv4:192.168.170.43:49224) closed connection to service s1
> [2016/08/09 10:42:48.417755,  2]
> ../source3/smbd/server.c:576(remove_child_pid)
> 
> 
> Best Regards.
> Adam Blaszczykowski
> 
> 2016-08-04 16:16 GMT+02:00 Adam B??aszczykowski <
> adam.blaszczykowski at gmail.com>:
> 
> > Hello,
> > I have problem with Samba 4.4.3. I'd like to use SMB 3.02 file
shares as
> > shared storage for Hyper-V in Windows Server 2012 R2. I am able to
> create
> > Virtual Machine on Samba share using guest access, but when I try to
> start
> > VM I'm getting the following error:
> >
> > "An error occurred while attempting to start the selected virtual
> > machine(s).
> > 'New Virtual Machine' could not initialize.
> > An attempt to initialize VM saved state failed.
> > 'New Virtual Machine' could not initialize. (Virtual machine
ID
> > 70BB2BD1-B168-4944-9EEF-A665531EC058)
> > 'New Virtual Machine' could not create or access saved state
file...' "
> >
> > What do I need to change in Samba configuration to solve this problem
?
> > Please check my logs and configuration:
> >
> > *smb.conf:*
> > [global]
> >         bind interfaces only = No
> >         config backend = file
> >         dos charset = CP850
> >         enable core files = Yes
> >         interfaces > >         multicast dns register = Yes
> >         netbios aliases > >         netbios name = DSSHP2
> >         netbios scope > >         realm = RES.LOCAL
> >         server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc,
> drepl,
> > winbindd, ntp_signd, kcc, dnsupdate, dns
> >         server string = Samba 4.4.3
> >         share backend = classic
> >         unix charset = UTF-8
> >         workgroup = RES
> >         browse list = Yes
> >         domain master = No
> >         enhanced browsing = Yes
> >         lm announce = Auto
> >         lm interval = 60
> >         local master = No
> >         os level = 0
> >         preferred master = No
> >         allow dns updates = secure only
> >         dns forwarder > >         dns update command =
/usr/sbin/samba_dnsupdate
> >         machine password timeout = 604800
> >         nsupdate command = /usr/bin/nsupdate -g
> >         rndc command = /usr/sbin/rndc
> >         spn update command = /usr/sbin/samba_spnupdate
> >         mangle prefix = 1
> >         mangling method = hash2
> >         max stat cache size = 256
> >         stat cache = Yes
> >         client ldap sasl wrapping = sign
> >         ldap admin dn > >         ldap connection timeout = 2
> >         ldap delete dn = No
> >         ldap deref = auto
> >         ldap follow referral = Auto
> >         ldap group suffix > >         ldap idmap suffix >
>         ldap machine suffix > >         ldap page size = 1000
> >         ldap passwd sync = no
> >         ldap replication sleep = 1000
> >         ldap server require strong auth = Yes
> >         ldap ssl = start tls
> >         ldap ssl ads = No
> >         ldap suffix > >         ldap timeout = 15
> >         ldap user suffix > >         lock spin time = 200
> >         oplock break wait time = 0
> >         smb2 leases = No
> >         debug class = No
> >         debug hires timestamp = Yes
> >         debug pid = No
> >         debug prefix timestamp = No
> >         debug uid = No
> >         ldap debug level = 0
> >         ldap debug threshold = 10
> >         log file = /var/log/samba/log.%m
> >         logging > >         log level = 2
> >         max log size = 6000
> >         syslog = 1
> >         syslog only = No
> >         timestamp logs = Yes
> >         abort shutdown script > >         add group script >
>         add machine script > >         add user script > >     
add user to group script > >         allow nt4 crypto = No
> >         delete group script > >         delete user from group
script > >         delete user script > >         domain logons = No
> >         enable privileges = Yes
> >         init logon delay = 100
> >         init logon delayed hosts > >         logon drive >
>         logon home = \\%N\%U
> >         logon path = \\%N\%U\profile
> >         logon script > >         reject md5 clients = No
> >         set primary group script > >         shutdown script
> >         add share command > >         afs token lifetime =
604800
> >         afs username map > >         allow insecure wide links =
No
> >         async smb echo handler = No
> >         auto services > >         cache directory =
/var/cache/samba
> >         change notify = Yes
> >         change share command > >         cluster addresses >
>         clustering = No
> >         config file > >         ctdbd socket > >        
ctdb locktime warn threshold = 0
> >         ctdb timeout = 0
> >         default service > >         delete share command >
>         homedir map = auto.home
> >         kernel change notify = Yes
> >         lock directory = /var/run/samba
> >         log writeable files on exit = No
> >         message command > >         nbt client socket address =
0.0.0.0
> >         ncalrpc dir = /var/run/samba/ncalrpc
> >         NIS homedir = No
> >         nmbd bind explicit broadcast = Yes
> >         panic action > >         perfcount module > >     
pid directory = /var/run/samba
> >         registry shares = No
> >         remote announce > >         remote browse sync > >
reset on zero vc = No
> >         smbd profiling level = off
> >         state directory = /var/lib/samba
> >         usershare allow guests = No
> >         usershare max shares = 0
> >         usershare owner only = Yes
> >         usershare path = /var/lib/samba/usershares
> >         usershare prefix allow list > >         usershare prefix
deny list > >         usershare template share > >         utmp = No
> >         utmp directory > >         wtmp directory > >     
addport command > >         addprinter command > >         cups
connection timeout = 30
> >         cups encrypt = No
> >         cups server > >         deleteprinter command > > 
disable spoolss = No
> >         enumports command > >         iprint server > >   
load printers = Yes
> >         lpq cache time = 30
> >         os2 driver map > >         printcap cache time = 0
> >         printcap name > >         show add printer wizard = Yes
> >         cldap port = 389
> >         client ipc max protocol = default
> >         client ipc min protocol = default
> >         client max protocol = default
> >         client min protocol = CORE
> >         client use spnego = Yes
> >         dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr,
> > netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser,
> eventlog6,
> > backupkey, dnsserver
> >         defer sharing violations = Yes
> >         dgram port = 138
> >         disable netbios = No
> >         enable asu support = No
> >         eventlog list > >         large readwrite = Yes
> >         max mux = 50
> >         max ttl = 259200
> >         max wins ttl = 518400
> >         max xmit = 16644
> >         min receivefile size = 0
> >         min wins ttl = 21600
> >         name resolve order = lmhosts wins host bcast
> >         nbt port = 137
> >         nt pipe support = Yes
> >         nt status support = Yes
> >         read raw = Yes
> >         rpc big endian = No
> >         server max protocol = SMB3
> >         server min protocol = LANMAN1
> >         server multi channel support = No
> >         smb2 max credits = 8192
> >         smb2 max read = 8388608
> >         smb2 max trans = 8388608
> >         smb2 max write = 8388608
> >         smb ports = 445 139
> >         svcctl list > >         time server = No
> >         unicode = Yes
> >         unix extensions = No
> >         use spnego = Yes
> >         web port = 901
> >         write raw = Yes
> >         algorithmic rid base = 1000
> >         allow dcerpc auth level connect = No
> >         allow trusted domains = Yes
> >         auth methods > >         check password script > >
client ipc signing = default
> >         client lanman auth = No
> >         client NTLMv2 auth = Yes
> >         client plaintext auth = No
> >         client schannel = Auto
> >         client signing = default
> >         client use spnego principal = No
> >         dedicated keytab file > >         encrypt passwords =
Yes
> >         guest account = nobody
> >         kerberos method = default
> >         kpasswd port = 464
> >         krb5 port = 88
> >         lanman auth = No
> >         log nt token command > >         map to guest = Bad User
> >         map untrusted to domain = No
> >         ntlm auth = Yes
> >         ntp signd socket directory = /var/lib/samba/ntp_signd
> >         null passwords = No
> >         obey pam restrictions = No
> >         old password allowed period = 60
> >         pam password change = No
> >         passdb backend = tdbsam
> >         passdb expand explicit = No
> >         passwd chat = *new*password* %n\n *new*password* %n\n
*changed*
> >         passwd chat debug = No
> >         passwd chat timeout = 2
> >         passwd program > >         password server = *
> >         preload modules > >         private dir =
/var/lib/samba/private
> >         raw NTLMv2 auth = No
> >         rename user script > >         restrict anonymous = 0
> >         root directory > >         samba kcc command =
/usr/sbin/samba_kcc
> >         security = ADS
> >         server role = member server
> >         server schannel = Auto
> >         server signing = default
> >         smb passwd file = /var/lib/samba/private/smbpasswd
> >         tls cafile = tls/ca.pem
> >         tls certfile = tls/cert.pem
> >         tls crlfile > >         tls dh params file > >    
tls enabled = Yes
> >         tls keyfile = tls/key.pem
> >         tls priority = NORMAL:-VERS-SSL3.0
> >         tls verify peer = as_strict_as_possible
> >         unix password sync = No
> >         username level = 0
> >         username map > >         username map cache time = 0
> >         username map script > >         aio max threads = 100
> >         deadtime = 0
> >         getwd cache = Yes
> >         hostname lookups = No
> >         keepalive = 300
> >         max disk size = 0
> >         max open files = 16384
> >         max smbd processes = 0
> >         name cache timeout = 660
> >         socket options = TCP_NODELAY IPTOS_LOWDELAY
> >         use mmap = Yes
> >         get quota command > >         host msdfs = Yes
> >         set quota command > >         create krb5 conf = Yes
> >         idmap backend = tdb
> >         idmap cache time = 604800
> >         idmap gid > >         idmap negative cache time = 120
> >         idmap uid > >         neutralize nt4 emulation = No
> >         reject md5 servers = No
> >         require strong key = Yes
> >         template homedir = /home/%D/%U
> >         template shell = /bin/false
> >         winbind cache time = 300
> >         winbindd privileged socket directory =
/var/lib/samba/winbindd_
> > privileged
> >         winbindd socket directory = /var/run/samba/winbindd
> >         winbind enum groups = Yes
> >         winbind enum users = Yes
> >         winbind expand groups = 0
> >         winbind max clients = 200
> >         winbind max domain connections = 1
> >         winbind nested groups = Yes
> >         winbind normalize names = No
> >         winbind nss info = template
> >         winbind offline logon = No
> >         winbind reconnect delay = 30
> >         winbind refresh tickets = Yes
> >         winbind request timeout = 200
> >         winbind rpc only = No
> >         winbind sealed pipes = Yes
> >         winbind separator = \
> >         winbind trusted domains only = No
> >         winbind use default domain = No
> >         dns proxy = Yes
> >         wins hook > >         wins proxy = No
> >         wins server > >         wins support = No
> >         idmap config * : rangesize = 1000000
> >         idmap config * : range = 1000000-19999999
> >         shadow: localtime = yes
> >         shadow: format = autosnap_%Y-%m-%d-%H%M%S
> >         shadow: sort = desc
> >         shadow: snapdir = .zfs/snapshot
> >         fileid:mapping = fsid
> >         idmap config * : backend = autorid
> >         comment > >         path > >        
administrative share = No
> >         browseable = Yes
> >         case sensitive = Auto
> >         default case = lower
> >         delete veto files = No
> >         hide dot files = Yes
> >         hide files > >         hide special files = No
> >         hide unreadable = No
> >         hide unwriteable files = No
> >         mangled names = Yes
> >         mangling char = ~
> >         map archive = Yes
> >         map hidden = No
> >         map readonly = yes
> >         map system = No
> >         preserve case = Yes
> >         short preserve case = Yes
> >         store dos attributes = Yes
> >         veto files = /.nfs/._.DS_Store/:2eFBCLockFolder/.
> > FBCLockFolder/:2eFBCIndex/.FBCIndex/:2eDS_Store/.DS_
> > Store/TheVolumeSettingsFolder/TheFindByContentFolder/Temporary
> > Items/Network Trash Folder/.AppleDB/:2eVolumeIcon.
> > icns/.VolumeIcon.icns/Icon?/.Ap$
> >         veto oplock files > >         blocking locks = Yes
> >         csc policy = manual
> >         fake oplocks = No
> >         kernel oplocks = Yes
> >         kernel share modes = Yes
> >         level2 oplocks = Yes
> >         locking = Yes
> >         oplock contention limit = 2
> >         oplocks = Yes
> >         posix locking = Yes
> >         strict locking = Auto
> >         afs share = No
> >         available = Yes
> >         copy > >         delete readonly = No
> >         dfree cache time = 0
> >         dfree command > >         directory name cache size =
100
> >         dmapi support = No
> >         dont descend > >         dos filemode = No
> >         dos filetime resolution = No
> >         dos filetimes = Yes
> >         fake directory create times = No
> >         follow symlinks = Yes
> >         fstype = NTFS
> >         include = /var/nasconf/nas/smb/Pools/Pool-0
> >         magic output > >         magic script > >        
postexec > >         preexec > >         preexec close = No
> >         root postexec > >         root preexec > >        
root preexec close = No
> >         spotlight = No
> >         volume > >         wide links = No
> >         cups options > >         default devmode = Yes
> >         force printername = No
> >         lppause command > >         lpq command = lpq
-P'%p'
> >         lpresume command > >         lprm command = lprm
-P'%p' %j
> >         max print jobs = 1000
> >         max reported print jobs = 0
> >         printable = No
> >         print command = lpr -r -P'%p' %s
> >         printer name > >         printing = bsd
> >         printjob username = %U
> >         print notify backchannel = No
> >         queuepause command > >         queueresume command >
>         use client driver = No
> >         acl allow execute always = No
> >         acl check permissions = Yes
> >         acl map full control = Yes
> >         durable handles = Yes
> >         ea support = No
> >         map acl inherit = No
> >         nt acl support = Yes
> >         profile acls = No
> >         access based share enum = No
> >         acl group control = No
> >         admin users = RES+administrator
> >         create mask = 0744
> >         directory mask = 0755
> >         force create mode = 0000
> >         force directory mode = 0000
> >         force group > >         force unknown acl user = Yes
> >         force user > >         guest ok = No
> >         guest only = No
> >         hosts allow > >         hosts deny > >        
inherit acls = No
> >         inherit owner = No
> >         inherit permissions = No
> >         invalid users = root
> >         only user = No
> >         read list > >         read only = Yes
> >         smb encrypt = default
> >         username > >         valid users > >         write
list > >         aio read size = 0
> >         aio write behind > >         aio write size = 0
> >         allocation roundup size = 1048576
> >         block size = 1024
> >         max connections = 0
> >         min print space = 0
> >         strict allocate = No
> >         strict rename = No
> >         strict sync = No
> >         sync always = No
> >         use sendfile = No
> >         write cache size = 0
> >         msdfs proxy > >         msdfs root = No
> >         msdfs shuffle referrals = No
> >         ntvfs handler = unixuid, default
> >         vfs objects = acl_xattr shadow_copy2 fileid
> >
> >
> > [s1]
> >         path = /Pools/Pool-0/d1/s1
> >         case sensitive = No
> >         map acl inherit = Yes
> >         guest ok = Yes
> >         guest only = Yes
> >         inherit permissions = Yes
> >         read only = No
> >
> >
> > *Samba logs:*
> > [2016/08/04 15:52:32.050297,  3] ../auth/ntlmssp/ntlmssp_util.
> > c:69(debug_ntlmssp_flags)
> >   Got NTLMSSP neg_flags=0xe2088297
> > [2016/08/04 15:52:32.050822,  3]
> ../source3/lib/access.c:338(allow_access)
> >   Allowed connection from 192.168.160.5 (192.168.160.5)
> > [2016/08/04 15:52:32.050897,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.052771,  3] ../source3/smbd/service.c:614(
> > make_connection_snum)
> >   Connect path is '/tmp' for service [IPC$]
> > [2016/08/04 15:52:32.052852,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.054186,  3] ../source3/smbd/vfs.c:113(vfs_
> > init_default)
> >   Initialising default vfs hooks
> > [2016/08/04 15:52:32.054284,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [/[Default VFS]/]
> > [2016/08/04 15:52:32.054325,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [fileid]
> > [2016/08/04 15:52:32.057787,  2] ../lib/util/modules.c:196(do_
> > smb_load_module)
> >   Module 'fileid' loaded
> > [2016/08/04 15:52:32.057850,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [shadow_copy2]
> > [2016/08/04 15:52:32.060852,  2] ../lib/util/modules.c:196(do_
> > smb_load_module)
> >   Module 'shadow_copy2' loaded
> > [2016/08/04 15:52:32.060914,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [acl_xattr]
> > [2016/08/04 15:52:32.063903,  2] ../lib/util/modules.c:196(do_
> > smb_load_module)
> >   Module 'acl_xattr' loaded
> > [2016/08/04 15:52:32.064037,  2] ../source3/modules/vfs_acl_
> > xattr.c:193(connect_acl_xattr)
> >   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> > and 'force unknown acl user = true' for service IPC$
> > [2016/08/04 15:52:32.064228,  3] ../source3/smbd/oplock_linux.
> > c:251(linux_init_kernel_oplocks)
> >   Linux kernel oplocks enabled
> > [2016/08/04 15:52:32.064310,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.065553,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID RES+administrator is not in a valid format
> > [2016/08/04 15:52:32.067951,  3] ../source3/smbd/service.c:864(
> > make_connection_snum)
> >   cezik2 (ipv4:192.168.160.5:56300) connect to service IPC$ initially
as
> > user RES\cezik2$ (uid=2002208, gid=2000515) (pid 48013)
> > [2016/08/04 15:52:32.068280,  3] ../auth/ntlmssp/ntlmssp_
> > server.c:452(ntlmssp_server_preauth)
> >   Got user=[Administrator] domain=[RES] workstation=[CEZIK2] len1=24
> > len2=232
> > [2016/08/04 15:52:32.068386,  3] ../source3/param/loadparm.c:
> > 3742(lp_load_ex)
> >   lp_load_ex: refreshing parameters
> > [2016/08/04 15:52:32.068561,  3] ../source3/param/loadparm.c:
> > 544(init_globals)
> >   Initialising global parameters
> > [2016/08/04 15:52:32.068804,  3] ../source3/param/loadparm.c:
> > 2671(lp_do_section)
> >   Processing section "[global]"
> > [2016/08/04 15:52:32.070306,  2] ../source3/param/loadparm.c:
> > 2688(lp_do_section)
> >   Processing section "[s1]"
> > [2016/08/04 15:52:32.070775,  3] ../source3/param/loadparm.c:
> > 1588(lp_add_ipc)
> >   adding IPC service
> > [2016/08/04 15:52:32.071078,  3] ../source3/auth/auth.c:178(
> > auth_check_ntlm_password)
> >   check_ntlm_password:  Checking password for unmapped user
> > [RES]\[Administrator]@[CEZIK2] with the new password interface
> > [2016/08/04 15:52:32.071125,  3] ../source3/auth/auth.c:181(
> > auth_check_ntlm_password)
> >   check_ntlm_password:  mapped user is: [RES]\[Administrator]@[CEZIK2]
> > [2016/08/04 15:52:32.079161,  3] ../source3/auth/auth.c:249(
> > auth_check_ntlm_password)
> >   check_ntlm_password: winbind authentication for user [Administrator]
> > succeeded
> > [2016/08/04 15:52:32.079257,  2] ../source3/auth/auth.c:305(
> > auth_check_ntlm_password)
> >   check_ntlm_password:  authentication for user [Administrator] ->
> > [Administrator] -> [RES\administrator] succeeded
> > [2016/08/04 15:52:32.080871,  3] ../auth/ntlmssp/ntlmssp_sign.
> > c:509(ntlmssp_sign_reset)
> >   NTLMSSP Sign/Seal - Initialising with flags:
> > [2016/08/04 15:52:32.080932,  3] ../auth/ntlmssp/ntlmssp_util.
> > c:69(debug_ntlmssp_flags)
> >   Got NTLMSSP neg_flags=0xe2088215
> > [2016/08/04 15:52:32.081027,  3] ../auth/ntlmssp/ntlmssp_sign.
> > c:509(ntlmssp_sign_reset)
> >   NTLMSSP Sign/Seal - Initialising with flags:
> > [2016/08/04 15:52:32.081062,  3] ../auth/ntlmssp/ntlmssp_util.
> > c:69(debug_ntlmssp_flags)
> >   Got NTLMSSP neg_flags=0xe2088215
> > [2016/08/04 15:52:32.083056,  3] ../source3/smbd/password.c:
> > 144(register_homes_share)
> >   Adding homes service for user 'RES\administrator' using home
> directory:
> > '/home/RES/administrator'
> > [2016/08/04 15:52:32.084607,  3]
> ../source3/lib/access.c:338(allow_access)
> >   Allowed connection from 192.168.160.5 (192.168.160.5)
> > [2016/08/04 15:52:32.084746,  3] ../source3/smbd/service.c:614(
> > make_connection_snum)
> >   Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
> > [2016/08/04 15:52:32.084804,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.086029,  3] ../source3/smbd/vfs.c:113(vfs_
> > init_default)
> >   Initialising default vfs hooks
> > [2016/08/04 15:52:32.086094,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [/[Default VFS]/]
> > [2016/08/04 15:52:32.086133,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [fileid]
> > [2016/08/04 15:52:32.086166,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [shadow_copy2]
> > [2016/08/04 15:52:32.086199,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [acl_xattr]
> > [2016/08/04 15:52:32.086306,  2] ../source3/modules/vfs_acl_
> > xattr.c:193(connect_acl_xattr)
> >   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> > and 'force unknown acl user = true' for service s1
> > [2016/08/04 15:52:32.086527,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.087881,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID RES+administrator is not in a valid format
> > [2016/08/04 15:52:32.090417,  2] ../source3/smbd/service.c:864(
> > make_connection_snum)
> >   cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as
> > user nobody (uid=65534, gid=65534) (pid 48013)
> > [2016/08/04 15:52:32.090689,  3]
> ../source3/lib/access.c:338(allow_access)
> >   Allowed connection from 192.168.160.5 (192.168.160.5)
> > [2016/08/04 15:52:32.090758,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.092053,  3] ../source3/smbd/service.c:614(
> > make_connection_snum)
> >   Connect path is '/tmp' for service [IPC$]
> > [2016/08/04 15:52:32.092121,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.093299,  3] ../source3/smbd/vfs.c:113(vfs_
> > init_default)
> >   Initialising default vfs hooks
> > [2016/08/04 15:52:32.093350,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [/[Default VFS]/]
> > [2016/08/04 15:52:32.093395,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [fileid]
> > [2016/08/04 15:52:32.093429,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [shadow_copy2]
> > [2016/08/04 15:52:32.093462,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [acl_xattr]
> > [2016/08/04 15:52:32.093547,  2] ../source3/modules/vfs_acl_
> > xattr.c:193(connect_acl_xattr)
> >   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> > and 'force unknown acl user = true' for service IPC$
> > [2016/08/04 15:52:32.093699,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.094882,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID RES+administrator is not in a valid format
> > [2016/08/04 15:52:32.097096,  3] ../source3/smbd/service.c:864(
> > make_connection_snum)
> >   cezik2 (ipv4:192.168.160.5:56300) connect to service IPC$ initially
as
> > user RES\administrator (uid=2000500, gid=2000513) (pid 48013)
> > [2016/08/04 15:52:32.097384,  3] ../source3/smbd/msdfs.c:993(
> > get_referred_path)
> >   get_referred_path: |s1| in dfs path \192.168.170.38\s1 is not a dfs
> root.
> > [2016/08/04 15:52:32.097448,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> > status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
> > [2016/08/04 15:52:32.100863,  2]
> ../source3/smbd/dosmode.c:136(unix_mode)
> >   unix_mode(desktop.ini) inheriting from .
> > [2016/08/04 15:52:32.100951,  2]
> ../source3/smbd/dosmode.c:158(unix_mode)
> >   unix_mode(desktop.ini) inherit mode 40777
> > [2016/08/04 15:52:32.101042,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> > status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at
> > ../source3/smbd/smb2_create.c:293
> > [2016/08/04 15:52:32.101261,  3]
> ../source3/lib/access.c:338(allow_access)
> >   Allowed connection from 192.168.160.5 (192.168.160.5)
> > [2016/08/04 15:52:32.101390,  3] ../source3/smbd/service.c:614(
> > make_connection_snum)
> >   Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
> > [2016/08/04 15:52:32.101448,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.102776,  3] ../source3/smbd/vfs.c:113(vfs_
> > init_default)
> >   Initialising default vfs hooks
> > [2016/08/04 15:52:32.102840,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [/[Default VFS]/]
> > [2016/08/04 15:52:32.102880,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [fileid]
> > [2016/08/04 15:52:32.102912,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [shadow_copy2]
> > [2016/08/04 15:52:32.102945,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [acl_xattr]
> > [2016/08/04 15:52:32.103053,  2] ../source3/modules/vfs_acl_
> > xattr.c:193(connect_acl_xattr)
> >   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> > and 'force unknown acl user = true' for service s1
> > [2016/08/04 15:52:32.103233,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:32.104527,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID RES+administrator is not in a valid format
> > [2016/08/04 15:52:32.106936,  2] ../source3/smbd/service.c:864(
> > make_connection_snum)
> >   cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as
> > user nobody (uid=65534, gid=65534) (pid 48013)
> > [2016/08/04 15:52:32.107169,  3] ../source3/smbd/smb2_notify.c:
> > 250(smbd_smb2_notify_send)
> >   smbd_smb2_notify_send: notify change called on ., filter > >
FILE_NAME|DIR_NAME|ATTRIBUTES|LAST_WRITE, recursive = 0
> > [2016/08/04 15:52:32.107522,  3] ../source3/smbd/msdfs.c:993(
> > get_referred_path)
> >   get_referred_path: |s1| in dfs path \192.168.170.38\s1 is not a dfs
> root.
> > [2016/08/04 15:52:32.107582,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> > status[NT_STATUS_NOT_FOUND] || at ../source3/smbd/smb2_ioctl.c:309
> > [2016/08/04 15:52:32.107874,  2]
> ../source3/smbd/dosmode.c:136(unix_mode)
> >   unix_mode(.) inheriting from .
> > [2016/08/04 15:52:32.107933,  2]
> ../source3/smbd/dosmode.c:158(unix_mode)
> >   unix_mode(.) inherit mode 40777
> > [2016/08/04 15:52:32.108704,  3]
../source3/smbd/dir.c:629(dptr_create)
> >   creating new dirptr 0 for path ., expect_close = 0
> > [2016/08/04 15:52:32.108837,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found . fname=. (.)
> > [2016/08/04 15:52:32.108950,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
> > [2016/08/04 15:52:32.109661,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found ondss fname=ondss (ondss)
> > [2016/08/04 15:52:32.109856,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found New folder fname=New folder
(New
> > folder)
> > [2016/08/04 15:52:32.110115,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[9]
> > status[STATUS_NO_MORE_FILES] || at ../source3/smbd/smb2_query_
> > directory.c:154
> > [2016/08/04 15:52:32.111645,  3] ../source3/smbd/trans2.c:3347(
> > smbd_do_qfsinfo)
> >   smbd_do_qfsinfo: level = 1007
> > [2016/08/04 15:52:32.112208,  3] ../source3/lib/sysquotas.c:
> > 433(sys_get_quota)
> >   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-
> 0/d1]
> > qtype[2] id[65534]: No such file or directory
> > [2016/08/04 15:52:32.112656,  3] ../source3/lib/sysquotas.c:
> > 433(sys_get_quota)
> >   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-
> 0/d1]
> > qtype[4] id[65534]: No such file or directory
> > [2016/08/04 15:52:32.112996,  2] ../source3/smbd/open.c:3450(
> > open_directory)
> >   open_directory: unable to create ondss/New Virtual Machine/Virtual
> > Machines/70BB2BD1-B168-4944-9EEF-A665531EC058. Error was
> > NT_STATUS_OBJECT_NAME_COLLISION
> > [2016/08/04 15:52:32.113060,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> > status[NT_STATUS_OBJECT_NAME_COLLISION] || at
> > ../source3/smbd/smb2_create.c:293
> > [2016/08/04 15:52:32.122030,  2]
> ../source3/smbd/dosmode.c:136(unix_mode)
> >   unix_mode(ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-
> 4944-
> > 9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv) inheriting
> > from ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-4944-
> > 9EEF-A665531EC058
> > [2016/08/04 15:52:32.122108,  2]
> ../source3/smbd/dosmode.c:158(unix_mode)
> >   unix_mode(ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-
> 4944-
> > 9EEF-A665531EC058/70BB2BD1-B168-4944-9EEF-A665531EC058.vsv) inherit
mode
> > 40775
> > [2016/08/04 15:52:32.123389,  2]
../source3/smbd/open.c:1006(open_file)
> >   nobody opened file ondss/New Virtual Machine/Virtual
> > Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-
> > B168-4944-9EEF-A665531EC058.vsv read=Yes write=Yes (numopen=1)
> > [2016/08/04 15:52:32.124258,  3] ../source3/smbd/oplock_linux.
> > c:155(linux_set_kernel_oplock)
> >   linux_set_kernel_oplock: got kernel oplock on file ondss/New Virtual
> > Machine/Virtual
Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-
> > B168-4944-9EEF-A665531EC058.vsv, file_id = 800d0a1944a538:12e:0 gen_id
> > 1868341241
> > [2016/08/04 15:52:32.127121,  2] ../source3/modules/vfs_
> > default.c:1404(vfswrap_fsctl)
> >   vfswrap_fsctl (0x1401d4): Currently not implemented.
> > [2016/08/04 15:52:32.127192,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> > status[NT_STATUS_INVALID_DEVICE_REQUEST] || at
> > ../source3/smbd/smb2_ioctl.c:309
> > [2016/08/04 15:52:32.127909,  3] ../source3/smbd/reply.c:8105(
> > smbd_do_locking)
> >   smbd_do_locking: fnum 910886817 type=0 num_locks=1
> > [2016/08/04 15:52:32.128929,  3] ../source3/smbd/trans2.c:3347(
> > smbd_do_qfsinfo)
> >   smbd_do_qfsinfo: level = 1007
> > [2016/08/04 15:52:32.129447,  3] ../source3/lib/sysquotas.c:
> > 433(sys_get_quota)
> >   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-
> 0/d1]
> > qtype[2] id[65534]: No such file or directory
> > [2016/08/04 15:52:32.129879,  3] ../source3/lib/sysquotas.c:
> > 433(sys_get_quota)
> >   sys_get_vfs_quota() failed for mntpath[/Pools/Pool-0/d1] bdev[Pool-
> 0/d1]
> > qtype[4] id[65534]: No such file or directory
> > [2016/08/04 15:52:32.130074,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1]
> > status[NT_STATUS_NOT_SUPPORTED] || at ../source3/smbd/smb2_ioctl.c:309
> > [2016/08/04 15:52:32.131922,  3] ../source3/smbd/trans2.c:3347(
> > smbd_do_qfsinfo)
> >   smbd_do_qfsinfo: level = 1001
> > [2016/08/04 15:52:32.132053,  3] ../source3/smbd/trans2.c:3347(
> > smbd_do_qfsinfo)
> >   smbd_do_qfsinfo: level = 1005
> > [2016/08/04 15:52:32.132263,  3] ../source3/smbd/reply.c:8149(
> > smbd_do_unlocking)
> >   smbd_do_unlocking: fnum 910886817 num_ulocks=1
> > [2016/08/04 15:52:32.133149,  2] ../source3/smbd/close.c:780(
> > close_normal_file)
> >   nobody closed file ondss/New Virtual Machine/Virtual
> > Machines/70BB2BD1-B168-4944-9EEF-A665531EC058/70BB2BD1-
> > B168-4944-9EEF-A665531EC058.vsv (numopen=0) NT_STATUS_OK
> > [2016/08/04 15:52:32.723171,  3]
../source3/smbd/dir.c:629(dptr_create)
> >   creating new dirptr 0 for path ., expect_close = 0
> > [2016/08/04 15:52:32.723374,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found . fname=. (.)
> > [2016/08/04 15:52:32.723489,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found .. fname=.. (..)
> > [2016/08/04 15:52:32.723758,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found ondss fname=ondss (ondss)
> > [2016/08/04 15:52:32.723934,  3] ../source3/smbd/dir.c:1188(
> > smbd_dirptr_get_entry)
> >   smbd_dirptr_get_entry mask=[*] found New folder fname=New folder
(New
> > folder)
> > [2016/08/04 15:52:32.724134,  3] ../source3/smbd/smb2_server.c:
> > 2935(smbd_smb2_request_error_ex)
> >   smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5]
> > status[STATUS_NO_MORE_FILES] || at ../source3/smbd/smb2_query_
> > directory.c:154
> > [2016/08/04 15:52:43.905087,  3] ../source3/smbd/service.c:
> > 1140(close_cnum)
> >   cezik2 (ipv4:192.168.160.5:56300) closed connection to service IPC$
> > [2016/08/04 15:52:43.905486,  3] ../source3/smbd/service.c:
> > 1140(close_cnum)
> >   cezik2 (ipv4:192.168.160.5:56300) closed connection to service IPC$
> > [2016/08/04 15:52:43.905821,  2] ../source3/smbd/service.c:
> > 1140(close_cnum)
> >   cezik2 (ipv4:192.168.160.5:56300) closed connection to service s1
> > [2016/08/04 15:52:51.398356,  3] ../auth/ntlmssp/ntlmssp_util.
> > c:69(debug_ntlmssp_flags)
> >   Got NTLMSSP neg_flags=0xe2088297
> > [2016/08/04 15:52:51.399915,  3] ../auth/ntlmssp/ntlmssp_
> > server.c:452(ntlmssp_server_preauth)
> >   Got user=[CEZIK2$] domain=[RES] workstation=[CEZIK2] len1=24
len2=232
> > [2016/08/04 15:52:51.400059,  3] ../source3/param/loadparm.c:
> > 3742(lp_load_ex)
> >   lp_load_ex: refreshing parameters
> > [2016/08/04 15:52:51.400221,  3] ../source3/param/loadparm.c:
> > 544(init_globals)
> >   Initialising global parameters
> > [2016/08/04 15:52:51.400472,  3] ../source3/param/loadparm.c:
> > 2671(lp_do_section)
> >   Processing section "[global]"
> > [2016/08/04 15:52:51.401973,  2] ../source3/param/loadparm.c:
> > 2688(lp_do_section)
> >   Processing section "[s1]"
> > [2016/08/04 15:52:51.402442,  3] ../source3/param/loadparm.c:
> > 1588(lp_add_ipc)
> >   adding IPC service
> > [2016/08/04 15:52:51.402825,  3] ../source3/auth/auth.c:178(
> > auth_check_ntlm_password)
> >   check_ntlm_password:  Checking password for unmapped user
> > [RES]\[CEZIK2$]@[CEZIK2] with the new password interface
> > [2016/08/04 15:52:51.402895,  3] ../source3/auth/auth.c:181(
> > auth_check_ntlm_password)
> >   check_ntlm_password:  mapped user is: [RES]\[CEZIK2$]@[CEZIK2]
> > [2016/08/04 15:52:51.406153,  3] ../source3/auth/auth.c:249(
> > auth_check_ntlm_password)
> >   check_ntlm_password: winbind authentication for user [CEZIK2$]
> succeeded
> > [2016/08/04 15:52:51.406252,  2] ../source3/auth/auth.c:305(
> > auth_check_ntlm_password)
> >   check_ntlm_password:  authentication for user [CEZIK2$] ->
[CEZIK2$] -
> >
> > [RES\cezik2$] succeeded
> > [2016/08/04 15:52:51.407632,  3] ../auth/ntlmssp/ntlmssp_sign.
> > c:509(ntlmssp_sign_reset)
> >   NTLMSSP Sign/Seal - Initialising with flags:
> > [2016/08/04 15:52:51.407691,  3] ../auth/ntlmssp/ntlmssp_util.
> > c:69(debug_ntlmssp_flags)
> >   Got NTLMSSP neg_flags=0xe2088215
> > [2016/08/04 15:52:51.407760,  3] ../auth/ntlmssp/ntlmssp_sign.
> > c:509(ntlmssp_sign_reset)
> >   NTLMSSP Sign/Seal - Initialising with flags:
> > [2016/08/04 15:52:51.407793,  3] ../auth/ntlmssp/ntlmssp_util.
> > c:69(debug_ntlmssp_flags)
> >   Got NTLMSSP neg_flags=0xe2088215
> > [2016/08/04 15:52:51.409209,  3] ../source3/smbd/password.c:
> > 144(register_homes_share)
> >   Adding homes service for user 'RES\cezik2$' using home
directory:
> > '/home/RES/cezik2_'
> > [2016/08/04 15:52:51.410244,  3]
> ../source3/lib/access.c:338(allow_access)
> >   Allowed connection from 192.168.160.5 (192.168.160.5)
> > [2016/08/04 15:52:51.410401,  3] ../source3/smbd/service.c:614(
> > make_connection_snum)
> >   Connect path is '/Pools/Pool-0/d1/s1' for service [s1]
> > [2016/08/04 15:52:51.410464,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:51.411891,  3] ../source3/smbd/vfs.c:113(vfs_
> > init_default)
> >   Initialising default vfs hooks
> > [2016/08/04 15:52:51.411956,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [/[Default VFS]/]
> > [2016/08/04 15:52:51.411995,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [fileid]
> > [2016/08/04 15:52:51.412028,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [shadow_copy2]
> > [2016/08/04 15:52:51.412061,  3] ../source3/smbd/vfs.c:139(vfs_
> > init_custom)
> >   Initialising custom vfs hooks from [acl_xattr]
> > [2016/08/04 15:52:51.412181,  2] ../source3/modules/vfs_acl_
> > xattr.c:193(connect_acl_xattr)
> >   connect_acl_xattr: setting 'inherit acls = true' 'dos
filemode = true'
> > and 'force unknown acl user = true' for service s1
> > [2016/08/04 15:52:51.412357,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID root is not in a valid format
> > [2016/08/04 15:52:51.413673,  3] ../libcli/security/dom_sid.c:
> > 209(dom_sid_parse_endp)
> >   string_to_sid: SID RES+administrator is not in a valid format
> > [2016/08/04 15:52:51.416348,  2] ../source3/smbd/service.c:864(
> > make_connection_snum)
> >   cezik2 (ipv4:192.168.160.5:56300) connect to service s1 initially as
> > user nobody (uid=65534, gid=65534) (pid 48013)
> > [2016/08/04 15:52:51.418626,  2]
> ../source3/smbd/dosmode.c:136(unix_mode)
> >   unix_mode(ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-
> 4944-9EEF-A665531EC058.xml)
> > inheriting from ondss/New Virtual Machine/Virtual Machines
> > [2016/08/04 15:52:51.418701,  2]
> ../source3/smbd/dosmode.c:158(unix_mode)
> >   unix_mode(ondss/New Virtual Machine/Virtual Machines/70BB2BD1-B168-
> 4944-9EEF-A665531EC058.xml)
> > inherit mode 40775
> > [2016/08/04 15:52:51.419122,  2]
../source3/smbd/open.c:1006(open_file)
> >   nobody opened file ondss/New Virtual Machine/Virtual
> > Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml read=Yes write=Yes
> > (numopen=1)
> > [2016/08/04 15:52:51.419273,  3] ../source3/smbd/oplock_linux.
> > c:155(linux_set_kernel_oplock)
> >   linux_set_kernel_oplock: got kernel oplock on file ondss/New Virtual
> > Machine/Virtual Machines/70BB2BD1-B168-4944-9EEF-A665531EC058.xml,
> > file_id = 800d0a1944a538:113:0 gen_id = 260526076
> >
> > Thank you in advance!
> >
> > Best Regards.
> > Adam Blaszczykowski
> >
> >
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
Steve Ankeny
2016-Aug-09  17:22 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
On 08/09/2016 04:53 AM, Adam Błaszczykowski wrote:> [2016/08/09 10:33:43.166829, 2] > ../source3/modules/vfs_acl_xattr.c:193(connect_acl_xattr) > connect_acl_xattr: setting 'inherit acls = true' 'dos filemode = true' > and 'force unknown acl user = true' for service s1 > [2016/08/09 10:33:43.166984, 3] > ../libcli/security/dom_sid.c:209(dom_sid_parse_endp) > string_to_sid: SID root is not in a valid format > [2016/08/09 10:33:43.168317, 3] > ../libcli/security/dom_sid.c:209(dom_sid_parse_endp) > string_to_sid: SID RES\administrator is not in a valid format > [2016/08/09 10:33:43.168930, 2] > ../source3/smbd/service.c:864(make_connection_snum) > hp3 (ipv4:192.168.170.43:49224) connect to service s1 initially as user > nobody (uid=65534, gid=65534) (pid 25315) > [2016/08/09 10:33:43.170564, 2] ../source3/smbd/open.c:3450(open_directory) > open_directory: unable to create New Virtual Machine/Virtual > Machines/8702D6E2-183B-4325-A9F2-BC452ECB48F6. Error was > NT_STATUS_OBJECT_NAME_COLLISION > [2016/08/09 10:33:43.170633, 3] > ../source3/smbd/smb2_server.c:2935(smbd_smb2_request_error_ex) > smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] > status[NT_STATUS_OBJECT_NAME_COLLISION] || at > ../source3/smbd/smb2_create.c:293I AM NOT AN EXPERT but this looks suspect to me -- IF 'root' or 'administrator' permissions are required to initialize the VM, it would appear your script cannot distinguish between the two -- i.e., you haven't mapped user account permissions correctly. Again. I am not an expert, so someone else will have to tell you how that's done (id_mapping)
Jeremy Allison
2016-Aug-10  00:07 UTC
[Samba] Hyper-V Virtual Machines fail to start on Samba shares
On Tue, Aug 09, 2016 at 10:53:24AM +0200, Adam Błaszczykowski wrote:> Hello, > As you said, I have changed Samba configuration and reconfigure Active > Directory domain, but still the same problem, I cannot start Hyper-V > Virtual Machine stored on Samba shares.I think you're running into this: https://bugzilla.samba.org/show_bug.cgi?id=9938 There are some patches floating about that implement the missing resilient handles inside Samba but they haven't made it into master yet. We're working on it.
Maybe Matching Threads
- Hyper-V Virtual Machines fail to start on Samba shares
- Hyper-V Virtual Machines fail to start on Samba shares
- Hyper-V Virtual Machines fail to start on Samba shares
- WindowsPE 10.0 -- Samba 4.4.5 connection problem
- WindowsPE 10.0 -- Samba 4.4.5 connection problem