centos下安装VMware Server 虚拟机的方法




centos下安装VMware Server 虚拟机的方法

2022-07-20 21:06:30 网络知识 官方管理员

1、到VMware官网上下载安装包,注册免费Licensing
https://www.vmware.com/
http://register.vmware.com/content/download-107.html
VMwareServer2forLinuxAAM0N-FF00U-U9HC2-42194
VMwareServer2forWindowsA2084-F6J0Y-VAJF0-40NV4
VMwareServer1.07的rpm包下载地址http://download3.vmware.com/software/vmserver/VMware-server-1.0.7-108231.i386.rpm
貌似Server2.0不能下载

2、安装必须的包:
gccgcc-c++
kernelkernel-develkernel-headers
libXtst-devellibXrender-develxinetd
yuminstall-ykernel-headerslibXtst-devellibXrender-develxinetd

3、安装VMwareServer:
rpm-ivhVMware-server-1.0.7-108231.i386.rpm
安装完成以后运行配置脚本进行配置:
/usr/bin/vmware-config.pl
一路顺下去
1)阅读协议yes
2)Inwhichdirectorydoyouwanttoinstallthemimetypeicons?
[/usr/share/icons]
3)Whatdirectorycontainsyourdesktopmenuentryfiles?Thesefileshavea
.desktopfileextension.[/usr/share/applications]
4)Inwhichdirectorydoyouwanttoinstalltheapplication'sicon?
[/usr/share/pixmaps]
5)Tryingtofindasuitablevmmonmoduleforyourrunningkernel.
Noneofthepre-builtvmmonmodulesforVMwareServerissuitableforyourrunningkernel.Doyouwantthisprogramtotrytobuildthevmmonmoduleforyoursystem(youneedtohaveaCcompilerinstalledonyoursystem)?[yes]
6)Usingcompiler"/usr/bin/gcc".UseenvironmentvariableCCtooverride.
WhatisthelocationofthedirectoryofCheaderfilesthatmatchyourrunningkernel?[/lib/modules/2.6.18-92.el5PAE/build/include]
7)Themoduleloadsperfectlyintherunningkernel.
Doyouwantnetworkingforyourvirtualmachines?(yes/no/help)[yes]
8)Configuringabridgednetworkforvmnet0.
Yourcomputerhasmultipleethernetnetworkinterfacesavailable:eth0,eth1.Whichonedoyouwanttobridgetovmnet0?[eth0]
9)Thefollowingbridgednetworkshavebeendefined:
.vmnet0isbridgedtoeth0
Doyouwishtoconfigureanotherbridgednetwork?(yes/no)[no]
10)DoyouwanttobeabletouseNATnetworkinginyourvirtualmachines?(yes/no)[yes]
11)ConfiguringaNATnetworkforvmnet8.
Doyouwantthisprogramtoprobeforanunusedprivatesubnet?(yes/no/help)[yes]
12)Probingforanunusedprivatesubnet(thiscantakesometime)...
Thesubnet172.16.134.0/255.255.255.0appearstobeunused.
ThefollowingNATnetworkshavebeendefined:
.vmnet8isaNATnetworkonprivatesubnet172.16.134.0.
DoyouwishtoconfigureanotherNATnetwork?(yes/no)[no]
13)Doyouwanttobeabletousehost-onlynetworkinginyourvirtualmachines?[yes]
14)Configuringahost-onlynetworkforvmnet1.
Doyouwantthisprogramtoprobeforanunusedprivatesubnet?(yes/no/help)[yes]
15)Probingforanunusedprivatesubnet(thiscantakesometime)...
Thesubnet192.168.155.0/255.255.255.0appearstobeunused.
Thefollowinghost-onlynetworkshavebeendefined:
.vmnet1isahost-onlynetworkonprivatesubnet192.168.155.0.
Doyouwishtoconfigureanotherhost-onlynetwork?(yes/no)[no]
16)Themoduleloadsperfectlyintherunningkernel.
Thedefaultport:902isnotfree.Wehaveselectedasuitable alternativeportforVMwareServeruse.Youmayoverridethisvaluenow.Remembertousethisportwhenconnectingtothisserver.Pleasespecifyaportforremoteconsoleconnectionstouse[904]
17)Inwhichdirectorydoyouwanttokeepyourvirtualmachinefiles?
[/var/lib/vmware/VirtualMachines]
18)Thepath"/var/lib/vmware/VirtualMachines"doesnotexistcurrently.Thisprogramisgoingtocreateit,includingneededparentdirectories.Isthiswhatyouwant?[yes]
19)Pleaseenteryour20-characterserialnumber.
TypeXXXXX-XXXXX-XXXXX-XXXXXor'Enter'tocancel:AAM0N-FF00U-U9HC2-42194
安装完成。

4、安装完成了以后(不知道用不用运行vmware命令)就可以直接用VMwareServerConsole去连了:
主意的是此处需要在IP后加上端口904,如:
10.168.1.114:904
就可以正常操作了。


发表评论:

最近发表
网站分类
标签列表