(三) 安装VMware虚拟机
1. 将VMware-Workstation-Full-12.5.6-5528349.x86_64.bundle上传到服务器上
2. 执行bundle文件
cd 到bundle文件目录
给bundle文件加权限
sudo chmod +x VMware-Workstation-Full-12.5.6-5528349.x86_64.bundle
执行bundle文件
./VMware-Workstation-Full-12.5.6-5528349.x86_64.bundle
注:卸载:
sudo vmware-installer -u vmware-workstation
3. 检查安装是否成功
4. VMware-Workstation 启动报错处理
(1)、a compatible versionof gcc was not found(未找到兼容版本的GCC。)
解决方案:
要先安装 gcc 编译器,因为安装VMware的时候 需要编译一些文件。如果系统未安转gcc,会有提示安转gcc,
使用yum install gcc 命令进行安装 就行了。
(2)、c header filesmatching you running kernel were not found(没有找到与您运行内核匹配的C头文件)
解决方案1:
出现C headerfiles matching your running kernel were not found. Refer to your distribution's documentationfor installation instruction。大体意思是在现在的内核中没有找到 c header files 之类的文件……………………,出现这样的问题,就是没有安装对应内核的开发包,那么需要 yum install kernel-devel 解决,或者 下载对以的rpm包安装
如果安装kernel-devel完之后,问题还没解决,就走下面操作
发现安装的kernel-devel是2.6.32-696版本,而虚拟机验证的用的是2.6.32-642版本
原因是kernel-devel版本不一致。需同步下版本
解决方案2:更新内核版本到2.6.32-696
uname –r 查看当前的内核版本是2.6.32-642.el6.x86_64
rpm -qa|grep -e kernel-headers -e kernel-devel 查看用到的是2.6.32-696.16.1.el6.x86_64
更新内核:yum update kernel -y
安装内核头、内核开发和其他需要的包: yum install kernel-headers kernel-devel gcc make –y
重新启动服务器以确保它加载到新内核: init 6