一、首先是安装VMWare tools
 
 
安装成功后,可看的如下信息:
#########################
The configuration of VMware Tools 9.6.2 build-1688356 for Linux for this
running kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team
############################



 
 
 
 
 
二、解决安装VMWare tools后/mnt中有hgfs但没共享文件

前提:在虚拟机软件中设置了共享目录

此时在linux中进入 /mnt/hgfs 文件夹,但发现共享的文件没有显示

使用以下办法解决(root权限):

1.  vmware-hgfsclient 命令查看当前有哪些共享的目录,这里我只使用了shared文件夹

2.  使用 mount  -t vmhgfs .host:/shared /mnt/hgfs  命令挂载该共享文件夹(注意:带.号的哦),其中.host:/Documents是共享名,只需把Documents换成
使用vmware-hgfsclient 命令得到的目录,/mnt/hgfs是挂载点

3. 到此为止是可以使用该共享文件夹了,但每次都得重复mount一次,所以需要设置为随机启动后自动挂载
    编辑 /etc/fstab,添加下面一行
    .host:/shared     /mnt/hgfs       vmhgfs     defaults  0  0 (按需写)


补充:
如果显示
Error: cannot mount filesystem: No such device
ubuntu则先执行  sudo apt-get install open-vm-dkms
然后再执行3
GitHub 加速计划 / li / linux-dash
13
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:4 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