VMware Cloud Community
techguy131
Contributor
Contributor

VMWARE 7.0.2 Ubuntu 22.10 Samba File Sharing for Windows

Hello Everyone

I am new to vmware

I created a VM with Ubuntu and installed Samba within the OS

The VM has access to the internet and it can ping a Windows IP

The Windows Client can also ping the VM Ubuntu machine with success

I can also access the shares within Ubunutu \\10.1.10.2\sharing

However, Windows 10 Pro client can not access the Ubuntu Shares

 

It is worth noting I can access the share via hostname \\print-server\sharing this works fine

 

Any help would be appreciated 

Reply
0 Kudos
7 Replies
DCasota
Expert
Expert

Hi,

As a Windows 10 Pro client cannot access the Ubuntu share, you could start with double checking the Windows 10 Pro settings e.g. AllowInsecureGuestAuth=1 and RequireSecuritySignature=1 .

 

Reply
0 Kudos
techguy131
Contributor
Contributor

The Windows 10 Pro client is able to access the the Ubuntu share via IP6 or Hostname it is only IP4 which is the issue

Reply
0 Kudos
depping
Leadership
Leadership

probably best to ask on a Microsoft or Linux forum, as if IPv6 works this has nothing to do with vSphere :slightly_smiling_face:

Reply
0 Kudos
techguy131
Contributor
Contributor

Noticed if I change the from STATIC to DHCP within Ubunutu VM I can access all shares and printers

Does ESXI not control the network or is the network assigned from within the VM ? 

Reply
0 Kudos
DCasota
Expert
Expert

Hi,

@depping is right, but here some thoughts.

- check the network locationprofiles (private, domain, public) configuration
- Run smb check

Test-NetConnection -ComputerName 192.168.1.200 -CommonTCPPort SMB
net view \\192.168.1.200

I would do some research through smb known issues.

Reply
0 Kudos
techguy131
Contributor
Contributor

Solution

IP address needs to be changed from within the VM Ubuntu

 

Open Terminal

Ip -a (Find your current network card name, in my case it was ENS160)

cd /etc/netplan 

Sudo vim 00-installer-config.yaml 

-- 

# Let NetworkManager manage all devices on this system 
network: 
  version2 
  rendererNetworkManager 
  ethernets: 
    ens160: 
      dhcp4no 
      addresses[10.1.10.4/24] 
      gateway410.1.10.1 
      nameservers: 
        addresses[10.50.16.1, 8.8.8.8] 

-- 

 sudo netplan apply  

 sudo reboot 

 

All Samba and Printer shares working now

depping
Leadership
Leadership

ESXi doesn't control anything magically. You as an admin set up the network portgroups with the right VLANs, and then you assign the right IP or use DHCP or something for the VMs.