接下来,根据终端上的提示进行安装即可。 等安装完成后还不要急着启动,如果启动,将无法正常运行,会显示 Before you can run VMware several modules must be compiled and loaded into the running kernel ,所以这个时候就需要patch了。
安装依赖
1
sudo dnf install kernel-devel kernel-headers gcc gcc-c++ make git
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-x.y.z.tar.gz tar -xzf workstation-x.y.z.tar.gz cd vmware-host-modules-workstation-x.y.z make sudo make install
方法二(替换原始的tarball,推荐)
1 2 3 4 5 6 7
wget https://github.com/mkubecek/vmware-host-modules/archive/workstation-x.y.z.tar.gz tar -xzf workstation-x.y.z.tar.gz cd vmware-host-modules-workstation-x.y.z tar -cf vmmon.tar vmmon-only tar -cf vmnet.tar vmnet-only sudo cp -v vmmon.tar vmnet.tar /usr/lib/vmware/modules/source/ sudo vmware-modconfig --console --install-all