溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

如何在centos中安裝VMware Server 虛擬機(jī)

發(fā)布時(shí)間:2021-03-16 16:50:44 來(lái)源:億速云 閱讀:591 作者:Leah 欄目:系統(tǒng)運(yùn)維

這篇文章給大家介紹如何在centos中安裝VMware Server 虛擬機(jī),內(nèi)容非常詳細(xì),感興趣的小伙伴們可以參考借鑒,希望對(duì)大家能有所幫助。

1、到VMware官網(wǎng)上下載安裝包,注冊(cè)免費(fèi)Licensing
https://www.vmware.com/
http://register.vmware.com/content/download-107.html
VMware Server 2 for Linux  AAM0N-FF00U-U9HC2-42194
VMware Server 2 for Windows  A2084-F6J0Y-VAJF0-40NV4
VMware Server1.07的rpm包下載地址:http://download3.vmware.com/software/vmserver/VMware-server-1.0.7-108231.i386.rpm
貌似Server2.0不能下載……

2、安裝必須的包:
gcc gcc-c++
kernel kernel-devel kernel-headers
libXtst-devel libXrender-devel xinetd
yum install -y kernel-headers libXtst-devel libXrender-devel xinetd

3、安裝VMware Server:
rpm -ivh VMware-server-1.0.7-108231.i386.rpm
安裝完成以后運(yùn)行配置腳本進(jìn)行配置:
/usr/bin/vmware-config.pl
一路順下去
1)閱讀協(xié)議yes
2)In which directory do you want to install the mime type icons?
[/usr/share/icons]
3)What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications]
4)In which directory do you want to install the application's icon?
[/usr/share/pixmaps]
5)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]
6)Using compiler "/usr/bin/gcc". Use environment variable CC to override.
What is the location of the directory of C header files that match your running kernel? [/lib/modules/2.6.18-92.el5PAE/build/include]
7)The module loads perfectly in the running kernel.
Do you want networking for your virtual machines? (yes/no/help) [yes]
8)Configuring a bridged network for vmnet0.
Your computer has multiple ethernet network interfaces available: eth0, eth2. Which one do you want to bridge to vmnet0? [eth0]
9)The following bridged networks have been defined:
. vmnet0 is bridged to eth0
Do you wish to configure another bridged network? (yes/no) [no]
10)Do you want to be able to use NAT networking in your virtual machines? (yes/no)[yes]
11)Configuring a NAT network for vmnet8.
Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
12)Probing for an unused private subnet (this can take some time)...
The subnet 172.16.134.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.134.0.
Do you wish to configure another NAT network? (yes/no) [no]
13)Do you want to be able to use host-only networking in your virtual machines? [yes]
14)Configuring a host-only network for vmnet1.
Do you want this program to probe for an unused private subnet? (yes/no/help) [yes]
15)Probing for an unused private subnet (this can take some time)...
The subnet 192.168.155.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 192.168.155.0.
Do you wish to configure another host-only network? (yes/no) [no]
16)The module loads perfectly in the running kernel.
The default port : 902 is not free. We have selected a suitable alternative port for VMware Server use. You may override this value now.Remember to use this port when connecting to this server.Please specify a port for remote console connections to use [904]
17)In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]
18)The path "/var/lib/vmware/Virtual Machines" does not exist currently. This program is going to create it, including needed parent directories. Is this what you want? [yes]
19)Please enter your 20-character serial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: AAM0N-FF00U-U9HC2-42194
安裝完成。

4、安裝完成了以后(不知道用不用運(yùn)行vmware命令)就可以直接用VMware Server Console去連了:
主意的是,此處需要在IP后加上端口904,如:
10.168.1.114:904

關(guān)于如何在centos中安裝VMware Server 虛擬機(jī)就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到。

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI