天天看點

Linux下vmware安裝部署

Linux下vmware下載下傳:

位址-Linux vmware : http://www.vmware.com/products/workstation/workstation-evaluation

安裝依賴:

1

2

<code>yum -y </code><code>install</code> <code>perl gcc kernel-devel libX11 libXinerama libXcursor libXtst</code>

<code>yum </code><code>install</code> <code>kernel-headers.x86_64 -y</code>

安裝桌面:

<code>yum groupinstall </code><code>"Desktop"</code> <code>"Desktop Platform"</code>

<code>yum groupinstall </code><code>"X Window System"</code> <code>"Graphics Creation Tools"</code>

vmware安裝:

手動一步步安裝:

賦予vmware軟體可執行權限:

<code>chmod</code> <code>+x VMware-Workstation-Full-12.5.7-5813279.x86_64.bundle</code>

安裝過程會出現如下一些選項:

1、安裝過程中的一段協定:

2.6     Open Source Software.  Notwithstanding anything herein to the

contrary, Open Source Software is licensed to You under such OSS's own

applicable license terms, which can be found in the

open_source_licenses.txt file, the Documentation or as applicable, the

corresponding source files for the Software available at

www.vmware.com/download/open_source.html. These OSS license terms

are consistent with the license granted in Section 2 (License Grant), and

may contain additional rights benefiting You.  The OSS license terms shall

take precedence over this EULA to the extent that this EULA imposes

greater restrictions on You than the applicable OSS license terms. To the

extent the license for any Open Source Software requires VMware to

make available to You the corresponding source code and/or modifications

(the "Source Files"), You may obtain a copy of the applicable Source

Files from VMware's website at

www.vmware.com/download/open_source.html or by sending a written

request, with Your name and address to: VMware, Inc., 3401 Hillview

Avenue, Palo Alto, CA 94304, United States of America. All requests

should clearly specify:  Open Source Files Request, Attention: General

Counsel.  This offer to obtain a copy of the Source Files is valid for three

years from the date You acquired this Software.

3.      RESTRICTIONS; OWNERSHIP.

...............more............

解決:按"q"鍵退出浏覽說明.

2、Do you agree? [yes/no]:  輸入:yes

3、下面是安裝的過程選項:

1.3     "Guest Operating Systems" means instances of third-party operating

Do you agree? [yes/no]: yes

Would you like to check for product updates on startup? [yes]: no

Would you like to help make VMware software better by sending

anonymous system data and usage statistics to VMware? [yes]: yes

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]: /data/vmware/vm1        #虛拟機存放的目錄,自己建的友善找

Please enter the port to use for https access to Workstation Server.

(HTTPS port:) [443]: 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.       按"Enter"繼續安裝;按"Ctrl-C"退出

Installing VMware Workstation 12.5.7

   Configuring...

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

Installation was successful.

#安裝完成.

第二種安裝方法:

VMware指令行含義:

   --console                                             #以指令行模式安裝,預設為gui模式 。

   --eulas-agreed                                     #自動同意安裝協定,如果不使用,需要按q和yes。

   --required                                            #顯示安裝協定後,并自動安裝。

   -s vmware-workstation serialNumber   #輸入vmware序列号

<code>.</code><code>/VMware-Workstation-Full-12</code><code>.5.7-5813279.x86_64.bundle --console --eulas-agreed --required -s vmware-workstation serialNumber MA491-6NL5Q-AZAM0-ZH0N2-AAJ5A</code>

安裝完成啟動vmware報錯處理:

報錯:C header files matching your running kernel were not found

處理:

檢視yum源安裝的以下兩個包的版本

<code>#yum list | grep kernel-devel</code>

<code>#yum list | grep kernel-headers</code>

uuname -a 檢視系統核心的版本是否相同

如果不相同,解除安裝yum安裝的版本:

<code>yum remove kernel-headers -y</code>

<code>yum </code><code>install</code> <code>kernel-devel -y</code>

挂載安裝系統的CD光牒或者iso鏡像,去Packages安裝這兩個包:

mount /dev/cdrom /mnt/

cd /mnt/cd Packages/

[root@localhost Packages]# ls | grep kernel

abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64.rpm

dracut-kernel-004-335.el6.noarch.rpm

kernel-2.6.32-431.el6.x86_64.rpm

kernel-abi-whitelists-2.6.32-431.el6.noarch.rpm

kernel-debug-2.6.32-431.el6.x86_64.rpm

kernel-debug-devel-2.6.32-431.el6.x86_64.rpm

kernel-devel-2.6.32-431.el6.x86_64.rpm

kernel-doc-2.6.32-431.el6.noarch.rpm

kernel-firmware-2.6.32-431.el6.noarch.rpm

kernel-headers-2.6.32-431.el6.x86_64.rpm

libreport-plugin-kerneloops-2.0.9-19.el6.centos.x86_64.rpm

[root@localhost Packages]# rpm -ivh kernel-headers-2.6.32-431.el6.x86_64.rpm

Preparing...                ########################################### [100%]

  1:kernel-headers         ########################################### [100%]

[root@localhost Packages]# rpm -ivh kernel-devel-2.6.32-431.el6.x86_64.rpm

  1:kernel-devel           ########################################### [100%]

報錯:not fountd gcc

因為解除安裝了kernel-devel包,也就解除安裝了gcc,yum安裝下:

<code>yum </code><code>install</code> <code>gcc -y</code>

遠端到圖形話下點選vmware ,會提示輸入序列号:

VMware Workstation 12專業版永久序列号(任選其一)

5A02H-AU243-TZJ49-GTC7K-3C61N

VF5XA-FNDDJ-085GZ-4NXZ9-N20E6

UC5MR-8NE16-H81WY-R7QGV-QG2D8

ZG1WH-ATY96-H80QP-X7PEX-Y30V4

AA3E0-0VDE1-0893Z-KGZ59-QGAVF

listen 輸入正确會看到如圖所示:

<a href="https://s2.51cto.com/wyfs02/M00/9F/70/wKioL1mc9Wyil5hUAAPDgB-3fT0573.png" target="_blank"></a>

後續的步驟其實就和在windown下的一樣了,建立一個虛拟機,安裝系統....操作:

<a href="https://s2.51cto.com/wyfs02/M01/9F/70/wKioL1mc9X2AjMcdAANF0ZQR-HQ334.png" target="_blank"></a>

本文轉自青衫解衣 51CTO部落格,原文連結:http://blog.51cto.com/215687833/1958589

繼續閱讀