在LINUX上安裝VMware

由於項目需要,要在Linux下虛擬一個Windows,經過查找些資料,發現可一用VMware來實現,以下就是安裝的步驟.

首先到https://www.vmware.com/ 下載最新的安裝包,比如VMware-server-1.0.5-80187.tar.gz,這個是免費版本,使用下面的命令解壓後安裝.

1、tar -zxvf  VMware-server-1.0.5-80187.tar.gz

2、cd ./vmware-distrib

3、./vmware-install.pl

下面按照提示選擇就可以了,如果沒有特殊要求,直接回車即可.

4、安裝完啓動VM,提示符下輸入命令:vmware,或者按照提示輸入就可以起動,就可以看到VMware的界面了.

 

開始爲Linux 服務器安裝Vmware Server

    安裝程序會提問一些問題,並同時給出缺省的答案。

    1. 切換到超級用戶權限

    $ su -
    Password:
    [root@localhost root]# cd vmware-server-distrib

    2. 開始安裝

    #./vmware-install.pl

    3. 選擇二進制文件安裝路徑

     # Creating a new installer database using the tar3 format.
    Installing the content of the package.
    In which directory do you want to install the binary files?
    [/usr/bin]
    What is the directory that contains the init directories (rc0.d to rc6.d)?
    [/etc/rc.d] #選擇初始化目錄安裝路徑
    What is the directory that contains the init scripts?
    [/etc/rc.d/init.d] #選擇初始化腳本文件安裝路徑
    In which directory do you want to install the daemon files?
    [/usr/sbin]
    In which directory do you want to install the library files?
    [/usr/lib/vmware]

    4. 選擇相關文件安裝路徑

    #The path “/usr/lib/vmware” does not exist currently. This program is going to
    create it, including needed parent directories. Is this what you want?
    [yes]
    In which directory do you want to install the manual files?
    [/usr/share/man] #選擇操作手冊頁面文件安裝路徑
    In which directory do you want to install the documentation files?
    [/usr/share/doc/vmware] #選擇文檔文件安裝路徑

    5. 安裝結束

    #The path “/usr/share/doc/vmware” does not exist currently. This program is going
    to create it, including needed parent directories. Is this what you want?
    [yes]
    The main install is now complete and you should see something similar to what follows:
    The installation of VMware Server <build number> for Linux competed successfully.
    You can decide to remove this software from your system at any time by invoking thefollowing command:     “/usr/bin/vmware-uninstall.pl”. #安裝結束

    6. 啓動vmware 配置

    # Before running VMware Server for the first time, you need to configure it by
    invoking the following command: “/usr/bin/vmware-config.pl”. Do you want this
    program to invoke the command for you now? [yes]
    此時系統會自動關閉現有的Vmware服務守護進程,如圖 8 。

圖8 系統會自動關閉現有的Vmware服務守護進程

    7. 選擇圖標文件安裝路徑

    In which directory do you want to install the mime type icons?
    [/usr/share/icons]
    What directory contains your desktop menu entry files? These files have a .desktop
    file extension. [/usr/share/applications]
    In which directory do you want to install the application’s icon?
    [/usr/share/pixmaps]

    8. 閱讀接受終端用戶許可協議

    Do you accept? (yes/no) yes #接受許可協議

    9. 安裝相關模塊

    Trying to find a suitable vmmon module for your running kernel.
    The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
    Trying to find a suitable vmmon module for your running kernel.
    None of the pre-built vmmon modules for VMware Server is suitable for your running
    kernel. Do you want this program to try to build the vmmon module for your system
    (you need to have a C compiler installed on your system)? [yes] #安裝虛擬網絡模塊

    10. 配置網絡

    Do you want networking for your virtual machines? (yes/no/help) [yes] yes
 選擇網絡接口名稱

    Your computer has multiple Ethernet network interfaces available: eth0, eth1.
    Which one do you want to bridge to vmnet0? [eth0]
 配置vmnet0
    The following bridged networks have been defined:
.     vmnet0 is bridged to eth0
    Do you wish to configure another bridged network? (yes/no) [no]
 配置vmnet8
    Configuring a NAT network for vmnet8.
    Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
 探測DHCP 子網,自動探測,隨機選擇
    Probing for an unused private subnet (this can take some time)...
    The subnet 172.16.127.0/255.255.255.0 appears to be unused.
    The following NAT networks have been defined:
.   vmnet8 is a NAT network on private subnet 172.16.127.0.
    Do you wish to configure another NAT network? (yes/no) [no]
 配置host-only 網絡環境
    Do you want to be able to use host-only networking in your virtual machines?
    [yes]
    Configuring a host-only network for vmnet1.
    Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
    Probing for an unused private subnet (this can take some time)...
    The subnet 172.16.183.0/255.255.255.0 appears to be unused.
    The following host-only networks have been defined:
  . vmnet1 is a host-only network on private subnet 172.16.183.0.
    Do you wish to configure another host-only network? (yes/no) [no]

    11. 安裝內核模塊

    Trying to find a suitable vmnet module for your running kernel.
    The module bld-2.6.9-5.EL-i686-RHEL4 loads perfectly in the running kernel.
    The module loads perfectly in the running kernel.

    12. 選擇遠程服務端口

    Please specify a port for remote console connections to use. [902]

    13. 建立perl腳本文件

    Building the VMware VmPerl Scripting API.
    Using compiler “/usr/bin/gcc”. Use environment variable CC to override.
    Installing the VMware VmPerl Scripting API.
    The installation of the VMware VmPerl Scripting API succeeded.

    14. 生成SSL證書文件

    Generating SSL Server Certificate
    In which directory do you want to keep your virtual machine files?
   [/var/lib/vmware/Virtual Machines]

    15. 輸入註冊時獲得的20位產品序列號如圖9. 。

圖9 輸入註冊時獲得的20位產品序列號

    16.如果配置過程和序列號正確,系統會完成配置並且啓動Vmware服務器。如圖10 。

圖10 Vmware Server配置成功界面

    17. 系統會自動在系統工具菜單建立一個:“Vmware Service Console”服務控制檯的子選項。如圖 11 。

圖11 系統工具中的Vmware Service Console

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章