如何在CentOS 7.1中安装VMware Workstation

如何在CentOS 7.1中安装VMware Workstation

VMware Workstation在windows环境中大家都会安装,最近公司有个需求是需要在CentOS环境中安装VMware Workstation,上官网查了下还真有Linux版本的,于是就开始研究了下怎么安装。

0x01  下载

到官网下载免费适用版本,地址:http://www.vmware.com/cn/products/workstation/workstation-evaluation.html 选择for linux进行下载,下载完后是个.bundle的文件,然后上传到需要安装的宿主机中。

0x02  安装

1、安装依赖

$ yum -y install perl gcc kernel-devel libX11 libXinerama libXcursor libXtst

2、直接在宿主机上面运行命令:

# sh VMware-Workstation-xxxx-xxxx.bundle   #开始安装后会出现下面一些交互选项

You must accept the VMware Workstation End User License Agreement to continue.  Press Enter to proceed  #按回车阅读许可协议,按q退出

Do you agree? [yes/no]: yes   #输入yes同意

You must accept the VMware OVF Tool component for Linux End User License Agreement to continue.  Press Enter to proceed.  #按回车阅读OVF工具许可协议,按q退出

Do you agree? [yes/no]: yes   #输入yes同意

Would you like to check for product updates on startup? [yes]:  #是否在启动时检查更新。yes or no

Would you like to help make VMware software better by sending anonymous system data and usage statistics to VMware?  #是否愿意发送系统数据给VMware。yes or no

Please enter the user that will initially connect to Workstation Server. Without setting this correctly, you will not be able to share VMs with other users. Additional users and administrators can be configured later in Workstation by selecting "Shared VMs" and clicking "Permissions"[root]  #输入远程连接服务器的账号,输入root

Please choose a directory for your shared virtual machines. [/var/lib/vmware/Shared VMs]:  #虚拟机共享目录,可以自定义目录路径

Please enter the port to use for https access to Workstation Server. (HTTPS port:) [443]  #输入使用https访问的端口,默认443

Enter license key. (optional) You can enter this information later  #输入许可序列号,或者按回车后续再输入

The product is ready to be installed.  Press Enter to begin installation or Ctrl-C to cancel  #按回车进行安装,按Ctrl-C取消安装

接下去等待安装完成

Installing VMware Workstation 12.5.2

Configuring...

[#########################################################] 100%

Installation was successful.

安装成功。

0x03  卸载

运行下面命令即可以卸载:

$ vmware-installer -u vmware-workstation

0x04  服务管理

VMware Workstation安装完成后,在/etc/init.d/下面有3个vmware服务:vmware、vmware-workstation-server、vmware-USBArbitrator

用start、stop、restart、status参数可对服务进行管理。

0x05  远程连接

在其他windows机器上打开相同版本的vmware-workstation windows版本,选择连接服务器

如何在CentOS 7.1中安装VMware Workstation

服务器名称:宿主机的ip地址

用户名:输入在安装vmware-workstation时配置的root用户

密码:宿主机的root密码

如何在CentOS 7.1中安装VMware Workstation

点击连接后,出现认证提示,确认即可。

在共享的虚拟机下面就出现了刚刚连接的宿主机,这样就可以在上面创建虚拟机了。

如何在CentOS 7.1中安装VMware Workstation

0x06  创建虚拟机

创建虚拟机步骤和在windows上操作一样。

创建完成后可以在宿主机中定位到当初安装时候设置的虚拟机共享目录下,上面看到刚创建的虚拟机名称的文件夹

如何在CentOS 7.1中安装VMware Workstation

加载ISO镜像选择远程服务器,需要把ISO上传到宿主机的共享虚拟机目录中,如上图。这样在选择ISO镜像的时候就可以看到上传的ISO镜像了,如下图:

配置完成后,启动虚拟机进行安装。

如何在CentOS 7.1中安装VMware Workstation

 

weinxin
聂扬帆博客
一个分享IT运维相关工作经验和实战技巧的个人博客

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: