每次升级完内核,vmware-workstation都需要重新编译部分模块,例如:vmmon和vmnet,自动编译经常失败,手动编译方法如下,做个记录。

查看版本

vmware-installer -l
> Product Name         Product Version     
> ==================== ====================
> vmware-workstation   16.0.0.16894299 

开始编译

根据上述版本checkout对应的分支

git clone https://github.com/mkubecek/vmware-host-modules.git
cd vmware-host-modules
git checkout workstation-16.0.0
make
make install