Get the App
SLTechnology News&Howtos  ›  Network Security  › 

VMVare9.2, Ubuntu17.04 installation VMWare Tools cannot find the header file

Shulou Source: shulou.com Published: 2022-06-01 06:21:02 10月04日 Update

VMWare 9.2, Ubuntu 17.04 Install VMWare Tools

Encountered a little problem, prompt can not find the kernel header file, so baidu, for the following summary.

First of all:

sudo apt-get install build-essential linux-headers-$(uname -r)

sudo cp /lib/modules/3.13.0-24-generic/build/include/generated/uapi/linux/version.h /lib/modules/3.13.0-24-generic/build/include/linux/

Then:

The path "" is not a valid path to the 3.13.0-24-generic kernel headers.

Would you like to change it? [yes]

Enter the path to the kernel header files for the 3.13.0-24-generic kernel? /lib/modules/3.13.0-24-generic/build/include/

The path "/lib/modules/3.13.0-24-generic/build/include/" appears to be a valid

path to the 3.13.0-24-generic kernel headers.

Would you like to change it? [no]

If you still can't see the directory mnt/hgfs, you need to set it as follows

sudo apt-get install open-vm-tools-dkms

Check if vm module is installed, execute lsmod| grep vm, if installed successfully, the following results appear:

vmw_vsock_vmci_transport 32768 0

vsock 32768 1 vmw_vsock_vmci_transport

vmxnet 24576 0

This means that the installation was successful.

Check the vm module comparison information, above is 17.04 installed, below is not installed.

root@ubuntu:/mnt/hgfs# lsmod |grep vm

vmw_vsock_vmci_transport 32768 0

vsock 32768 1 vmw_vsock_vmci_transport

vmxnet 24576 0

vmw_balloon 20480 0

vmw_vmci 61440 2 vmw_balloon,vmw_vsock_vmci_transport

vmw_pvscsi 24576 0

vmxnet3 53248 0

vmwgfx 212992 3

ttm 90112 1 vmwgfx

drm_kms_helper 139264 1 vmwgfx

drm 303104 6 vmwgfx,ttm,drm_kms_helper

zhaoanan@ubuntu:~$ lsmod |grep vm

vmw_balloon 20480 0

vmw_vmci 61440 1 vmw_balloon

vmw_pvscsi 24576 0

vmxnet3 53248 0

vmwgfx 212992 3

ttm 90112 1 vmwgfx

drm_kms_helper 139264 1 vmwgfx

drm 303104 6 vmwgfx,ttm,drm_kms_helper

Tags: Success module file information kernel directory result or question prompt Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Tech Info Xiaomi Huawei OPPO Reno