1. 程式人生 > 實用技巧 >VMware安裝配置手冊

VMware安裝配置手冊

>>> hot3.png

VMware安裝配置手冊

目錄

VMware安裝配置手冊... 1

目錄... 1

VMware的安裝與配置... 2

1.1 windows篇... 2

1.2 linux篇... 9

附錄1:參考序列號及註冊獲取序列號的方法... 12

附錄2:常見問題及解決方法... 13

VMware的安裝與配置

軟體配置情況

VMware server 1.0.6

MS windows (Win9x/NT/2000/XP/2003)

Red Hat linux 9 (version 2.4.20-8, Red Hat Linux 3.2.2-5)

最低硬體配置

CPU:P4 2.0GHz

記憶體:256MB

硬碟:40GB(視具體情況而定)

注意:要保證系統記憶體大於256MB,否則無法進行正常安裝

1.1 windows
安裝

安裝前windows需要安裝IIS元件,以便於通過web訪問vmare server

安裝過程如下圖所示:

第一個頁面

clip_image0021

點選Next,繼續;

clip_image0041

選中“I accept……”點選Next,繼續;

clip_image0061

點選Next,繼續;

clip_image0081

確認路徑後,點選Next,繼續;

clip_image0102

點選Install,繼續;

clip_image0121

clip_image0141

安裝完成。(序列號請見附錄1)

配置

執行VMware Server Console

點選File—>New—>VirtualMachine……(或者Ctrl+N)

新建一個虛擬機器檔案:

clip_image0161

點選 下一步 ,繼續;

clip_image0182

點選 下一步 ,繼續;

clip_image0201

以安裝Red Hat Linux 為例,點選 下一步 ,繼續;

clip_image0221

點選 下一步 ,繼續;

clip_image0242

基於我公司局網環境,在網路設定裡,選擇第一項,橋連線即可。

點選 下一步 ,繼續;

clip_image0261

申請虛擬機器的磁碟空間大小,視安裝的系統及host主機的硬體配置情況而定,預設為8.0GB,預設勾選 Allocate all disk space now 選項,一次性分配到指定磁碟空間。為了保證儲存位置連續性,從而提高磁碟效率,建議勾選此項。

點選 完成 ,開始分配磁碟空間,建立虛擬機器;

clip_image0281

clip_image029

這些硬體配置都可以在此進行修改。至此虛擬機器安裝建立完畢。可以在該虛擬機器上建立系統,也可以再建立其他虛擬機器來滿足需要。

我們在工作中,如果需要將虛擬機器隨hos os啟動而執行,則需要完成如下配置:

開啟 VMWare Server Console, 開啟需要自動啟動的虛擬機器.

選擇VM->Settings->Options->Startup/Shudown

選中 this user , 並添如管理員使用者密碼

在 on host startup 選中 Power ON,完成即可

1.2 linux
安裝

我們以VMware-server-1.0.6-91891.tar.gz安裝檔案為例,簡介一下安裝流程。

需要準備一個VMware-mui-1.0.6-91891.tar.gz檔案,用於安裝web監控服務。

將下載的檔案VMware-server-1.0.6-91891.tar.gz進行解壓縮:(所有命令列注意空格)

(以下淺綠色命令列,僅供參考,以實際情況為準)

# tar zxvf VMware-server-1.0.6-91891.tar.gz

待解壓完成後,進入解壓目錄,執行安裝檔案:

# cd vmware-server-distrib/

# ./vmware-install.pl

選擇二進位制檔案安裝路徑(可以按預設操作,一路確認下去)

# 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]

選擇相關檔案安裝路徑

#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] #選擇文件檔案安裝路徑

開始安裝前的準備,系統會提示確認一些安裝準備資訊,然後是閱讀安裝協議,並按照提示輸入yes,開始安裝。注意網路配置:

配置網路

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]

#安裝核心模組

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.

選擇遠端服務埠

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

建立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.

生成SSL證書檔案

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files?

[/var/lib/vmware/Virtual Machines]

按照提示安裝,完畢後會有輸入序列號的提示,請參考附錄1,輸入20位產品序列號。

開始安裝:VMware-mui-1.0.6-91891.tar.gz檔案包,該檔案包提供了可通過web介面進行便捷的查詢操作。

解壓縮後,進入安裝目錄,執行安裝程式:

# tar zxvf VMware-mui-1.0.6-91891.tar.gz

# cd vmware-mui-distrib/

# ./vmware-install.pl

按照提示進行安裝即可。

# 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 VMware Management Interface files?

[/usr/lib/vmware-mui]

The path “/usr/lib/vmware-mui” does not exist currently. This program is going tocreate it, including needed parentdirectories. Is this what you want? [yes]

In which directory would you like to install the documentation files?

[/usr/lib/vmware-mui/doc] #選擇文件檔案安裝路徑

The path “/usr/lib/vmware-mui/doc” does not exist currently. This program is going

to create it, including needed parent directories. Is this what you want? [yes]

設定vmware-config-mui.pl配置檔案

Before running VMware Management Interface for the first time, you need to

configure it by invoking the following command:

“/usr/bin/vmware-config-mui.pl”. Do you want this program to invoke the command

for you now? [yes]

設定最大閒置時間單位分種

Set the number of minutes before an http session times out. (This is the length

of time before someone connecting to VMware Management Interface will be logged

out) [60]

安裝完成。

配置

安裝完成後可通過訪問以下地址來驗證及檢視安裝VMware的相關資訊:

https://虛擬機器IP地址:8333/vmware/en/

用guest os使用者登入即可進行相關配置,並進行相關操作,linux的圖形介面操作與windows類似。

附錄1:參考序列號及註冊獲取序列號的方法

附錄2:常見問題及解決方法

轉載於:https://my.oschina.net/tadcat/blog/150613