Ubuntu内核升级后,和主机间的共享可能会失效,这时就需要重新安装vmware tools了

1. 重新安装VMWare Tools

解压vmware tools,得到vmware-tools-distrib文件夹,用root权限运行其下的vmware-install.pl文件

tar -xzvf VMwareTolls-9.2.3-1031360.tar.gz
cd vmware-tools-distrib

sudo ./vmware-install.pl

安装分为三个步骤:

  1. 卸载旧版本
  2. 安装新版本
  3. 配置新版本(以后也可以手动执行/usr/bin/vmware-config-tools.pl

     

2. 配置中遇到的问题

在第3步中,可能会出现以下问题:

Searching for a valid kernel header path...
The path "" is not a valid path to the 3.5.0-23-generic kernel headers.
Would you like to change it? [yes]

需要安装linux-headers-3.5.0-23-generic包,具体版本可能不同,请自行对照(uname -r)。

sudo apt-get install linux-headers-3.5.0-23-generic

也可以使用如下的通用命令

sudo apt-get install linux-headers-`uname -r`

然后把目录更改为有效目录

Enter the path to the kernel header files for the 3.5.0-23-generic kernel?
/usr/src/linux-headers-3.5.0-23-generic/include

The path "/usr/src/linux-headers-3.5.0-23-generic/include" appears to be a
valid path to the 3.5.0-23-generic kernel headers.
Would you like to change it? [no]

其他地方难度不大,vmware tools安装完成。

然后就可以用/mnt/hgfs/中访问共享文件了。

相关文章:

  • 2021-06-08
  • 2021-07-14
  • 2021-09-06
  • 2022-01-20
  • 2021-12-11
  • 2021-12-15
猜你喜欢
  • 2021-04-03
  • 2021-06-11
  • 2021-08-31
  • 2021-04-28
  • 2022-12-23
  • 2022-01-28
  • 2021-05-16
相关资源
相似解决方案