Install Vmware on Ubuntu 22.04

安装编译环境

sudo apt update
sudo apt install build-essential

安装vmware

sudo bash VMware-Workstation-Full-16.2.3-19376536.x86_64.bundle

编译内核模块

sudo vmware-modconfig --console --install-all

如果编译失败,从https://github.com/mkubecek/vmware-host-modules/tree/workstation-16.2.3克隆一份代码,分别把vmmon-only和vmnet-only打成tar包放到/usr/lib/vmware/modules/source目录下面,然后重新编译