设为首页 收藏本站
查看: 720|回复: 0

[经验分享] Installing VMWARE server on CentOS 5 or Red hat enterprise Linux 64 bit version

[复制链接]

尚未签到

发表于 2016-1-6 11:36:30 | 显示全部楼层 |阅读模式
  

  VMware virtualization software is an excllent choice for x86-compatible computers. They have both commercial and free version. I received few email regardingVMWARE on 64 bit Linux. Installing VMWARE server on CentOS 5 or Red hat enterprise Linux 64 bit version is atricky business. In this small howto I will explain vmware installation on 64 bit Linux server without facing any dependencies problem.
  Following instructions are tested on bothRHEL 5andCentOS 5running 64 bit Intel / AMD hardware and software. My kernel:
$ uname -mrs
Output:

Linux 2.6.18-8.1.6.el5 x86_64
  My RHEL 5 release (same kernel for CentOS):
$ cat /etc/redhat-release
Output:

Red Hat Enterprise Linux Server release 5 (Tikanga)
  Make sure you have following software installed:


  • Full gcc compiler and development environment
  • Kernel headers and devel packages for current kernel (i.e. kernel-headers and kernel-devel)

Step # 1: Download vmware server
  You candownload VMWAREserver here. Usewget commandto download:
$ wget http://download3...

Step # 2: Install vmware server
  Once downloaded useRPM commandto install vmware sever, enter:
# rpm -ivh VMware-server-1.0.3-44356.i386.rpm
Output:

Preparing...                ########################################### [100%]
1:VMware-server          ########################################### [100%]
Step # 3:Install required files / libraries
  You need to install following development package / files on server:



  • libXtst-devel: X.Org X11 libXtst development package

  • libXrender-devel: X.Org X11 libXrender development package
  Simply useyum commandto install packages:
# yum install libXtst-devel libXrender-devel kernel-devel
Output:

Loading "rhnplugin" plugin
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
rhel-x86_64-server-vt-5   100% |=========================| 1.2 kB    00:00
rhel-x86_64-server-5      100% |=========================| 1.2 kB    00:00
Reading repository metadata in from local files
Parsing package install arguments
...........
....
...
Running Transaction
Installing: libXtst                      ######################### [1/8]
Installing: libXau-devel                 ######################### [2/8]
Installing: xorg-x11-proto-devel         ######################### [3/8]
Installing: libX11-devel                 ######################### [4/8]
Installing: libXdmcp-devel               ######################### [5/8]
Installing: libXtst-devel                ######################### [6/8]
Installing: libXtst-devel                ######################### [7/8]
Installing: mesa-libGL-devel             ######################### [8/8]
Installed: libXtst-devel.x86_64 0:1.0.1-3.1 libXtst-devel.i386 0:1.0.1-3.1
Dependency Installed: libX11-devel.x86_64 0:1.0.3-8.0.1.el5 libXau-devel.x86_64 0:1.0.1-3.1 libXdmcp-devel.x86_64 0:1.0.1-2.1 libXtst.i386 0:1.0.1-3.1 mesa-libGL-devel.x86_64 0:6.5.1-7.2.el5 xorg-x11-proto-devel.x86_64 0:7.1-9.fc6
Complete!
Step # 4: Install xinetd
  You need xinetd the extended Internet services daemon / service in order to use VMWARE console from remote computer. Use yum command to install xinetd:
# yum install xinetd

Step # 5: Configure VMWARE server
  Use vmware-config.pl script to configure VMWARE networking and other aspects.
# vmware-config.pl
Output (make sure you setup VMWARE as per your requirments, following is just a sample output):

Making sure services for VMware Server are stopped.
Stopping VMware services:
Virtual machine monitor                                 [  OK  ]
You must read and accept the End User License Agreement to continue.
Press enter to display it.
......
......
will provide you with a copy of our
distribution agreement for your signature.   
Do you accept? (yes/no)    yes
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 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]
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-8.1.6.el5/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-8.1.6.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.6.el5-x86_64'
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-8.1.6.el5-x86_64'
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]
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
The following bridged networks have been defined:
. vmnet0 is bridged to eth1
Do you wish to configure another bridged network? (yes/no) [no]
Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no
Do you want to be able to use host-only networking in your virtual machines?
[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-8.1.6.el5/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-8.1.6.el5-x86_64'
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.x86_64.o
LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST
WARNING: could not find /tmp/vmware-config0/vmnet-only/.smac_linux.x86_64.o.cmd for /tmp/vmware-config0/vmnet-only/smac_linux.x86_64.o
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-8.1.6.el5-x86_64'
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config0/vmnet-only'
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]
WARNING: VMware Server has been configured to run on a port different from the
default port. Remember to use this port when connecting to this server.
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]
Configuring the VMware VmPerl Scripting API.
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.
Generating SSL Server Certificate
In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines]
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]
Please enter your 20-character serial number.
Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel:  XYZZZ-XYZZZ-XYZZZ-ABC91
Starting VMware services:
Virtual machine monitor                                 [  OK  ]
Virtual ethernet                                        [  OK  ]
Bridged networking on /dev/vmnet0                       [  OK  ]
The configuration of VMware Server 1.0.3 build-44356 for Linux for this running
kernel completed successfully.

How do I manage my VMWARE server remotely?
  You can now connect fromlocal computerusing vmware-server-console program to:


  • Configure VM Guest oses
  • Configure VM hardware
  • Install new VPS / VM guest oses such as FreeBSD, Windows or any other operating systems etc
  $ vmware-server-console &
You need to enter host name ip:port, username and password to access vmware server.
DSC0000.jpg

See also:


  • Howto install and Connect VMWARE Server using Webbased Remote Management Interface
  • Start and stop VMWARE VPS / virtual machine guest operating system from command line
  • Installing VMWARE on RHEL 4 / CentOS 4 64 bit Linux

Featured Articles:


  • 20 Linux System Monitoring Tools Every SysAdmin Should Know
  • 20 Linux Server Hardening Security Tips
  • My 10 UNIX Command Line Mistakes
  • Top 5 Email Client For Linux, Mac OS X, and Windows Users
  • Top 20 OpenSSH Server Best Security Practices
  • Top 10 Open Source Web-Based Project Management Software
  • Top 5 Linux Video Editor Software



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-160925-1-1.html 上篇帖子: VMware vSphere搭建云计算基础架构小结 下篇帖子: VMware Server中虚拟机随宿主机自动启动
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表