Linux下安装vmware

来源:Linux论坛 日期:2008.03.1811:38 (共有条评论)我要评论
首先大家要下载5.5.3版forlinux的包,如图所示,因为版本低的会出现找不到内核问题。

1.jpg



然后将该包解压缩。(我将该包全部文件解压到桌面上的vmware-distrib目录中)进入终端窗口后,输入cd/root/Desktop/vmware-distrib并回车,现在终端提示符变更为

[root@localhostvmware-distrib]#,输入./vmware-install.pl并回车出现以下提示:

Creatinganewinstallerdatabaseusingthetar3format.
Installingthecontentofthepackage.
Inwhichdirectorydoyouwanttoinstallthebinaryfiles?
[/usr/bin]

这个选项是问你是否想要把二进制可执行文件放入默认的/usr/bin文件夹中,回车后出现以下提示:

Whatisthedirectorythatcontainstheinitdirectories(rc0.d/torc6.d/)?
[/etc/rc.d]

回车后出现:

Whatisthedirectorythatcontainstheinitscripts?
[/etc/rc.d/init.d]

回车后出现:

Inwhichdirectorydoyouwanttoinstallthelibraryfiles?
[/usr/lib/vmware]

回车后出现:

Thepath"/usr/lib/vmware"doesnotexistcurrently.Thisprogramisgoingto
createit,includingneededparentdirectories.Isthiswhatyouwant?
[yes]

输入y后并回车,系统自动建立相关文件夹并复制相关文件,需要等一会,可以看见光标闪呀闪,然后会出现:

Inwhichdirectorydoyouwanttoinstallthemanualfiles?
[/usr/share/man]

回车后出现:

Inwhichdirectorydoyouwanttoinstallthedocumentationfiles?
[/usr/share/doc/vmware]

回车后出现:

Thepath"/usr/share/doc/vmware"doesnotexistcurrently.Thisprogramisgoing
tocreateit,includingneededparentdirectories.Isthiswhatyouwant?
[yes]

输入y并回车后出现:

TheinstallationofVMwareWorkstation5.5.3build-34685forLinuxcompleted
successfully.Youcandecidetoremovethissoftwarefromyoursystematanytime
byinvokingthefollowingcommand:"/usr/bin/vmware-uninstall.pl".
BeforerunningVMwareWorkstationforthefirsttime,youneedtoconfigureit
byinvokingthefollowingcommand:"/usr/bin/vmware-config.pl".Doyouwantthis
programtoinvokethecommandforyounow?[yes]

第一段的意思是告诉用户将来可以用/usr/bin/vmware-uninstall.pl命令来卸载该软件

第二段的意思是在该虚拟机第一次运行前必须对它用/usr/bin/vmware-config.pl这个命令进行配置,你现在是否执行?当然了,回车,然后会出现下面的提示:

MakingsureservicesforVMwareWorkstationarestopped.
StoppingVMwareservices:
Virtualmachinemonitor[确定]
YoumustreadandaccepttheEndUserLicenseAgreementtocontinue.Pressenter
todisplayit.
最后一段话是让用户阅读并接受该软件的授权许可,按回车键显示,你也可以按住回车键不放,会发现屏幕在飞快地向上滚动,同时最下面的一行会有一个百分比数字在增加,全部显示完毕后会出现:

Doyouaccept?(yes/no)


这里必须输入y,然后出现以下提示:

Thankyou.
ConfiguringfallbackGTK+2.4libraries.
Inwhichdirectorydoyouwanttoinstallthemimetypeicons?
[/usr/share/icons]

回车后出现:

Whatdirectorycontainsyourdesktopmenuentryfiles?Thesefileshave
a.desktopfileextension.[/usr/share/applications]

回车后出现:

Inwhichdirectorydoyouwanttoinstalltheapplication'sicon?
[/usr/share/pixmaps]

回车后出现:

Tryingtofindasuitablevmmonmoduleforyourrunningkernel.
Noneofthepre-builtvmmonmodulesforVMwareWorkstationissuitablefor
yourrunningkernel.Doyouwantthisprogramtotrytobuildthevmmonmodulefor
yoursystem(youneedtohaveaCcompilerinstalledonyoursystem)?[yes]

输入y并回车后出现:

Usingcompiler"/usr/bin/gcc".UseenvironmentvariableCCtooverride.
WhatisthelocationofthedirectoryofCheaderfilesthatmatchyourrunning
kernel?[/lib/modules/2.6.18-1.2798.fc6/build/include]

回车后出现:

Extractingthesourcesofthevmmonmodule.
Buildingthevmmonmodule.
Using2.6.xkernelbuildsystem.
make:Enteringdirectory`/tmp/vmware-config0/vmmon-only'
make-C/lib/modules/2.6.18-1.2798.fc6/build/include/..SUBDIRS=$PWD
SRCROOT=$PWD/.modules
make[1]:Enteringdirectory`/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
Buildingmodules,stage2.
MODPOST
CC/tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD[M]/tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]:Leavingdirectory`/usr/src/kernels/2.6.18-1.2798.fc6-i686'
cp-fvmmon.ko./../vmmon.o
make:Leavingdirectory`/tmp/vmware-config0/vmmon-only'
Themoduleloadsperfectlyintherunningkernel.
Doyouwantnetworkingforyourvirtualmachines?(yes/no/help)[yes]

