免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2390 | 回复: 1
打印 上一主题 下一主题

虚拟机安装ubuntu11.10使用share folders共享目录 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-08 19:55 |只看该作者 |倒序浏览
虚拟机安装ubuntu11.10使用share folders共享目录











在虚拟机中安装好ubuntu11.10之后,VMtools已经默认安装好了,可以在终端中按vm+tab查看:
  1. yuanlulu@ubuntu:~$ vm
  2. vmmouse_detect             vmware-hgfsclient          vmware-user
  3. vmstat                     vmware-hgfsmounter         vmware-user-suid-wrapper
  4. vm-support                 vmware-rpctool             vmware-user-wrapper
  5. vmtoolsd                   vmware-toolbox             vmware-vmblock-fuse
  6. vmware-checkvm             vmware-toolbox-cmd         vmware-xdg-detect-de
  7. vmware-config-tools.pl     vmware-tools-upgrader      vmware-xferlogs
  8. 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

论坛徽章:
0
2 [报告]
发表于 2011-12-22 19:03 |只看该作者
学习鸟  谢谢分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP