您的位置:首页 > 其它

Ubuntu14 中安装 VMware10 Tools工具<2>

2017-05-15 10:03 645 查看
网上说已经针对上一篇提到的无法显示共享文件夹的问题做了补丁。补丁地址是https://github.com/rasa/vmware-tools-patches,我没有成功,还是出现“hgfs 不是文件夹”错误
使用df命令能够看到/mnt/hgfs已经成功挂载。且vmhgfs服务正常(使用lsmod | grep vm命令)
下载VMware10.0.2。安装后迫不及待的打开虚拟机进行vmtools的安装。成功的完毕了之前须要打补丁才干通过的部分,可是在启动服务的时候报错

Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
initctl:未知任务: vmware-tools-thinprint
Unable to start services for VMware Tools

Execution aborted.


一盆冷水啊,查了一些资料。跟打印有关,反正我也不用打印功能。干脆删掉吧

root@yufan-vm:/etc/init# rm vmware-tools-thinprint.conf


又一次启动服务

root@yufan-vm:/etc/vmware-tools# ./services.sh restart
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon:                                      done
VMware User Agent (vmware-user):                                    done
Blocking file system:                                               done
Unmounting HGFS shares:                                             done
Guest filesystem driver:                                            done
VM communication interface:                                         done
Checking acpi hot plug                                              done
Starting VMware Tools services in the virtual machine:
Switching to guest configuration:                                   done
VM communication interface:                                         done
Guest filesystem driver:                                            done
Mounting HGFS shares:                                               done
Blocking file system:                                               done
VMware User Agent:                                                  done
Guest operating system daemon:                                      done


查看共享文件夹

root@yufan-vm:/etc/vmware-tools# df
文件系统       1K-blocks     已用      可用 已用% 挂载点
/dev/sda1       19478204  4487716  13978008   25% /
none                   4        0         4    0% /sys/fs/cgroup
udev             1010624        4   1010620    1% /dev
tmpfs             204276     1072    203204    1% /run
none                5120        0      5120    0% /run/lock
none             1021364      152   1021212    1% /run/shm
none              102400       56    102344    1% /run/user
/dev/sr0           61542    61542         0  100% /media/yufan/VMware Tools
.host:/        186165244 47665228 138500016   26% /mnt/hgfs
root@yufan-vm:/etc/vmware-tools# cd /mnt/hgfs
root@yufan-vm:/mnt/hgfs# ls
WindowsShare
root@yufan-vm:/mnt/hgfs# cd WindowsShare/
root@yufan-vm:/mnt/hgfs/WindowsShare# ls
abc  啦啦啦德玛西亚.txt


最终搞定了!

-----------------------------------------------------

sudo mount -t vmhgfs .host:/ /mnt/hgfs

vmware-hgfsclient

.host:/shared /home/pnuts/shared vmhgfs defaults 0 0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: