在虚拟机中实现linux的文件与Windows文件共享方法比较多,开始使用的是vmtools的方法,以前在redhat下没有出现什么问题,今天在ubuntu下可是出了不少问题,而且问题没有解决,可能是有些依赖库没有找到。最好还是采用了samba服务器的方法,
1.下载samba:sudo apt-get install samba
2.设置你需要共享文件的目录,注意修改权限。
sudo mkdir /home/huang/share
chmod 777 /home/huang/share
3.修改配置文件:sudo gedit /etc/samba/smb.conf
[public]
security=share
public=yes
guest ok=yes
writable=yes
path=/huang/share
保存退出
重启服务
sudo service /etc/init.d/samba restart
在XP下输入虚拟机中的IP地址
例://192.168.2.2
注意Windows下的文件在linux中使用要修改权限