kali 2020 VMware 15.5.1 启动时出错 before you can run vmware, several modules must be complied and……

kali 2020 VMware 15.5.1 启动时出错 before you can run vmware, several modules must be complied and……

一、老的解决办法卸载老版本安装新版本(可惜无用)

root@knight:~/下载# vmware-installer -u vmware-workstation
All configuration information is about to be removed. Do you wish to
keep your configuration files? You can also input 'quit' or 'q' to
cancel uninstallation. [yes]: yes
Uninstalling VMware Installer 3.0.0
    Deconfiguring...
[######################################################################] 100%
Uninstallation was successful.
root@knight:~/下载# ./VMware-Workstation-Full-15.5.1-15018445.x86_64.bundle 
Extracting VMware Installer...done.
Installing VMware Workstation 15.5.1
    Configuring...
[######################################################################] 100%
Installation was successful.

二、安装vmware补丁

git补丁并切换分支

root@knight:~/下载#  git clone https://github.com/mkubecek/vmware-host-modules.git
正克隆到 'vmware-host-modules'...
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 1701 (delta 19), reused 1 (delta 0), pack-reused 1678
接收对象中: 100% (1701/1701), 887.90 KiB | 145.00 KiB/s, 完成.
处理 delta 中: 100% (1401/1401), 完成.
root@knight:~/下载# cd vmware-host-modules
root@knight:~/下载/vmware-host-modules# ls
INSTALL  LICENSE  Makefile  README
root@knight:~/下载/vmware-host-modules# git checkout workstation-15.5.1
分支 'workstation-15.5.1' 设置为跟踪来自 'origin' 的远程分支 'workstation-15.5.1'。
切换到一个新分支 'workstation-15.5.1'

安装补丁

root@knight:~/下载/vmware-host-modules# git fetch
root@knight:~/下载/vmware-host-modules# make
make -C vmmon-only 
make[1]: 进入目录“/root/下载/vmware-host-modules/vmmon-only”
Using kernel build system.
make -C /lib/modules/5.4.0-kali2-amd64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: 进入目录“/usr/src/linux-headers-5.4.0-kali2-amd64”
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/linux/driverLog.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/linux/driver.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/linux/hostif.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/memtrack.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/apic.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/statVarsVmmon.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/vmx86.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/sharedAreaVmmon.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/cpuid.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/task.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/comport.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/common/phystrack.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/vmcore/moduleloop.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/bootstrap/monLoaderVmmon.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/bootstrap/monLoader.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/bootstrap/vmmblob.o
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/bootstrap/bootstrap.o
  LD [M]  /root/下载/vmware-host-modules/vmmon-only/vmmon.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC [M]  /root/下载/vmware-host-modules/vmmon-only/vmmon.mod.o
  LD [M]  /root/下载/vmware-host-modules/vmmon-only/vmmon.ko
make[2]: 离开目录“/usr/src/linux-headers-5.4.0-kali2-amd64”
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: 进入目录“/root/下载/vmware-host-modules/vmmon-only”
make[2]: “postbuild”已是最新。
make[2]: 离开目录“/root/下载/vmware-host-modules/vmmon-only”
cp -f vmmon.ko ./../vmmon.o
make[1]: 离开目录“/root/下载/vmware-host-modules/vmmon-only”
make -C vmnet-only 
make[1]: 进入目录“/root/下载/vmware-host-modules/vmnet-only”
Using kernel build system.
make -C /lib/modules/5.4.0-kali2-amd64/build/include/.. M=$PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= modules
make[2]: 进入目录“/usr/src/linux-headers-5.4.0-kali2-amd64”
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/driver.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/hub.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/userif.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/netif.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/bridge.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/procfs.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/smac_compat.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/smac.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/vnetEvent.o
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/vnetUserListener.o
  LD [M]  /root/下载/vmware-host-modules/vmnet-only/vmnet.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC [M]  /root/下载/vmware-host-modules/vmnet-only/vmnet.mod.o
  LD [M]  /root/下载/vmware-host-modules/vmnet-only/vmnet.ko
make[2]: 离开目录“/usr/src/linux-headers-5.4.0-kali2-amd64”
make -C $PWD SRCROOT=$PWD/. \
  MODULEBUILDDIR= postbuild
make[2]: 进入目录“/root/下载/vmware-host-modules/vmnet-only”
make[2]: “postbuild”已是最新。
make[2]: 离开目录“/root/下载/vmware-host-modules/vmnet-only”
cp -f vmnet.ko ./../vmnet.o
make[1]: 离开目录“/root/下载/vmware-host-modules/vmnet-only”
root@knight:~/下载/vmware-host-modules# make install
install -D -t /lib/modules/5.4.0-kali2-amd64/misc vmmon-only/vmmon.ko vmnet-only/vmnet.ko
strip --strip-debug /lib/modules/5.4.0-kali2-amd64/misc/vmmon.ko /lib/modules/5.4.0-kali2-amd64/misc/vmnet.ko
if test -z ""; then /sbin/depmod -a 5.4.0-kali2-amd64; fi

搞定

发布了14 篇原创文章 · 获赞 6 · 访问量 2088
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 技术黑板 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览