ubuntu14.04在安装虚拟机VMware Tools-10.0时的编译问题

本文介绍了解决因内核版本升级导致VMwareTools编译错误的问题,通过应用特定补丁,成功修复了虚拟机与主机间的共享文件夹功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我想在主机与虚拟机之间共享文件夹,以在windows下使用source insight修改查看源码。通过最简单的VMware Tools方法,我发现在编译安装VMware Tools的时候,发生了许多编译错误,导致 share-file 功能缺失。经查看,是因为内核版本升级,导致虚拟机提供的VMware Tools源码中的一些结构体成员命名需变更,还有新版本内核不再使用一些存在于旧版中的库函数,由此编译失败。


通过网络这个强大的助手,我找到了解决方法,如下:

To run:

  1. Checkout the repository:
    $ git clone https://github.com/rasa/vmware-tools-patches.git
    
  2. Copy your patch(es) into the appropriate directory in the patches directory. The file must end in .patch, or .diff. This step is optional. For example:
    $ cp great-new.patch vmware-tools-patches/patches/vmhgfs
    
  3. Copy a VMwareTools-*.tar.gz into the vmware-tools-patches folder:
    $ cp VMwareTools-*.tar.gz vmware-tools-patches/
    
  4. Apply the patches, and then run the vmware-install.pl installer:
    $ cd vmware-tools-patches
    $ ./untar-and-patch-and-compile.sh
    

If apt-get is installed on your system, the following packages will be installed prior to compilation:

  • linux-headers-$(uname -r)
  • build-essential
  • dkms
  • patch
  • psmisc


详细链接为:

https://github.com/hokein/vmware-tools-patches

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值