一、安装过程 1. 安装开发工具 1 $ sudo apt install build-essential
2. 下载 从VMWare的官网http://www.vmware.com/go/tryworkstation-linux-64 下载,文件类型是.bundle
。 此时下载的版本是Vmware Workstation 14。
3. 安装VMWare 1 2 $ chmod a+x VMware-Workstation-Full-14.1.1-7528167.x86_64.bundle$ sudo ./VMware-Workstation-Full-14.1.1-7528167.x86_64.bundle
执行后会出现VMWare的安装窗口,需要同意协议、选择是否在启动时检查更新等操作,最后安装完成。
4. 启动VMWare 在终端启动,或者在菜单启动
5. 激活密钥 网上找的VMware workstation 14永久激活密钥:
1 2 3 4 5 6 7 8 9 CG54H-D8D0H-H8DHY-C6X7X-N2KG6 ZC3WK-AFXEK-488JP-A7MQX-XL8YF AC5XK-0ZD4H-088HP-9NQZV-ZG2R4 ZC5XK-A6E0M-080XQ-04ZZG-YF08D ZY5H0-D3Y8K-M89EZ-AYPEG-MYUA8 FF590-2DX83-M81LZ-XDM7E-MKUT4 FF31K-AHZD1-H8ETZ-8WWEZ-WUUVA CV7T2-6WY5Q-48EWP-ZXY7X-QGUWD AALYG-20HVE-WHQ13-67MUP-XVMF3
6. 卸载VMWare 1 $ sudo vmware-installer --uninstall-product vmware-workstation
二、解决could not open /dev/vmmon no such file or directory问题 1. 方法1 1 2 3 4 5 6 $ cd /tmp$ tar -xzvf /usr/lib/vmware/modules/source/vmmon.tar $ cd vmmon-only/$ make $ sudo cp vmmon.ko /lib/modules/4.4.0-116-generic/misc/vmmon.ko $ sudo modprobe vmmon
如果执行tar解压时候出现:
1 2 3 gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now
则将上面tar -xzvf /usr/lib/vmware/modules/source/vmmon.tar
命令改为:tar xvf /usr/lib/vmware/modules/source/vmmon.tar
执行完上面的步骤之后,启动虚拟机,看是否解决了问题。
参考: https://communities.vmware.com/message/2442783
2. 方法2 可能出现的原因和gcc版本有关,所以查看自己gcc的版本:
1 2 3 4 5 $ gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
如果gcc版本太低,例如4.5(4.6及以上应该没问题),则安装新版本的gcc,例如:
1 2 3 $ sudo apt install gcc-5 $ sudo rm /usr/bin/gcc $ sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
确认更新gcc版本之后,执行:
1 $ sudo vmware-modconfig --console --install-all
如果最后出现以下结果则表示成功。
1 2 3 4 5 6 7 8 Starting VMware services: Virtual machine monitor done Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet done VMware Authentication Daemon done Shared Memory Available done
如果最后执行结果中出现了如下的failed,则关闭BIOS中的secure boot ,然后再执行:sudo vmware-modconfig --console --install-all
1 2 3 4 5 6 7 8 Starting VMware services: Virtual machine monitor failed Virtual machine communication interface done VM communication interface socket family done Blocking file system done Virtual ethernet failed VMware Authentication Daemon done Shared Memory Available done
参考: https://communities.vmware.com/message/2611517#2611517
v1.5.2