最近升级了内核到 4.2 , 导致以前的 vmware 10 不能用了.
before you can run vmware, several modules must be compiled and loaded into the running kernel. |
如上, 启动时要求重新编译和加载某些模块, 但是编译错误不成功, 查看提示的日志:
$ sudo tail /tmp/vmware-root/vmware-modconfig-9613.log
2016-12-28T22:28:57.500+08:00| vthread-3| I120: Extracting the vmnet source from "/usr/lib/vmware/modules/source/vmnet.tar". |
可知, kernel 的变更影响了 vmnet 模块.
方法 1: fail...
重新编译 vmnet 模块.
cd /usr/lib/vmware/modules/source |
但是, 在编译 vmnet 时, 提示编译错误:
$ sudo make |
还是放弃这种做法, 不够优雅, 修改底层的东西以后会花很多时间处理手尾.
方法2: 使用新版的支持 kernel > 4 的 vmware 12
推荐这个方法, 首先先卸载 vmware 10.
查看已安装的 vmware 产品:
$ sudo vmware-installer -l |
卸载 vmware-workstation :
sudo vmware-installer --uninstall-product vmware-workstation |
下载 vmware workstation 12.5 并安装:
sudo bash ./VMware-Workstation-Full-12.5.2-4638234.x86_64.bundle |
搞定.
参考
http://askubuntu.com/questions/131045/how-do-i-uninstall-vmware-workstation
http://askubuntu.com/questions/724883/vmware-player-not-working-with-linux-kernel-4-2-5