vmware成功安装Red Hat红帽企业Linux 5 SERVER 正式版

来源:互联网 发布:java 抽象类 实例化 编辑:程序博客网 时间:2024/05/17 09:36
 

首先,我用的vmware是6.0.2版本,是从迅雷上下的“VMware Workstation(虚拟机) V6.0.2 Build 59824 汉化版”地址为:

http://58.251.57.206/down?cid=3E7C0A2B3F2397C7D76269C4F69930830076FB29&t=2&fmt=&usrinput=vmware&dt=2056000&ps=0_0&rt=0kbs&plt=0

 

我使用的Linux是RedHat的企业版(感觉风格和fedora确实很像),因为它的内核是2.6的并且里面的软件相对于redhat 9都更新过了,下载地址为

cd1:ftp://60.232.126.152/os/linux/redhat/rhel5/rhel-5-server-i386-disc1.iso
cd2:ftp://60.232.126.152/os/linux/redhat/rhel5/rhel-5-server-i386-disc2.iso
cd3:ftp://60.232.126.152/os/linux/redhat/rhel5/rhel-5-server-i386-disc3.iso
cd4:ftp://60.232.126.152/os/linux/redhat/rhel5/rhel-5-server-i386-disc4.iso
cd5:ftp://60.232.126.152/os/linux/redhat/rhel5/rhel-5-server-i386-disc5.iso

 

在安装的时候会要求输入一个序列号,对应如下:

RHEL 5 安装 序列号
Server:
* Red Hat Enterprise Linux (Server including virtualization):
2515dd4e215225dd
+ Red Hat Enterprise Linux Virtualization Platform:
49af89414d147589
Client:
* Red Hat Enterprise Linux Desktop:
660266e267419c67
+ Red Hat Enterprise Linux Desktop + Workstation Option:
da3122afdb7edd23
+ Red Hat Enterprise Linux Desktop + Workstation + DualOS Option
(Virtualization):
7fcc43557e9bbc42
+ Red Hat Enterprise Linux Desktop + DualOS Option (Virtualization):
fed67649ff918c77
测试过,可行!

我使用的是第一个:2515dd4e215225dd


安装好之后在安装vmware tools的时候出现了问题:


What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include]The directory

of kernel headers (version 2.6.18-8.el5xen) does not match.

在网上收到资料:没有安装 kernel-xen-devel rpm包,在安装盘中找到这个rpm包:kernel-xen-devel-2.6.18-8.el5.i686.rpm
安装:
[root@localhost ~]# rpm -ivh kernel-xen-devel-2.6.18-8.el5.i686.rpm

再使用vmware-install.pl安装,即可自动找到配套的the directory of C header files

安装好kernel-xen-devel-2.6.18-8.el5.i686.rpm包后,这样就一直enter,装完VMware Tools

其中要注意的是在安装的时候,如果要使用vmware 的共享文件夹的功能的话,有一个选项不能够选择默认的[no]而应该改成yes
如下:
[EXPERIMENTAL] The Virtual Machine Communication Interface (VMCI) service
provides a new communication capability with the Host, primarily for
development at the moment.  Would you like to enable this feature? [no] yes

之后在 虚拟机->设置->options下的shared folder中配置共享的windows下的目录,之后点击“OK”回到Linux下

就会发现在目录/mnt/hgfs下有一个和刚才设定的同名文件了,这就是共享目录。

在启动的过程中,可能会在sendmail的地方停留很长时间,是因为sendmail没有配置好,然后又在启动服务列表中选择了sendmail,当碰到这种情况时,可以耐心等待。如果没有打算用它来做mail服务器的话,可以采用用如下方法来将sendmail启动项取消掉: 在控制台下用/usr/sbin/setup命令,会显示一个安装界面。选System Services,把列表中的sendmail前的*号去掉,使系统在启动时不启动sendmail,就搞定了。如果你要设sendmail,同样的方法把sendmail的*号加上即可。