2.0

Table Of Contents
VMware, Inc. 259
Chapter 11 Configuring a Virtual Network
IfyoualreadyhaveSambaconfiguredonyourLinuxhost,therecommendedapproach
istomodifythatconfigurationsoitincludestheIPsubnetusedbytheVMwareServer
virtualnetworkadapter,VMnet1.
YoucanconfigureyourexistingSambaservertoworkwithahostonlynetwork.Allthe
sharesyou
setupinSambaandintheguestoperatingsystemnormallyappearonthe
bridgednetworkaswell.
Ifyouneedtobesurethesharessetupintheguestoperatingsystemareseenonlyon
thehostonlynetwork,youmightfinditeasiesttoinstallandusethe
Sambaserver
providedwithVMwareServer.
Ifyoudonotneedanysharestoappearonyourbridgednetwork,youcanuseyour
existingSambaserverandsetuptheconfigurationfilesoitworksonlyonthehostonly
network.
Sambaconfigurationscanbequitecomplex.Thissectionprovidesseveralsample
configurationfiles.Ifyouneedtogobeyondtheissuescoveredhere,seethemanpage
forthesmb.conffile.Toviewthismanpage,typeoneofthefollowingcommandsina
terminalwindow:
man smb.conf
or
man 5 smb.conf
Payparticularattentiontothesectiononencryptedpasswords.Ifyouhaveenabled
cleartextpasswordsintheguestoperatingsystem,makesurethatsmb.confissetup
tousecleartextpasswords.Similarly,ifyouareusingencryptedpasswords,youmust
havethesamesettingintheguestoperatingsystem
andinsmb.conf.
Sample smb.conf for Host-Only Networking
ThefollowingsampleSambaconfigurationfileisforusewithhostonlynetworking.
Thisconfigurationisforthe2.0.6versionofSambainstalledbyVMwareServer.The
configurationfilesareplacedin/etc/vmware/vmnet1/smbbydefault.
# This is the VMware(TM) Samba configuration file. Read the
# smb.conf(5) manual page to understand the options listed
# here. Samba has a huge number of configurable options
# most of which are not shown in this example
#
# Any line that starts with a ; (semicolon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
NOTEUsingSambaprintersharingwithvirtualmachinesisnotsupported.Consult
themanpagesforguidanceonconfiguringSambaforprinting.