Saturday, June 16, 2007

Create shared folder for VM

Based on my testing, SAMBA still the most stable way to create shared folder between host (linux) and guest os (microsoft windows XP). If you are not careful, the SAMBA shared folder will form a security hole, where other people could enter your shared folder also from remote (as long as they know your ip address). Edit your SAMBA configuration so only your VM could connect to your shared folder (without password), but other people will be blocked.

edit /etc/samba/smb.conf so it looks like this :

[global]
workgroup = MSHOME
netbios name = THARTONO-LINUX
security = share
auth methods = guest
domain master = No
wins support = no
hosts allow = 127.0.0.1 #--> only my VM could connect
hosts deny = 0.0.0.0/0 #--> other people could not connect
#
[shared]
path = /home/thartono/data/shared
comment = read write
available = yes
browsable = yes
public = yes
writable = yes

No comments: