虚拟机安装Ubuntu 11.10使用share folders共享目录


在虚拟机中安装好Ubuntu 11.10之后,VMtools已经默认安装好了,可以在终端中按vm+tab查看:
www.bkjia.com @www.bkjia.com:~$ vm
vmmouse_detect             vmware-hgfsclient          vmware-user
vmstat                     vmware-hgfsmounter         vmware-user-suid-wrapper
vm-support                 vmware-rpctool             vmware-user-wrapper
vmtoolsd                   vmware-toolbox             vmware-vmblock-fuse
vmware-checkvm             vmware-toolbox-cmd         vmware-xdg-detect-de
vmware-config-tools.pl     vmware-tools-upgrader      vmware-xferlogs
vmwarectrl                 vmware-uninstall-tools.pl


将虚拟机掉电关闭(不能暂停),设置share folders目录,重启虚拟机。
此时/mnt/hgfs目录仍然是空的。
应该sudo apt-get install open-vm-dkms,一路按enter键通过。
然后sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs,这样/mnt/hgfs下便有了与windows的共享目录。

为了每次开机自动挂载共享目录,在/etc/init.d/open-vm-tools末尾增加一行:
sudo mount  -t  vmhgfs  .host:/     /mnt/hgfs

Ubuntu 11.04的方法应该与此相同。

相关内容