LINUX下安裝VMware

來源:互聯網
上載者:User

首先大家要下載5.5.3版for linux 的包,,因為版本低的會出現找不到核心問題。

                     




然後將該包解壓縮。(我將該包全部檔案解壓到案頭上的vmware-distrib目錄中)進入終端視窗後,輸入cd /root/Desktop/vmware-distrib 並斷行符號,現在終端提示符變更為


[root@localhost vmware-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]


這個選項是問你是否想要把二進位可執行檔放入預設的/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 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]


輸入y 後並斷行符號,系統自動建立相關檔案夾並複製相關檔案,需要等一會,可以看見游標閃呀閃,然後會出現:


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]


斷行符號後出現:


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]


輸入y 並斷行符號後出現:


The installation of VMware Workstation 5.5.3 build-34685 for Linux completed

successfully. You can decide to remove this software from your system at any time

by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Workstation 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]


第一段的意思是告訴使用者將來可以用/usr/bin/vmware-uninstall.pl 命令來卸載該軟體


第二段的意思是在該虛擬機器第一次運行前必須對它用/usr/bin/vmware-config.pl 這個命令進行配置,你現在是否執行?當然了,斷行符號,然後會出現下面的提示:


Making sure services for VMware Workstation are stopped.

Stopping VMware services:

Virtual machine monitor [確定]

You must read and accept the End User License Agreement to continue.Press enter

to display it.

最後一段話是讓使用者閱讀並接受該軟體的授權許可,按斷行符號鍵顯示,你也可以按住斷行符號鍵不放,會發現螢幕在飛快地向上滾動,同時最下面的一行會有一個百分比數字在增加,全部顯示完畢後會出現:


Do you accept? (yes/no)



這裡必須輸入y,然後出現以下提示:


Thank you.

Configuring fallback GTK+ 2.4 libraries.

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]


斷行符號後出現:


Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Workstation is suitable for

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


輸入y 並斷行符號後出現:


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-1.2798.fc6/build/include]


斷行符號後出現:


Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmmon-only'

make -C /lib/modules/2.6.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD

SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'

CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o

CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o

CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o

CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o

CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o

CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o

CC [M] /tmp/vmware-config0/vmmon-only/common/task.o

CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o

CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o

LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o

Building modules, stage 2.

MODPOST

CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o

LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko

make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'

cp -f vmmon.ko ./../vmmon.o

make: Leaving directory `/tmp/vmware-config0/vmmon-only'

The module loads perfectly in the running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes]


最後一行是問你是否需要虛擬機器能夠運行網路,當然選是,輸入y 並斷行符號出現:


Configuring a bridged network for vmnet0.

Your computer has multiple ethernet network interfaces available: eth0, eth1.

Which one do you want to bridge to vmnet0? [eth0]


這裡是讓你配置真實網卡與虛擬網卡橋接的,注意,第二段可能每個人的機器顯示會不一樣,如果機器上只有一塊網卡就沒有選擇的餘地了,因為我家裡的台式機有兩塊網卡,eth1 是串連ADSL寬頻用的,eth0是與膝上型電腦進行雙機互聯用的,所以我選eth0,請大家根據自己的實際情況配置,輸入eth0 後斷行符號出現:


The following bridged networks have been defined:

. vmnet0 is bridged to eth0

Do you wish to configure another bridged network? (yes/no) [no]


你是否需要配置另一個橋接網路,這裡預設的選項是no,斷行符號後出現:


Do you want to be able to use NAT networking in your virtual machines? (yes/no)

[yes]


斷行符號後出現:


Configuring a NAT network for vmnet8.

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)...

Either your host is not connected to an IP network, or its network

configuration does not specify a default IP route. Consequently, the subnet

172.16.40.0/255.255.255.0 appears to be unused.

This system appears to have a DHCP server configured for normal use. Beware

that you should teach it how not to interfere with VMware Workstation's DHCP

server. There are two ways to do this:

1) Modify the file /etc/dhcpd.conf to add something like:

subnet 172.16.40.0 netmask 255.255.255.0 {

# Note: No range is given, vmnet-dhcpd will deal with this subnet.

}

2) Start your DHCP server with an explicit list of network interfaces to deal

with (leaving out vmnet8). e.g.:

dhcpd eth0

Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details.

Hit enter to continue.


按一下斷行符號鍵並出現:


Do you wish to configure another NAT network? (yes/no) [no]


斷行符號後出現:


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]


斷行符號後出現:


Consult the dhcpd(8) and dhcpd.conf(5) manual pages for details.

Hit enter to continue.


斷行符號,系統在進行相關配置後出現:


Do you wish to configure another host-only network? (yes/no) [no]


斷行符號後出現:


Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.

make: Entering directory `/tmp/vmware-config0/vmnet-only'

make -C /lib/modules/2.6.18-1.2798.fc6/build/include/.. SUBDIRS=$PWD

SRCROOT=$PWD/. modules

make[1]: Entering directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'

CC [M] /tmp/vmware-config0/vmnet-only/driver.o

CC [M] /tmp/vmware-config0/vmnet-only/hub.o

CC [M] /tmp/vmware-config0/vmnet-only/userif.o

CC [M] /tmp/vmware-config0/vmnet-only/netif.o

CC [M] /tmp/vmware-config0/vmnet-only/bridge.o

CC [M] /tmp/vmware-config0/vmnet-only/procfs.o

CC [M] /tmp/vmware-config0/vmnet-only/smac_compat.o

SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x386.o

LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o

Building modules, stage 2.

MODPOST

WARNING: could not open /tmp/vmware-config0/vmnet-only/includeCheck.h:

Invalid argument

CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o

LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko

make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2798.fc6-i686'

cp -f vmnet.ko ./../vmnet.o

make: Leaving directory `/tmp/vmware-config0/vmnet-only'

The module loads perfectly in the running kernel.

Starting VMware services:

Virtual machine monitor [確定]

Virtual ethernet [確定]

Bridged networking on /dev/vmnet0 [確定]

Host-only networking on /dev/vmnet1 (background) [確定]

Host-only networking on /dev/vmnet8 (background) [確定]

NAT service on /dev/vmnet8 [確定]

The configuration of VMware Workstation 5.5.3 build-34685 for Linux for this

running kernel completed successfully.

You can now run VMware Workstation by invoking the following command:

"/usr/bin/vmware".

Enjoy,

--the VMware team


到此VMware虛擬機器安裝完畢,自動返回到終端提示符狀態下,輸入exit退出終端。現在你可以在菜單中的系統工具中找到VmwareWorkstation 表徵圖,單擊一下就可以運行了,第一次運行會出現:



 


點擊Accept按鈕後出現就可以進入虛擬機器工作視窗了。其實,該虛擬機器軟體的安裝還是非常人性化,大家對照英文提示一步一步操作即可,基本選預設就行。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.