HyperV and Samba

Partha Sarathi parthasarathi.bl at gmail.com
Sun Apr 12 11:36:07 MDT 2015


Even I tried creating a CIFS share against samba 4.2. server from HyperV
command prompt as suggested in Jose's presentation. But it failed as below,

PS Y:\> New-SmbShare -Name VMS -Path y:\VMS -FullAccess
*New-SmbShare : The device or directory does not exist.*
At line:1 char:1
+ New-SmbShare -Name VMS -Path y:\VMS -FullAccess Demosp\administrator
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified:
   ows/SMB/MSFT_SMBShare) [New-SmbShare], CimException
    + FullyQualifiedErrorId : Windows System Error 2116,New-SmbShare

I collected the packets but there were no requests against samba server
when I performed the above operation. Looks like HyperV is not considering
SAMBA 4.2 as file server.


On Fri, Apr 10, 2015 at 8:59 PM, Steve French <smfrench at gmail.com> wrote:

> I was doing some experiments with Richard and David's HyperV patches
> which seemed to work ok (at least for image creation, it failed when
> actually running the image due to a configuration issue) - I could see
> the effects of the three major sets of changes they made in the
> wireshark traces
> set compression
> and
> request resilient handles
> and
> various sparse file features used in image creation
> but something very basic caused problems when I didn't do image
> creation via PowerShell (as Jose's presentation gave as an example).
> With Samba 4.1 (even without any changes) -  "net ads join" (and also
> "net rpc join") will create and join a Samba/Linux computer to Windows
> 2012R2 domain (which you can prove by doing "dsquery computer") but
> the Samba server does not show in the list of servers in any of the
> Windows GUIs (e.g.   HyperV list of servers, or the List of File
> Servers) so it is hard to manage.   I can of course explicitly connect
> to the Samba server from Windows (NET USE or explorer), but am puzzled
> how to get Samba server to show up in the list of file servers (in
> HyperV configuration) so we don't have to do this through obscure
> power shell commands.
> Anyone have any success getting Samba to show up in list of file
> servers in these Windows GUIs - I had assumed that some LDAP entries
> need to be udpated in "net ads join" that aren't being updated.
> --
> Thanks,
> Steve

Thanks & Regards

More information about the samba-technical mailing list