There are answers to this question all over the web. If you were to Google share from host to guest vmware the first link contains the following which is probably what you are looking for.
Connecting to a Linux Host from a Windows Guest
If you want to share the directory
/home/user/shared, for example, on a Linux host operating system with a Windows guest operating system, follow these steps:
- On the Linux host operating system, copy the smb.conf file to a file
called something like smb.conf.orig.
cp smb.conf smb.conf.orig
- Modify Samba on the Linux host system. Edit the following lines in:
- Comment out the line starting with
- Below this line, add
- Provide a network workgroup name. Set
- If you do not want to use the standard DNS name for the Linux system, set
netbiosname=<Linux system name>.
- You can leave
security=user, unless you cannot connect, in which case use
- In the
[global] section, define a different shared memory access key. Add this line:
sysv shm key=/dev/vmnet8.
- For better performance, add this line:
socket options = TCP_NODELAY
- edit the line to state:
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
- Note: This setting must be entered on one line.
- To create the share, add the following:
path = /home/user/shared
public = no
writable = yes
printable = no (since you want to share files, not a printer)
- Save this file and create a backup copy to protect these changes when you upgrade VMware Workstation.
Restart the Samba services to load the new settings.
- If VMware Workstation is running on the Linux host system, suspend or shut down all running virtual machines and close all VMware Workstation windows.
- On the Linux host operating system, at a command prompt, type
- On some Linux distributions, the command is
Start VMware Workstation and run the Windows guest operating system from which you want to connect to the Linux host. The user ID you use to log in to the Windows guest must be in the Linux host's smbpasswd file. If you use the same user name and password to log in to the guest as you do on the Linux host, then you are not prompted to log in when you browse the Linux host.
If you are connecting to the Linux system from a Windows Me, Windows 98 or Windows 95 guest operating system, NetBEUI must be installed in the guest operating system before you can browse the file system. If you need to install NetBEUI, you may need your Windows installation CD-ROM.
When the system restarts, the Samba service does not appear in the list of services starting up, but it does start, unless an error appears.