最后一行是问你是否需要虚拟机能够运行网络,当然选是,输入y并回车出现:

Configuringabridgednetworkforvmnet0.
Yourcomputerhasmultipleethernetnetworkinterfacesavailable:eth0,eth1.
Whichonedoyouwanttobridgetovmnet0?[eth0]

这里是让你配置真实网卡与虚拟网卡桥接的,注意,第二段可能每个人的机器显示会不一样,如果机器上只有一块网卡就没有选择的余地了,因为我家里的台式机有两块网卡,eth1是连接ADSL宽带用的,eth0是与笔记本电脑进行双机互联用的,所以我选eth0,请大家根据自己的实际情况配置,输入eth0后回车出现:

Thefollowingbridgednetworkshavebeendefined:
.vmnet0isbridgedtoeth0
Doyouwishtoconfigureanotherbridgednetwork?(yes/no)[no]

你是否需要配置另一个桥接网络,这里默认的选项是no,回车后出现:

DoyouwanttobeabletouseNATnetworkinginyourvirtualmachines?(yes/no)
[yes]

回车后出现:

ConfiguringaNATnetworkforvmnet8.
Doyouwantthisprogramtoprobeforanunusedprivatesubnet?(yes/no/help)
[yes]
Probingforanunusedprivatesubnet(thiscantakesometime)...
EitheryourhostisnotconnectedtoanIPnetwork,oritsnetwork
configurationdoesnotspecifyadefaultIProute.Consequently,thesubnet
172.16.40.0/255.255.255.0appearstobeunused.
ThissystemappearstohaveaDHCPserverconfiguredfornormaluse.Beware
thatyoushouldteachithownottointerferewithVMwareWorkstation'sDHCP
server.Therearetwowaystodothis:
1)Modifythefile/etc/dhcpd.conftoaddsomethinglike:
subnet172.16.40.0netmask255.255.255.0{
#Note:Norangeisgiven,vmnet-dhcpdwilldealwiththissubnet.
}
2)StartyourDHCPserverwithanexplicitlistofnetworkinterfacestodeal
with(leavingoutvmnet8).e.g.:
dhcpdeth0
Consultthedhcpd(8)anddhcpd.conf(5)manualpagesfordetails.
Hitentertocontinue.

按一下回车键并出现:

DoyouwishtoconfigureanotherNATnetwork?(yes/no)[no]

回车后出现:

Doyouwanttobeabletousehost-onlynetworkinginyourvirtualmachines?
[yes]

回车后出现:

Configuringahost-onlynetworkforvmnet1.

Doyouwantthisprogramtoprobeforanunusedprivatesubnet?(yes/no/help)
[yes]

回车后出现:

Consultthedhcpd(8)anddhcpd.conf(5)manualpagesfordetails.
Hitentertocontinue.

回车,系统在进行相关配置后出现:

Doyouwishtoconfigureanotherhost-onlynetwork?(yes/no)[no]

回车后出现:

Extractingthesourcesofthevmnetmodule.
Buildingthevmnetmodule.
Using2.6.xkernelbuildsystem.
make:Enteringdirectory`/tmp/vmware-config0/vmnet-only'
make-C/lib/modules/2.6.18-1.2798.fc6/build/include/..SUBDIRS=$PWD
SRCROOT=$PWD/.modules
make[1]:Enteringdirectory`/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
Buildingmodules,stage2.
MODPOST
WARNING:couldnotopen/tmp/vmware-config0/vmnet-only/includeCheck.h:
Invalidargument
CC/tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD[M]/tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]:Leavingdirectory`/usr/src/kernels/2.6.18-1.2798.fc6-i686'
cp-fvmnet.ko./../vmnet.o
make:Leavingdirectory`/tmp/vmware-config0/vmnet-only'
Themoduleloadsperfectlyintherunningkernel.
StartingVMwareservices:
Virtualmachinemonitor[确定]
Virtualethernet[确定]
Bridgednetworkingon/dev/vmnet0[确定]
Host-onlynetworkingon/dev/vmnet1(background)[确定]
Host-onlynetworkingon/dev/vmnet8(background)[确定]
NATserviceon/dev/vmnet8[确定]
TheconfigurationofVMwareWorkstation5.5.3build-34685forLinuxforthis
runningkernelcompletedsuccessfully.
YoucannowrunVMwareWorkstationbyinvokingthefollowingcommand:
"/usr/bin/vmware".
Enjoy,
--theVMwareteam

到此VMware虚拟机安装完毕,自动返回到终端提示符状态下,输入exit退出终端。现在你可以在菜单中的系统工具中找到VmwareWorkstation图标,单击一下就可以运行了,第一次运行会出现下图:

2.jpg




点击Accept按钮后出现就可以进入虚拟机工作窗口了。其实,该虚拟机软件的安装还是非常人性化,大家对照英文提示一步一步操作即可,基本选默认就行。

你可能感兴趣的:(linux,vmtools)