Ubuntu安装vmware-workstation失败后解决方法

由于不用版本、不同内核的Ubuntu, 安装 vmware-workstation 时, 可能会安装失败,安装失败后的解决方案,

错误1

使用以下命令可以查看安装失败的模块

sudo /etc/init.d/vmware start 

输出如下, 多数情况下都是这两个模块失败了

Starting VMware services:
   Virtual machine monitor                                            failed
   Virtual machine communication interface                             done
   VM communication interface socket family                            done
   Virtual ethernet                                                   failed
   VMware Authentication Daemon                                        done

使用以下命令, 查看安装版本

vmware-installer -l

输出如下

Product Name         Product Version     
==================== ====================
vmware-workstation   17.5.2.23775571  

关注以下两个仓库

https://github.com/mkubecek/vmware-host-modules

https://github.com/nan0desu/vmware-host-modules

下载对应版本的源码, 手动编译安装, 然后即可成功运行vmware-workstation

cd vmware-host-modules-workstation-17.5.2-k6.9-
sudo make install
sudo /etc/init.d/vmware start

假如编译失败了, GitHub 有很多名为 vmware-host-modules 的仓库, 多尝试几次

比如 https://github.com/mkubecek/vmware-host-modules 这个仓库的代码并没有解决我的错误,而 https://github.com/nan0desu/vmware-host-modules 这个仓库解决了我的错误

错误2

错误信息如下

could not open /dev/ vmmon,Please make sure that the kernel module `vmmon’ is loaded.

解决方法

sudo /etc/init.d/vmware start

参考文章 解决VMware报错“could not open /dev/ vmmon,Please make sure that the kernel module `vmmon’ is loaded.”的问题

你可能感兴趣的:(ubuntu,linux,运维)